]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
LoongArch: Migrate to the generic rule for built-in DTB
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 25 Jan 2025 10:51:33 +0000 (18:51 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 25 Jan 2025 10:51:33 +0000 (18:51 +0800)
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>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kbuild
arch/loongarch/Kconfig
arch/loongarch/boot/dts/Makefile

index bfa21465d83afcd4908cc000e49a8c47aea0d165..beb8499dd8ed84330beecbcd61977df0aa3474f8 100644 (file)
@@ -4,7 +4,6 @@ obj-y += net/
 obj-y += vdso/
 
 obj-$(CONFIG_KVM) += kvm/
-obj-$(CONFIG_BUILTIN_DTB) += boot/dts/
 
 # for cleaning
 subdir- += boot
index dae3a9104ca6584133d9b6a3059ee666c216d31b..98e099be912db973a336bf90832ad4f392cc847c 100644 (file)
@@ -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
index 747d0c3f63892926757b28fc29119069767e2310..15d5e14fe41844d5072069955e1848af7bfc0644 100644 (file)
@@ -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))