[PATCH] ARC: HSDK: permit to build out-of-tree
Corentin Labbe
clabbe at baylibre.com
Fri Jul 1 12:52:07 CEST 2022
When building with out of tree source, make fail with:
uboot bin file not exists: /usr/src/uboot/u-boot.bin
This is due to obj files searched in srctree instead of objtree.
Fixes: 9ddcfef6d425 ("ARC: HSDK: Add tool and make target to generate bsp")
Signed-off-by: Corentin Labbe <clabbe at baylibre.com>
---
board/synopsys/hsdk/config.mk | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/board/synopsys/hsdk/config.mk b/board/synopsys/hsdk/config.mk
index def944aad2..778a4283db 100644
--- a/board/synopsys/hsdk/config.mk
+++ b/board/synopsys/hsdk/config.mk
@@ -9,11 +9,11 @@ PLATFORM_CPPFLAGS += -mcpu=hs38_linux -mlittle-endian -matomic -mll64 \
bsp-generate: u-boot u-boot.bin
$(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-hsdk.py \
- --arc-id 0x52 --image $(srctree)/u-boot.bin \
- --elf $(srctree)/u-boot
+ --arc-id 0x52 --image $(objtree)/u-boot.bin \
+ --elf $(objtree)/u-boot
$(Q)tools/mkimage -T script -C none -n 'uboot update script' \
- -d $(srctree)/u-boot-update.txt \
- $(srctree)/u-boot-update.scr &> /dev/null
+ -d $(objtree)/u-boot-update.txt \
+ $(objtree)/u-boot-update.scr &> /dev/null
endif
ifdef CONFIG_BOARD_HSDK_4XD
@@ -23,9 +23,9 @@ PLATFORM_CPPFLAGS += -mcpu=hs4x_rel31 -mlittle-endian -matomic -mll64 \
bsp-generate: u-boot u-boot.bin
$(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-hsdk.py \
- --arc-id 0x54 --image $(srctree)/u-boot.bin \
- --elf $(srctree)/u-boot
+ --arc-id 0x54 --image $(objtree)/u-boot.bin \
+ --elf $(objtree)/u-boot
$(Q)tools/mkimage -T script -C none -n 'uboot update script' \
- -d $(srctree)/u-boot-update.txt \
- $(srctree)/u-boot-update.scr &> /dev/null
+ -d $(objtree)/u-boot-update.txt \
+ $(objtree)/u-boot-update.scr &> /dev/null
endif
--
2.35.1
More information about the U-Boot
mailing list