[PATCH v3 3/8] MIPS: Ingenic: Do not force BUILTIN_DTB in Kconfig

From: H. Nikolaus Schaller

Date: Sat Nov 28 2026 - 12:21:23 EST


Remove the unconditional selection of BUILTIN_DTB for MACH_INGENIC
when MIPS_NO_APPENDED_DTB is enabled.

The current Kconfig logic selects BUILTIN_DTB when
MIPS_NO_APPENDED_DTB is set, although this configuration is intended
to prevent the kernel from appending a DTB to the kernel image.

While the kernel gives precedence to a DTB supplied by the boot loader,
selecting BUILTIN_DTB still triggers additional build steps and may
add unnecessary code to the resulting uImage.

Note that BUILTIN_DTB controls the build process, not necessarily
whether a DTB is actually embedded in the kernel image. For example,
CONFIG_BUILTIN_DTB=y with CONFIG_BUILTIN_DTB_NAME="" still triggers
the generation of .builtin-dtbs.S, but does not embed a DTB.

The goal is to allow a configuration in which no .builtin-dtbs.S
is generated and no DTB is appended to or built into the zImage/uImage
so that the boot loader can provide an individual DTB for a generic
kernel.

This change depends on the preceding patches making BUILTIN_DTB
user-selectable and enabling it explicitly in the existing Ingenic
board defconfigs. Backport those changes together with this fix.

Fixes: f0f4a753079c ("MIPS: generic: Add support for Ingenic SoCs")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
---

Notes:
Changes in v3:
- fix Fixes: tags and add Cc:

Review: Paul Cercueil pointed out that the two Fixes: trailers
should be reduced to the verified introducing commit.

arch/mips/Kconfig | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 749d8cc7855aa..156cf9b9ffe98 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -127,7 +127,6 @@ config MACH_INGENIC
select GPIOLIB
select COMMON_CLK
select GENERIC_IRQ_CHIP
- select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
select USE_OF
select CPU_SUPPORTS_CPUFREQ
select MIPS_EXTERNAL_TIMER
--
2.56.0