Skip to content

Commit 687cffd

Browse files
montjoiejcmvbkbc
authored andcommitted
xtensa: rename BUILTIN_DTB to BUILTIN_DTB_SOURCE
When building some xtensa config, I hit the following warning: drivers/staging/mt7621-dts/Kconfig:4:warning: 'BUILTIN_DTB' has wrong type. 'select' only accept arguments of bool and tristate type It is due to some arch use BUILTIN_DTB as a flag for the need to builtin dtb but xtensa use it as a string for which dtb to bulltin. But for this (which dtb to build), it is better to use BUILTIN_DTB_SOURCE like other arch do. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent ad33cc8 commit 687cffd

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

arch/xtensa/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ config USE_OF
451451
help
452452
Include support for flattened device tree machine descriptions.
453453

454-
config BUILTIN_DTB
454+
config BUILTIN_DTB_SOURCE
455455
string "DTB to build into the kernel image"
456456
depends on OF
457457

arch/xtensa/boot/dts/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
#
88
#
99

10-
BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB)).dtb.o
11-
ifneq ($(CONFIG_BUILTIN_DTB),"")
12-
obj-$(CONFIG_OF) += $(BUILTIN_DTB)
10+
BUILTIN_DTB_SOURCE := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_SOURCE)).dtb.o
11+
ifneq ($(CONFIG_BUILTIN_DTB_SOURCE),"")
12+
obj-$(CONFIG_OF) += $(BUILTIN_DTB_SOURCE)
1313
endif
1414

1515
# for CONFIG_OF_ALL_DTBS test

arch/xtensa/configs/audio_kc705_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CONFIG_XTENSA_PLATFORM_XTFPGA=y
3434
CONFIG_CMDLINE_BOOL=y
3535
CONFIG_CMDLINE="earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x38000000@0"
3636
CONFIG_USE_OF=y
37-
CONFIG_BUILTIN_DTB="kc705"
37+
CONFIG_BUILTIN_DTB_SOURCE="kc705"
3838
# CONFIG_COMPACTION is not set
3939
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
4040
CONFIG_PM=y

arch/xtensa/configs/cadence_csp_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ CONFIG_HIGHMEM=y
3838
# CONFIG_PCI is not set
3939
CONFIG_XTENSA_PLATFORM_XTFPGA=y
4040
CONFIG_USE_OF=y
41-
CONFIG_BUILTIN_DTB="csp"
41+
CONFIG_BUILTIN_DTB_SOURCE="csp"
4242
# CONFIG_COMPACTION is not set
4343
CONFIG_XTFPGA_LCD=y
4444
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set

arch/xtensa/configs/generic_kc705_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CONFIG_XTENSA_PLATFORM_XTFPGA=y
3333
CONFIG_CMDLINE_BOOL=y
3434
CONFIG_CMDLINE="earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=0x38000000@0"
3535
CONFIG_USE_OF=y
36-
CONFIG_BUILTIN_DTB="kc705"
36+
CONFIG_BUILTIN_DTB_SOURCE="kc705"
3737
# CONFIG_COMPACTION is not set
3838
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
3939
CONFIG_NET=y

arch/xtensa/configs/nommu_kc705_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ CONFIG_XTENSA_PLATFORM_XTFPGA=y
3939
CONFIG_CMDLINE_BOOL=y
4040
CONFIG_CMDLINE="earlycon=uart8250,mmio32native,0x9d050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=256M@0x60000000"
4141
CONFIG_USE_OF=y
42-
CONFIG_BUILTIN_DTB="kc705_nommu"
42+
CONFIG_BUILTIN_DTB_SOURCE="kc705_nommu"
4343
CONFIG_BINFMT_FLAT=y
4444
CONFIG_NET=y
4545
CONFIG_PACKET=y

arch/xtensa/configs/smp_lx200_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ CONFIG_XTENSA_PLATFORM_XTFPGA=y
3838
CONFIG_CMDLINE_BOOL=y
3939
CONFIG_CMDLINE="earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=96M@0"
4040
CONFIG_USE_OF=y
41-
CONFIG_BUILTIN_DTB="lx200mx"
41+
CONFIG_BUILTIN_DTB_SOURCE="lx200mx"
4242
# CONFIG_COMPACTION is not set
4343
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
4444
CONFIG_NET=y

0 commit comments

Comments
 (0)