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/hexagon/Kbuild | 1 + 1 file changed, 1 insertion(+) create mode 100644 arch/hexagon/Kbuild (limited to 'arch/hexagon') diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild new file mode 100644 index 000000000000..a4e40e534e6a --- /dev/null +++ b/arch/hexagon/Kbuild @@ -0,0 +1 @@ +# SPDX-License-Identifier: GPL-2.0-only -- cgit v1.2.3 From 3681c854c22eed45e63c164252e5f7e1abeadfb2 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Wed, 12 May 2021 16:57:28 +0900 Subject: hexagon: move core-y in arch/hexagon/Makefile to arch/hexagon/Kbuild Use obj-y to clean up Makefile. Signed-off-by: Masahiro Yamada --- arch/hexagon/Kbuild | 1 + arch/hexagon/Makefile | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'arch/hexagon') diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild index a4e40e534e6a..8421baba1351 100644 --- a/arch/hexagon/Kbuild +++ b/arch/hexagon/Kbuild @@ -1 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only +obj-y += kernel/ mm/ lib/ diff --git a/arch/hexagon/Makefile b/arch/hexagon/Makefile index 74b644ea8a00..44312bc147d8 100644 --- a/arch/hexagon/Makefile +++ b/arch/hexagon/Makefile @@ -34,7 +34,3 @@ KBUILD_CFLAGS += -ffixed-$(TIR_NAME) -DTHREADINFO_REG=$(TIR_NAME) -D__linux__ KBUILD_AFLAGS += -DTHREADINFO_REG=$(TIR_NAME) head-y := arch/hexagon/kernel/head.o - -core-y += arch/hexagon/kernel/ \ - arch/hexagon/mm/ \ - arch/hexagon/lib/ -- cgit v1.2.3