0001 # SPDX-License-Identifier: GPL-2.0
0002 # Fail on warnings - also for files referenced in subdirs
0003 # -Werror can be disabled for specific files using:
0004 # CFLAGS_<file.o> := -Wno-error
0005 ifeq ($(W),)
0006 subdir-ccflags-y := -Werror
0007 endif
0008
0009 # platform specific definitions
0010 include arch/mips/Kbuild.platforms
0011 obj-y := $(platform-y)
0012
0013 # make clean traverses $(obj-) without having included .config, so
0014 # everything ends up here
0015 obj- := $(platform-y)
0016
0017 # mips object files
0018 # The object files are linked as core-y files would be linked
0019
0020 obj-y += kernel/
0021 obj-y += mm/
0022 obj-y += net/
0023 obj-y += vdso/
0024
0025 ifdef CONFIG_KVM
0026 obj-y += kvm/
0027 endif
0028
0029 # for cleaning
0030 subdir- += boot