Use obj-y to clean up Makefile. Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx> --- arch/hexagon/Kbuild | 1 + arch/hexagon/Makefile | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/hexagon/Kbuild b/arch/hexagon/Kbuild index a4e40e534e6a..d930c2f954d5 100644 --- a/arch/hexagon/Kbuild +++ b/arch/hexagon/Kbuild @@ -1 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only +obj += 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/ -- 2.27.0