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