]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: migrate to the generic rule for built-in DTB
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 22 Dec 2024 00:08:25 +0000 (09:08 +0900)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 18 Mar 2025 13:30:13 +0000 (13:30 +0000)
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>
Link: https://lore.kernel.org/r/20241222000836.2578171-1-masahiroy@kernel.org
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/Kbuild
arch/riscv/Kconfig
arch/riscv/boot/dts/Makefile
arch/riscv/configs/nommu_k210_defconfig
arch/riscv/configs/nommu_k210_sdcard_defconfig

index 2c585f7a0b6ef325e0954d88e64a3c2310af3740..126fb738fc4423fa5e90e139f1cf6a6eb594c581 100644 (file)
@@ -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/
index ff35eb16853cd73183f49ee8ae0f2e2c5b1569e5..bae5fd79d6901511a1f01a39541826239601e905 100644 (file)
@@ -1272,13 +1272,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
index bff887d38abe44b0bcd21f0e1e485adcac194f2c..64a898da9aee33f5c10cd332ad59b945615816bf 100644 (file)
@@ -8,5 +8,3 @@ subdir-y += sophgo
 subdir-y += spacemit
 subdir-y += starfive
 subdir-y += thead
-
-obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_SOURCE))
index 87ff5a1233af868191c4497fbaac67c488b5dab7..ee18d1e333f20184e4e142eb34586f6a0fd6c0c6 100644 (file)
@@ -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
index 95cbd574f291f73f6ebccec9bfeefacc87680d6d..e770d81b738e1e7459744e65d9e39e7ab6e985bc 100644 (file)
@@ -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