Skip to content

Commit 9c43783

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: DTS: Fix build errors used with various configs
If CONFIG_MIPS_MALTA is not set but CONFIG_LEGACY_BOARD_SEAD3 is set, the subdir arch/mips/boot/dts/mti will not be built, so the sead3.dts which depends on CONFIG_LEGACY_BOARD_SEAD3 in this subdir is also not built, and then there exists the following build error, fix it. LD .tmp_vmlinux.kallsyms1 arch/mips/generic/board-sead3.o:(.mips.machines.init+0x4): undefined reference to `__dtb_sead3_begin' Makefile:1106: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 Additionally, add CONFIG_FIT_IMAGE_FDT_BOSTON check for subdir img to fix the following build error when CONFIG_MACH_PISTACHIO is not set but CONFIG_FIT_IMAGE_FDT_BOSTON is set. FATAL ERROR: Couldn't open "boot/dts/img/boston.dtb": No such file or directory Reported-by: kbuild test robot <[email protected]> Reported-by: Guenter Roeck <[email protected]> Fixes: 41528ba ("MIPS: DTS: Only build subdir of current platform") Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 7d6d283 commit 9c43783

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/mips/boot/dts/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
subdir-$(CONFIG_BMIPS_GENERIC) += brcm
33
subdir-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon
44
subdir-$(CONFIG_MACH_PISTACHIO) += img
5+
subdir-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += img
56
subdir-$(CONFIG_MACH_INGENIC) += ingenic
67
subdir-$(CONFIG_LANTIQ) += lantiq
78
subdir-$(CONFIG_MACH_LOONGSON64) += loongson
89
subdir-$(CONFIG_MSCC_OCELOT) += mscc
910
subdir-$(CONFIG_MIPS_MALTA) += mti
11+
subdir-$(CONFIG_LEGACY_BOARD_SEAD3) += mti
1012
subdir-$(CONFIG_NLM_XLP_BOARD) += netlogic
1113
subdir-$(CONFIG_FIT_IMAGE_FDT_NI169445) += ni
1214
subdir-$(CONFIG_MACH_PIC32) += pic32

0 commit comments

Comments
 (0)