mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sh: Fix built-in DTB build with generic rule
@ 2026-07-11  0:01 Florian Fuchs
  2026-09-16 19:07 ` John Paul Adrian Glaubitz
  2026-10-06  7:57 ` John Paul Adrian Glaubitz
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Fuchs @ 2026-07-11  0:01 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-sh
  Cc: Rich Felker, Masahiro Yamada, devicetree, linux-kernel, Florian Fuchs

Commit 21bcc49974c2 ("sh: Migrate to the generic rule for built-in DTB")
selected GENERIC_BUILTIN_DTB and renamed the Kconfig symbols, but left
arch/sh/boot/dts/Makefile using the old obj-y form. So convert them as
well, to fix the build error when using CONFIG_BUILTIN_DTB.

Fixes: 21bcc49974c2 ("sh: Migrate to the generic rule for built-in DTB")
Signed-off-by: Florian Fuchs <fuchsfl@gmail.com>
---
The fix is the same like at other places like openrisc or nios.
Without that, the build fails, when building with builtin device tree:
CONFIG_BUILTIN_DTB=y
CONFIG_BUILTIN_DTB_NAME="j2_mimas_v2"
with an error like:
.builtin-dtbs.S:6: Error: file not found: arch/sh/boot/dts/j2_mimas_v2.dtb
---
 arch/sh/boot/dts/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile
index d109978a5eb9..16e281b859ae 100644
--- a/arch/sh/boot/dts/Makefile
+++ b/arch/sh/boot/dts/Makefile
@@ -1,2 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME))
+dtb-y += $(addsuffix .dtb, $(CONFIG_BUILTIN_DTB_NAME))
-- 
2.43.0


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

* Re: [PATCH] sh: Fix built-in DTB build with generic rule
  2026-07-11  0:01 [PATCH] sh: Fix built-in DTB build with generic rule Florian Fuchs
@ 2026-09-16 19:07 ` John Paul Adrian Glaubitz
  2026-10-06  7:57 ` John Paul Adrian Glaubitz
  1 sibling, 0 replies; 3+ messages in thread
From: John Paul Adrian Glaubitz @ 2026-09-16 19:07 UTC (permalink / raw)
  To: Florian Fuchs, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-sh
  Cc: Rich Felker, Masahiro Yamada, devicetree, linux-kernel

Hi Florian,

On Sat, 2026-07-11 at 02:01 +0200, Florian Fuchs wrote:
> Commit 21bcc49974c2 ("sh: Migrate to the generic rule for built-in DTB")
> selected GENERIC_BUILTIN_DTB and renamed the Kconfig symbols, but left
> arch/sh/boot/dts/Makefile using the old obj-y form. So convert them as
> well, to fix the build error when using CONFIG_BUILTIN_DTB.
> 
> Fixes: 21bcc49974c2 ("sh: Migrate to the generic rule for built-in DTB")
> Signed-off-by: Florian Fuchs <fuchsfl@gmail.com>
> ---
> The fix is the same like at other places like openrisc or nios.
> Without that, the build fails, when building with builtin device tree:
> CONFIG_BUILTIN_DTB=y
> CONFIG_BUILTIN_DTB_NAME="j2_mimas_v2"
> with an error like:
> .builtin-dtbs.S:6: Error: file not found: arch/sh/boot/dts/j2_mimas_v2.dtb
> ---
>  arch/sh/boot/dts/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile
> index d109978a5eb9..16e281b859ae 100644
> --- a/arch/sh/boot/dts/Makefile
> +++ b/arch/sh/boot/dts/Makefile
> @@ -1,2 +1,2 @@
>  # SPDX-License-Identifier: GPL-2.0-only
> -obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME))
> +dtb-y += $(addsuffix .dtb, $(CONFIG_BUILTIN_DTB_NAME))

Good catch, thanks a lot!

Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] sh: Fix built-in DTB build with generic rule
  2026-07-11  0:01 [PATCH] sh: Fix built-in DTB build with generic rule Florian Fuchs
  2026-09-16 19:07 ` John Paul Adrian Glaubitz
@ 2026-10-06  7:57 ` John Paul Adrian Glaubitz
  1 sibling, 0 replies; 3+ messages in thread
From: John Paul Adrian Glaubitz @ 2026-10-06  7:57 UTC (permalink / raw)
  To: Florian Fuchs, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-sh
  Cc: Rich Felker, Masahiro Yamada, devicetree, linux-kernel

On Sat, 2026-07-11 at 02:01 +0200, Florian Fuchs wrote:
> Commit 21bcc49974c2 ("sh: Migrate to the generic rule for built-in DTB")
> selected GENERIC_BUILTIN_DTB and renamed the Kconfig symbols, but left
> arch/sh/boot/dts/Makefile using the old obj-y form. So convert them as
> well, to fix the build error when using CONFIG_BUILTIN_DTB.
> 
> Fixes: 21bcc49974c2 ("sh: Migrate to the generic rule for built-in DTB")
> Signed-off-by: Florian Fuchs <fuchsfl@gmail.com>
> ---
> The fix is the same like at other places like openrisc or nios.
> Without that, the build fails, when building with builtin device tree:
> CONFIG_BUILTIN_DTB=y
> CONFIG_BUILTIN_DTB_NAME="j2_mimas_v2"
> with an error like:
> .builtin-dtbs.S:6: Error: file not found: arch/sh/boot/dts/j2_mimas_v2.dtb
> ---
>  arch/sh/boot/dts/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/sh/boot/dts/Makefile b/arch/sh/boot/dts/Makefile
> index d109978a5eb9..16e281b859ae 100644
> --- a/arch/sh/boot/dts/Makefile
> +++ b/arch/sh/boot/dts/Makefile
> @@ -1,2 +1,2 @@
>  # SPDX-License-Identifier: GPL-2.0-only
> -obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME))
> +dtb-y += $(addsuffix .dtb, $(CONFIG_BUILTIN_DTB_NAME))

Merged into for-next for v7.4.

Thanks,
Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

end of thread, other threads:[~2026-10-06  7:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-11  0:01 [PATCH] sh: Fix built-in DTB build with generic rule Florian Fuchs
2026-09-16 19:07 ` John Paul Adrian Glaubitz
2026-10-06  7:57 ` John Paul Adrian Glaubitz

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®