Kbuild 612 B

123456789101112131415161718192021222324252627
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Fail on warnings - also for files referenced in subdirs
  3. # -Werror can be disabled for specific files using:
  4. # CFLAGS_<file.o> := -Wno-error
  5. ifeq ($(W),)
  6. subdir-ccflags-y := -Werror
  7. endif
  8. # platform specific definitions
  9. include arch/mips/Kbuild.platforms
  10. obj-y := $(platform-y)
  11. # make clean traverses $(obj-) without having included .config, so
  12. # everything ends up here
  13. obj- := $(platform-y)
  14. # mips object files
  15. # The object files are linked as core-y files would be linked
  16. obj-y += kernel/
  17. obj-y += mm/
  18. obj-y += net/
  19. obj-y += vdso/
  20. ifdef CONFIG_KVM
  21. obj-y += kvm/
  22. endif