From d92cc4d5164398cc6d191084b46e622976c0ba89 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Wed, 12 May 2021 16:57:25 +0900 Subject: kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can use the obj-y syntax. Add an empty file if it is missing in arch/$(SRCARCH)/. Signed-off-by: Masahiro Yamada --- arch/h8300/Kbuild | 1 + 1 file changed, 1 insertion(+) create mode 100644 arch/h8300/Kbuild (limited to 'arch/h8300') diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild new file mode 100644 index 000000000000..a4e40e534e6a --- /dev/null +++ b/arch/h8300/Kbuild @@ -0,0 +1 @@ +# SPDX-License-Identifier: GPL-2.0-only -- cgit v1.2.3 From 0957878f710e87d6ef2aba01a49d8be659c3ce3d Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Wed, 12 May 2021 16:57:27 +0900 Subject: h8300: move core-y in arch/h8300/Makefile to arch/h8300/Kbuild Use obj-y to clean up Makefile. Signed-off-by: Masahiro Yamada --- arch/h8300/Kbuild | 1 + arch/h8300/Makefile | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'arch/h8300') diff --git a/arch/h8300/Kbuild b/arch/h8300/Kbuild index a4e40e534e6a..b2583e7efbd1 100644 --- a/arch/h8300/Kbuild +++ b/arch/h8300/Kbuild @@ -1 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only +obj-y += kernel/ mm/ boot/dts/ diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index ba0f26cfad61..eb4cb8f6830c 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile @@ -30,9 +30,6 @@ ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-) endif -core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ -core-y += arch/$(ARCH)/boot/dts/ - libs-y += arch/$(ARCH)/lib/ boot := arch/h8300/boot -- cgit v1.2.3