linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nds32: move core-y in arch/nds32/Makefile to arch/nds32/Kbuild
@ 2021-08-11 16:44 Masahiro Yamada
  0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2021-08-11 16:44 UTC (permalink / raw)
  To: Nick Hu, Greentime Hu, Vincent Chen; +Cc: Masahiro Yamada, linux-kernel

Use obj-y to clean up Makefile.

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

 arch/nds32/Kbuild   | 3 +++
 arch/nds32/Makefile | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild
index a4e40e534e6a..565b9bc3c9db 100644
--- a/arch/nds32/Kbuild
+++ b/arch/nds32/Kbuild
@@ -1 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
+obj-y			+= kernel/ mm/
+obj-$(CONFIG_FPU)	+= math-emu/
+obj-y			+= boot/dts/
diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
index ccdca7142020..853a5df32f68 100644
--- a/arch/nds32/Makefile
+++ b/arch/nds32/Makefile
@@ -25,8 +25,6 @@ export	TEXTADDR
 
 
 # If we have a machine-specific directory, then include it in the build.
-core-y				+= arch/nds32/kernel/ arch/nds32/mm/
-core-$(CONFIG_FPU)              += arch/nds32/math-emu/
 libs-y				+= arch/nds32/lib/
 
 ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""'
@@ -48,7 +46,6 @@ CHECKFLAGS      += -D__NDS32_EB__
 endif
 
 boot := arch/nds32/boot
-core-y += $(boot)/dts/
 
 Image: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] nds32: move core-y in arch/nds32/Makefile to arch/nds32/Kbuild
  2022-02-14  3:37 Masahiro Yamada
@ 2022-02-14  3:39 ` Masahiro Yamada
  0 siblings, 0 replies; 3+ messages in thread
From: Masahiro Yamada @ 2022-02-14  3:39 UTC (permalink / raw)
  To: Linux Kbuild mailing list
  Cc: Linux Kernel Mailing List, Greentime Hu, Nick Hu, Vincent Chen,
	Stephen Rothwell

I will apply this to linux-kbuild to avoid
the pain of Stephen Rothwell:

https://lore.kernel.org/lkml/20211025093813.2ebe9212@canb.auug.org.au/t/

The nds32 tree seems unmaintained.






On Mon, Feb 14, 2022 at 12:38 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> Use obj-y to clean up Makefile.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
>  arch/nds32/Kbuild   | 3 +++
>  arch/nds32/Makefile | 3 ---
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild
> index 4e39f7abdeb6..ac127371afa4 100644
> --- a/arch/nds32/Kbuild
> +++ b/arch/nds32/Kbuild
> @@ -1,4 +1,7 @@
>  # SPDX-License-Identifier: GPL-2.0-only
> +obj-y                  += kernel/ mm/
> +obj-$(CONFIG_FPU)      += math-emu/
> +obj-y                  += boot/dts/
>
>  # for cleaning
>  subdir- += boot
> diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
> index b33d5d81b6ae..7be31e3d7f2d 100644
> --- a/arch/nds32/Makefile
> +++ b/arch/nds32/Makefile
> @@ -27,8 +27,6 @@ export        TEXTADDR
>
>
>  # If we have a machine-specific directory, then include it in the build.
> -core-y                         += arch/nds32/kernel/ arch/nds32/mm/
> -core-$(CONFIG_FPU)              += arch/nds32/math-emu/
>  libs-y                         += arch/nds32/lib/
>
>  ifdef CONFIG_CPU_LITTLE_ENDIAN
> @@ -44,7 +42,6 @@ CHECKFLAGS      += -D__NDS32_EB__
>  endif
>
>  boot := arch/nds32/boot
> -core-y += $(boot)/dts/
>
>  Image: vmlinux
>         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
> --
> 2.32.0
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] nds32: move core-y in arch/nds32/Makefile to arch/nds32/Kbuild
@ 2022-02-14  3:37 Masahiro Yamada
  2022-02-14  3:39 ` Masahiro Yamada
  0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2022-02-14  3:37 UTC (permalink / raw)
  To: linux-kbuild
  Cc: linux-kernel, Masahiro Yamada, Greentime Hu, Nick Hu, Vincent Chen

Use obj-y to clean up Makefile.

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

 arch/nds32/Kbuild   | 3 +++
 arch/nds32/Makefile | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild
index 4e39f7abdeb6..ac127371afa4 100644
--- a/arch/nds32/Kbuild
+++ b/arch/nds32/Kbuild
@@ -1,4 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
+obj-y			+= kernel/ mm/
+obj-$(CONFIG_FPU)	+= math-emu/
+obj-y			+= boot/dts/
 
 # for cleaning
 subdir- += boot
diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
index b33d5d81b6ae..7be31e3d7f2d 100644
--- a/arch/nds32/Makefile
+++ b/arch/nds32/Makefile
@@ -27,8 +27,6 @@ export	TEXTADDR
 
 
 # If we have a machine-specific directory, then include it in the build.
-core-y				+= arch/nds32/kernel/ arch/nds32/mm/
-core-$(CONFIG_FPU)              += arch/nds32/math-emu/
 libs-y				+= arch/nds32/lib/
 
 ifdef CONFIG_CPU_LITTLE_ENDIAN
@@ -44,7 +42,6 @@ CHECKFLAGS      += -D__NDS32_EB__
 endif
 
 boot := arch/nds32/boot
-core-y += $(boot)/dts/
 
 Image: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-14  3:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 16:44 [PATCH] nds32: move core-y in arch/nds32/Makefile to arch/nds32/Kbuild Masahiro Yamada
2022-02-14  3:37 Masahiro Yamada
2022-02-14  3:39 ` 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).