On 9/12/25 07:23, Tom Rini wrote:
> On Tue, Aug 26, 2025 at 02:47:00PM -0700, E Shattow wrote:
>
>> Add ${CONFIG_SYS_CONFIG_NAME}-u-boot.dtsi into dtsi include search order:
>> orig filename, (SYS_CONFIG_NAME), SYS_SOC, SYS_CPU, SYS_VENDOR, no prefix
>>
>> Signed-off-by: E Shattow <e...@freeshell.de>
>> ---
>> doc/develop/devicetree/control.rst | 1 +
>> scripts/Makefile.lib | 2 ++
>> 2 files changed, 3 insertions(+)
>
> A problem is that today, this leads to failure to build on:
> mt7622_rfb mt7986_rfb mt7986a_bpir3_emmc mt7986a_bpir3_sd mt7988_rfb
> mt7988_sd_rfb mt8516_pum
> pkin socfpga_stratix10 socfpga_stratix10_atf socfpga_agilex5
> socfpga_agilex5_nand2 socfpga_agil
> ex5_vab socfpga_n5x socfpga_n5x_atf socfpga_n5x_vab
> mt7623a_unielec_u7623_02 mt7623n_bpir2 imx6
> q_bosch_acc imx6dl_mamoj socfpga_arria10 socfpga_arria5 socfpga_cyclone5
>
> Because the problem you're trying to solve is being partly solved in
> another way by others, perhaps?
>
For example the first in the list of build failure, mt7622_rfb:
DTC arch/arm/dts/mt7623a-unielec-u7623-02-emmc.dtb
Error: /root/source/u-boot.git/arch/arm/dts/mt7622-u-boot.dtsi:27.1-6
Label or path snfi not found
This happens because CONFIG_SYS_CONFIG_NAME is "mt7622" and is not the
expected "m7622-rfb". Explicitly setting CONFIG_SYS_CONFIG_NAME in
configs/mt7622_rfb_defconfig does not work.
arch/arm/mach-mediatek/Kconfig:
config SYS_CONFIG_NAME
default "mt7622" if TARGET_MT7622
default "mt7623" if TARGET_MT7623
default "mt7629" if TARGET_MT7629
default ...
Drop this in-flight change from the above and it compiles fine.
I would expect this to be an anti-pattern/bug unless we are setting
CONFIG_SYS_CONFIG_NAME explicitly in a config file, no?
Why is SYS_CONFIG_NAME being modified in this way?
-E