Commit e30d4487 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

nios2: move core-y in arch/nios2/Makefile to arch/nios2/Kbuild



Use obj-y to clean up Makefile.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent d724b578
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
# SPDX-License-Identifier: GPL-2.0-only


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

# for cleaning
# for cleaning
subdir- += boot
subdir- += boot
+0 −4
Original line number Original line Diff line number Diff line
@@ -39,8 +39,6 @@ KBUILD_CFLAGS += -G 0


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


INSTALL_PATH ?= /tftpboot
INSTALL_PATH ?= /tftpboot
nios2-boot := arch/$(ARCH)/boot
nios2-boot := arch/$(ARCH)/boot
@@ -48,8 +46,6 @@ BOOT_TARGETS = vmImage zImage
PHONY += $(BOOT_TARGETS) install
PHONY += $(BOOT_TARGETS) install
KBUILD_IMAGE := $(nios2-boot)/vmImage
KBUILD_IMAGE := $(nios2-boot)/vmImage


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

all: vmImage
all: vmImage


$(BOOT_TARGETS): vmlinux
$(BOOT_TARGETS): vmlinux