Skip to content

Commit c91ddab

Browse files
masahir0ychenhuacai
authored andcommitted
LoongArch: Migrate to the generic rule for built-in DTB
Commit 654102d ("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 <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 09e9d37 commit c91ddab

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

arch/loongarch/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ obj-y += net/
44
obj-y += vdso/
55

66
obj-$(CONFIG_KVM) += kvm/
7-
obj-$(CONFIG_BUILTIN_DTB) += boot/dts/
87

98
# for cleaning
109
subdir- += boot

arch/loongarch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ endchoice
396396
config BUILTIN_DTB
397397
bool "Enable built-in dtb in kernel"
398398
depends on OF
399+
select GENERIC_BUILTIN_DTB
399400
help
400401
Some existing systems do not provide a canonical device tree to
401402
the kernel at boot time. Let's provide a device tree table in the

arch/loongarch/boot/dts/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

33
dtb-y = loongson-2k0500-ref.dtb loongson-2k1000-ref.dtb loongson-2k2000-ref.dtb
4-
5-
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME))

0 commit comments

Comments
 (0)