2019-05-30 20:03:44 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2010-05-30 22:26:40 +08:00
|
|
|
# Fail on warnings - also for files referenced in subdirs
|
|
|
|
# -Werror can be disabled for specific files using:
|
|
|
|
# CFLAGS_<file.o> := -Wno-error
|
2017-03-17 09:06:12 +08:00
|
|
|
ifeq ($(W),)
|
2010-05-30 22:26:40 +08:00
|
|
|
subdir-ccflags-y := -Werror
|
2017-03-17 09:06:12 +08:00
|
|
|
endif
|
2010-05-30 22:26:40 +08:00
|
|
|
|
2010-05-30 22:27:10 +08:00
|
|
|
# platform specific definitions
|
|
|
|
include arch/mips/Kbuild.platforms
|
|
|
|
obj-y := $(platform-y)
|
2010-05-30 22:26:40 +08:00
|
|
|
|
2010-10-19 08:51:26 +08:00
|
|
|
# make clean traverses $(obj-) without having included .config, so
|
|
|
|
# everything ends up here
|
2020-05-13 16:38:41 +08:00
|
|
|
obj- := $(platform-y)
|
2010-10-19 08:51:26 +08:00
|
|
|
|
2010-05-30 19:27:22 +08:00
|
|
|
# mips object files
|
|
|
|
# The object files are linked as core-y files would be linked
|
|
|
|
|
|
|
|
obj-y += kernel/
|
|
|
|
obj-y += mm/
|
2014-04-08 19:47:14 +08:00
|
|
|
obj-y += net/
|
2015-10-21 16:54:38 +08:00
|
|
|
obj-y += vdso/
|
2012-11-22 10:33:59 +08:00
|
|
|
|
|
|
|
ifdef CONFIG_KVM
|
|
|
|
obj-y += kvm/
|
|
|
|
endif
|