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