2019-05-30 12:03:44 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2010-05-30 14:26:40 +00: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 01:06:12 +00:00
|
|
|
ifeq ($(W),)
|
2010-05-30 14:26:40 +00:00
|
|
|
subdir-ccflags-y := -Werror
|
2017-03-17 01:06:12 +00:00
|
|
|
endif
|
2010-05-30 14:26:40 +00:00
|
|
|
|
2010-05-30 14:27:10 +00:00
|
|
|
# platform specific definitions
|
2023-01-28 09:24:23 +00:00
|
|
|
include $(srctree)/arch/mips/Kbuild.platforms
|
2010-05-30 14:27:10 +00:00
|
|
|
obj-y := $(platform-y)
|
2010-05-30 14:26:40 +00:00
|
|
|
|
2010-10-19 00:51:26 +00:00
|
|
|
# make clean traverses $(obj-) without having included .config, so
|
|
|
|
# everything ends up here
|
2020-05-13 08:38:41 +00:00
|
|
|
obj- := $(platform-y)
|
2010-10-19 00:51:26 +00:00
|
|
|
|
2010-05-30 11:27:22 +00: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 11:47:14 +00:00
|
|
|
obj-y += net/
|
2015-10-21 08:54:38 +00:00
|
|
|
obj-y += vdso/
|
2012-11-22 02:33:59 +00:00
|
|
|
|
|
|
|
ifdef CONFIG_KVM
|
|
|
|
obj-y += kvm/
|
|
|
|
endif
|
2021-10-13 06:36:22 +00:00
|
|
|
|
|
|
|
# for cleaning
|
|
|
|
subdir- += boot
|