* [PATCH] riscv: migrate to the generic rule for built-in DTB
@ 2024-12-22 0:08 Masahiro Yamada
2025-03-16 10:39 ` Masahiro Yamada
2025-03-27 3:24 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2024-12-22 0:08 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
Cc: linux-kernel, Masahiro Yamada, Conor Dooley, 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.
To keep consistency across architectures, this commit also renames
CONFIG_BUILTIN_DTB_SOURCE to CONFIG_BUILTIN_DTB_NAME.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
---
arch/riscv/Kbuild | 1 -
arch/riscv/Kconfig | 3 ++-
arch/riscv/boot/dts/Makefile | 2 --
arch/riscv/configs/nommu_k210_defconfig | 2 +-
arch/riscv/configs/nommu_k210_sdcard_defconfig | 2 +-
5 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/riscv/Kbuild b/arch/riscv/Kbuild
index 2c585f7a0b6e..126fb738fc44 100644
--- a/arch/riscv/Kbuild
+++ b/arch/riscv/Kbuild
@@ -1,7 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-y += kernel/ mm/ net/
-obj-$(CONFIG_BUILTIN_DTB) += boot/dts/
obj-$(CONFIG_CRYPTO) += crypto/
obj-y += errata/
obj-$(CONFIG_KVM) += kvm/
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index d4a7ca0388c0..5f5774892a6e 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -1267,13 +1267,14 @@ config RISCV_ISA_FALLBACK
config BUILTIN_DTB
bool "Built-in device tree"
depends on OF && NONPORTABLE
+ select GENERIC_BUILTIN_DTB
help
Build a device tree into the Linux image.
This option should be selected if no bootloader is being used.
If unsure, say N.
-config BUILTIN_DTB_SOURCE
+config BUILTIN_DTB_NAME
string "Built-in device tree source"
depends on BUILTIN_DTB
help
diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile
index fdae05bbf556..b09678f9badc 100644
--- a/arch/riscv/boot/dts/Makefile
+++ b/arch/riscv/boot/dts/Makefile
@@ -7,5 +7,3 @@ subdir-y += sifive
subdir-y += sophgo
subdir-y += starfive
subdir-y += thead
-
-obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_SOURCE))
diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig
index 87ff5a1233af..ee18d1e333f2 100644
--- a/arch/riscv/configs/nommu_k210_defconfig
+++ b/arch/riscv/configs/nommu_k210_defconfig
@@ -35,7 +35,7 @@ CONFIG_NR_CPUS=2
CONFIG_CMDLINE="earlycon console=ttySIF0"
CONFIG_CMDLINE_FORCE=y
CONFIG_BUILTIN_DTB=y
-CONFIG_BUILTIN_DTB_SOURCE="canaan/k210_generic"
+CONFIG_BUILTIN_DTB_NAME="canaan/k210_generic"
# CONFIG_SECCOMP is not set
# CONFIG_STACKPROTECTOR is not set
# CONFIG_GCC_PLUGINS is not set
diff --git a/arch/riscv/configs/nommu_k210_sdcard_defconfig b/arch/riscv/configs/nommu_k210_sdcard_defconfig
index 95cbd574f291..e770d81b738e 100644
--- a/arch/riscv/configs/nommu_k210_sdcard_defconfig
+++ b/arch/riscv/configs/nommu_k210_sdcard_defconfig
@@ -27,7 +27,7 @@ CONFIG_NR_CPUS=2
CONFIG_CMDLINE="earlycon console=ttySIF0 root=/dev/mmcblk0p1 rootwait ro"
CONFIG_CMDLINE_FORCE=y
CONFIG_BUILTIN_DTB=y
-CONFIG_BUILTIN_DTB_SOURCE="canaan/k210_generic"
+CONFIG_BUILTIN_DTB_NAME="canaan/k210_generic"
# CONFIG_SECCOMP is not set
# CONFIG_STACKPROTECTOR is not set
# CONFIG_GCC_PLUGINS is not set
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] riscv: migrate to the generic rule for built-in DTB
2024-12-22 0:08 [PATCH] riscv: migrate to the generic rule for built-in DTB Masahiro Yamada
@ 2025-03-16 10:39 ` Masahiro Yamada
2025-03-16 11:56 ` Alexandre Ghiti
2025-03-27 3:24 ` patchwork-bot+linux-riscv
1 sibling, 1 reply; 4+ messages in thread
From: Masahiro Yamada @ 2025-03-16 10:39 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
Cc: linux-kernel, Conor Dooley, Conor Dooley, Krzysztof Kozlowski,
Rob Herring, devicetree
On Sun, Dec 22, 2024 at 9:08 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.
>
> To keep consistency across architectures, this commit also renames
> CONFIG_BUILTIN_DTB_SOURCE to CONFIG_BUILTIN_DTB_NAME.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> ---
Ping?
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] riscv: migrate to the generic rule for built-in DTB
2025-03-16 10:39 ` Masahiro Yamada
@ 2025-03-16 11:56 ` Alexandre Ghiti
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Ghiti @ 2025-03-16 11:56 UTC (permalink / raw)
To: Masahiro Yamada, Paul Walmsley, Palmer Dabbelt, Albert Ou,
linux-riscv
Cc: linux-kernel, Conor Dooley, Conor Dooley, Krzysztof Kozlowski,
Rob Herring, devicetree
Hi Masahiro,
On 16/03/2025 11:39, Masahiro Yamada wrote:
> On Sun, Dec 22, 2024 at 9:08 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.
>>
>> To keep consistency across architectures, this commit also renames
>> CONFIG_BUILTIN_DTB_SOURCE to CONFIG_BUILTIN_DTB_NAME.
>>
>> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
>> Acked-by: Conor Dooley <conor.dooley@microchip.com>
>> ---
> Ping?
It is on my list for 6.15 and *should* be merged.
Thanks,
Alex
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] riscv: migrate to the generic rule for built-in DTB
2024-12-22 0:08 [PATCH] riscv: migrate to the generic rule for built-in DTB Masahiro Yamada
2025-03-16 10:39 ` Masahiro Yamada
@ 2025-03-27 3:24 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-riscv @ 2025-03-27 3:24 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-riscv, paul.walmsley, palmer, aou, linux-kernel,
conor.dooley, conor+dt, krzk+dt, robh, devicetree
Hello:
This patch was applied to riscv/linux.git (for-next)
by Alexandre Ghiti <alexghiti@rivosinc.com>:
On Sun, 22 Dec 2024 09:08:25 +0900 you 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.
>
> To keep consistency across architectures, this commit also renames
> CONFIG_BUILTIN_DTB_SOURCE to CONFIG_BUILTIN_DTB_NAME.
>
> [...]
Here is the summary with links:
- riscv: migrate to the generic rule for built-in DTB
https://git.kernel.org/riscv/c/82e81b89501a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-27 3:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 0:08 [PATCH] riscv: migrate to the generic rule for built-in DTB Masahiro Yamada
2025-03-16 10:39 ` Masahiro Yamada
2025-03-16 11:56 ` Alexandre Ghiti
2025-03-27 3:24 ` patchwork-bot+linux-riscv
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).