18c2ecf20Sopenharmony_ci# Fail on warnings - also for files referenced in subdirs 28c2ecf20Sopenharmony_ci# -Werror can be disabled for specific files using: 38c2ecf20Sopenharmony_ci# CFLAGS_<file.o> := -Wno-error 48c2ecf20Sopenharmony_ciifeq ($(W),) 58c2ecf20Sopenharmony_cisubdir-ccflags-y := -Werror 68c2ecf20Sopenharmony_ciendif 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci# platform specific definitions 98c2ecf20Sopenharmony_ciinclude arch/loongarch/Kbuild.platforms 108c2ecf20Sopenharmony_ciobj-y := $(platform-y) 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci# make clean traverses $(obj-) without having included .config, so 138c2ecf20Sopenharmony_ci# everything ends up here 148c2ecf20Sopenharmony_ciobj- := $(platform-) 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci# LoongArch object files 178c2ecf20Sopenharmony_ci# The object files are linked as core-y files would be linked 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciobj-y += kernel/ 208c2ecf20Sopenharmony_ciobj-y += mm/ 218c2ecf20Sopenharmony_ciobj-y += net/ 228c2ecf20Sopenharmony_ciobj-y += vdso/ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciobj-$(CONFIG_KVM) += kvm/ 258c2ecf20Sopenharmony_ciobj-$(CONFIG_BUILTIN_DTB) += boot/dts/ 26