Skip to content

Commit

Permalink
nios2: move core-y in arch/nios2/Makefile to arch/nios2/Kbuild
Browse files Browse the repository at this point in the history
Use obj-y to clean up Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
Masahiro Yamada committed Sep 28, 2022
1 parent d724b57 commit e30d448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions arch/nios2/Kbuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only

obj-y += kernel/ mm/ platform/ boot/dts/

# for cleaning
subdir- += boot
4 changes: 0 additions & 4 deletions arch/nios2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,13 @@ KBUILD_CFLAGS += -G 0

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

INSTALL_PATH ?= /tftpboot
nios2-boot := arch/$(ARCH)/boot
BOOT_TARGETS = vmImage zImage
PHONY += $(BOOT_TARGETS) install
KBUILD_IMAGE := $(nios2-boot)/vmImage

core-y += $(nios2-boot)/dts/

all: vmImage

$(BOOT_TARGETS): vmlinux
Expand Down

0 comments on commit e30d448

Please sign in to comment.