linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nios2: add arch/nios2/Kbuild
@ 2021-02-27  5:56 Masahiro Yamada
  0 siblings, 0 replies; only message in thread
From: Masahiro Yamada @ 2021-02-27  5:56 UTC (permalink / raw)
  To: linux-kbuild; +Cc: linux-kernel, Masahiro Yamada, Ley Foon Tan

Use the standard obj-y form to specify the sub-directories under
arch/nios2/. No functional change intended.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/nios2/Kbuild   | 2 ++
 arch/nios2/Makefile | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)
 create mode 100644 arch/nios2/Kbuild

diff --git a/arch/nios2/Kbuild b/arch/nios2/Kbuild
new file mode 100644
index 000000000000..98b454beae92
--- /dev/null
+++ b/arch/nios2/Kbuild
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-y += kernel/ mm/ platform/
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 52c03e60b114..f06ac8c6c7ea 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -40,8 +40,7 @@ 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/
+core-y		+= arch/nios2/
 
 INSTALL_PATH ?= /tftpboot
 nios2-boot := arch/$(ARCH)/boot
-- 
2.27.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-27  5:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27  5:56 [PATCH] nios2: add arch/nios2/Kbuild Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).