mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] LoongArch: migrate to the generic rule for built-in DTB
@ 2024-12-22  0:11 Masahiro Yamada
  2025-01-01 10:35 ` Huacai Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2024-12-22  0:11 UTC (permalink / raw)
  To: Huacai Chen, WANG Xuerui, loongarch
  Cc: linux-kernel, Masahiro Yamada, Conor Dooley, Krzysztof Kozlowski,
	Rob Herring, devicetree

Commit 654102df2ac2 ("kbuild: add generic support for built-in boot
DTBs") introduced generic support for built-in DTBs.

Select GENERIC_BUILTIN_DTB when built-in DTB support is enabled.

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

 arch/loongarch/Kbuild            | 1 -
 arch/loongarch/Kconfig           | 1 +
 arch/loongarch/boot/dts/Makefile | 2 --
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/loongarch/Kbuild b/arch/loongarch/Kbuild
index bfa21465d83a..beb8499dd8ed 100644
--- a/arch/loongarch/Kbuild
+++ b/arch/loongarch/Kbuild
@@ -4,7 +4,6 @@ obj-y += net/
 obj-y += vdso/
 
 obj-$(CONFIG_KVM) += kvm/
-obj-$(CONFIG_BUILTIN_DTB) += boot/dts/
 
 # for cleaning
 subdir- += boot
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index dae3a9104ca6..98e099be912d 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -396,6 +396,7 @@ endchoice
 config BUILTIN_DTB
 	bool "Enable built-in dtb in kernel"
 	depends on OF
+	select GENERIC_BUILTIN_DTB
 	help
 	  Some existing systems do not provide a canonical device tree to
 	  the kernel at boot time. Let's provide a device tree table in the
diff --git a/arch/loongarch/boot/dts/Makefile b/arch/loongarch/boot/dts/Makefile
index 747d0c3f6389..15d5e14fe418 100644
--- a/arch/loongarch/boot/dts/Makefile
+++ b/arch/loongarch/boot/dts/Makefile
@@ -1,5 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
 dtb-y = loongson-2k0500-ref.dtb loongson-2k1000-ref.dtb loongson-2k2000-ref.dtb
-
-obj-$(CONFIG_BUILTIN_DTB)	+= $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME))
-- 
2.43.0


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

* Re: [PATCH] LoongArch: migrate to the generic rule for built-in DTB
  2024-12-22  0:11 [PATCH] LoongArch: migrate to the generic rule for built-in DTB Masahiro Yamada
@ 2025-01-01 10:35 ` Huacai Chen
  0 siblings, 0 replies; 2+ messages in thread
From: Huacai Chen @ 2025-01-01 10:35 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: WANG Xuerui, loongarch, linux-kernel, Conor Dooley,
	Krzysztof Kozlowski, Rob Herring, devicetree

Queued, thanks.

Huacai

On Sun, Dec 22, 2024 at 8:13 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> Commit 654102df2ac2 ("kbuild: add generic support for built-in boot
> DTBs") introduced generic support for built-in DTBs.
>
> Select GENERIC_BUILTIN_DTB when built-in DTB support is enabled.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
>  arch/loongarch/Kbuild            | 1 -
>  arch/loongarch/Kconfig           | 1 +
>  arch/loongarch/boot/dts/Makefile | 2 --
>  3 files changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/arch/loongarch/Kbuild b/arch/loongarch/Kbuild
> index bfa21465d83a..beb8499dd8ed 100644
> --- a/arch/loongarch/Kbuild
> +++ b/arch/loongarch/Kbuild
> @@ -4,7 +4,6 @@ obj-y += net/
>  obj-y += vdso/
>
>  obj-$(CONFIG_KVM) += kvm/
> -obj-$(CONFIG_BUILTIN_DTB) += boot/dts/
>
>  # for cleaning
>  subdir- += boot
> diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
> index dae3a9104ca6..98e099be912d 100644
> --- a/arch/loongarch/Kconfig
> +++ b/arch/loongarch/Kconfig
> @@ -396,6 +396,7 @@ endchoice
>  config BUILTIN_DTB
>         bool "Enable built-in dtb in kernel"
>         depends on OF
> +       select GENERIC_BUILTIN_DTB
>         help
>           Some existing systems do not provide a canonical device tree to
>           the kernel at boot time. Let's provide a device tree table in the
> diff --git a/arch/loongarch/boot/dts/Makefile b/arch/loongarch/boot/dts/Makefile
> index 747d0c3f6389..15d5e14fe418 100644
> --- a/arch/loongarch/boot/dts/Makefile
> +++ b/arch/loongarch/boot/dts/Makefile
> @@ -1,5 +1,3 @@
>  # SPDX-License-Identifier: GPL-2.0-only
>
>  dtb-y = loongson-2k0500-ref.dtb loongson-2k1000-ref.dtb loongson-2k2000-ref.dtb
> -
> -obj-$(CONFIG_BUILTIN_DTB)      += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME))
> --
> 2.43.0
>

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

end of thread, other threads:[~2025-01-01 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-22  0:11 [PATCH] LoongArch: migrate to the generic rule for built-in DTB Masahiro Yamada
2025-01-01 10:35 ` Huacai Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®