xref: /openbmc/linux/arch/mips/Kbuild (revision 59cc80a6)
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
5ifeq ($(W),)
6subdir-ccflags-y := -Werror
7endif
8
9# platform specific definitions
10include $(srctree)/arch/mips/Kbuild.platforms
11obj-y := $(platform-y)
12
13# make clean traverses $(obj-) without having included .config, so
14# everything ends up here
15obj- := $(platform-y)
16
17# mips object files
18# The object files are linked as core-y files would be linked
19
20obj-y += kernel/
21obj-y += mm/
22obj-y += net/
23obj-y += vdso/
24
25ifdef CONFIG_KVM
26obj-y += kvm/
27endif
28
29# for cleaning
30subdir- += boot
31