mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
8212f8986d
Documentation/kbuild/makefiles.rst suggests to use "archclean" for
cleaning arch/$(SRCARCH)/boot/, but it is not a hard requirement.
Since commit d92cc4d516
("kbuild: require all architectures to have
arch/$(SRCARCH)/Kbuild"), we can use the "subdir- += boot" trick for
all architectures. This can take advantage of the parallel option (-j)
for "make clean".
I also cleaned up the comments in arch/$(SRCARCH)/Makefile. The "archdep"
target no longer exists.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
31 lines
644 B
Makefile
31 lines
644 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Fail on warnings - also for files referenced in subdirs
|
|
# -Werror can be disabled for specific files using:
|
|
# CFLAGS_<file.o> := -Wno-error
|
|
ifeq ($(W),)
|
|
subdir-ccflags-y := -Werror
|
|
endif
|
|
|
|
# platform specific definitions
|
|
include arch/mips/Kbuild.platforms
|
|
obj-y := $(platform-y)
|
|
|
|
# make clean traverses $(obj-) without having included .config, so
|
|
# everything ends up here
|
|
obj- := $(platform-y)
|
|
|
|
# mips object files
|
|
# The object files are linked as core-y files would be linked
|
|
|
|
obj-y += kernel/
|
|
obj-y += mm/
|
|
obj-y += net/
|
|
obj-y += vdso/
|
|
|
|
ifdef CONFIG_KVM
|
|
obj-y += kvm/
|
|
endif
|
|
|
|
# for cleaning
|
|
subdir- += boot
|