Skip to content

Commit e30d448

Browse files
committed
nios2: move core-y in arch/nios2/Makefile to arch/nios2/Kbuild
Use obj-y to clean up Makefile. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent d724b57 commit e30d448

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

arch/nios2/Kbuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3+
obj-y += kernel/ mm/ platform/ boot/dts/
4+
35
# for cleaning
46
subdir- += boot

arch/nios2/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,13 @@ KBUILD_CFLAGS += -G 0
3939

4040
head-y := arch/nios2/kernel/head.o
4141
libs-y += arch/nios2/lib/ $(LIBGCC)
42-
core-y += arch/nios2/kernel/ arch/nios2/mm/
43-
core-y += arch/nios2/platform/
4442

4543
INSTALL_PATH ?= /tftpboot
4644
nios2-boot := arch/$(ARCH)/boot
4745
BOOT_TARGETS = vmImage zImage
4846
PHONY += $(BOOT_TARGETS) install
4947
KBUILD_IMAGE := $(nios2-boot)/vmImage
5048

51-
core-y += $(nios2-boot)/dts/
52-
5349
all: vmImage
5450

5551
$(BOOT_TARGETS): vmlinux

0 commit comments

Comments
 (0)