mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
125be5868e
Commit26bff9eb49
("MIPS: Only include the platformfile needed") moves platform-(CONFIG_XYZ) from arch/mips/xyz/Platform to arch/mips/ Kbuild.platforms. This change causes an error when "make clean": ./scripts/Makefile.clean:15: arch/mips/vr41xx/Makefile: No such file or directory make[3]: *** No rule to make target `arch/mips/vr41xx/Makefile'. Stop. make[2]: *** [arch/mips/vr41xx] Error 2 make[1]: *** [_clean_arch/mips] Error 2 make: *** [sub-make] Error 2 Clean-files are defined in arch/mips/Kbuild: obj- := $(platform-) Due to the movement of platform-(CONFIG_XYZ), "make clean" will enter arch/mips/vr41xx/ whether CONFIG_MACH_VR41XX is defined or not. Because there is no Makefile in arch/mips/vr41xx/, "make clean" fails. I don't know what is the best way to fix it, but it seems like we can avoid this error by changing the obj- definition: obj- := $(platform-y) Fixes:26bff9eb49
("MIPS: Only include the platformfile needed") Signed-off-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
28 lines
612 B
Makefile
28 lines
612 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
|