Espressobin u-boot compiling is little more complex. Now it works.

This commit is contained in:
Igor Pecovnik
2017-10-08 19:56:23 +02:00
parent fe0c8ea8fc
commit 40ed0a8a79

View File

@@ -70,12 +70,14 @@ family_tweaks()
uboot_custom_postprocess()
{
local ATF_COMPILER='arm-linux-gnueabi-'
local ATF_USE_GCC='< 6.0'
local atfdir="$SRC/cache/sources/$ATFDIR/${ATFBRANCH##*:}"
local ubootdir="$SRC/cache/sources/$BOOTDIR/${BOOTBRANCH##*:}"
toolchain=$(find_toolchain "$ATF_COMPILER" "$ATF_USE_GCC")
cd $atfdir
display_alert "Building boot image" "" "info"
make DEBUG=1 USE_COHERENT_MEM=0 LOG_LEVEL=20 SECURE=0 CLOCKSPRESET=CPU_800_DDR_800 DDR_TOPOLOGY=2 BOOTDEV=SPINOR PARTNUM=0 PLAT=a3700 all fip BL33=$SRC/cache/sources/$BOOTDIR/${BOOTBRANCH##*:}/u-boot.bin WTP=../../marvell-tools $CTHREADS CROSS_COMPILE=$toolchain$ATF_COMPILER >> $DEST/debug/compilation.log
make DEBUG=1 USE_COHERENT_MEM=0 LOG_LEVEL=20 SECURE=0 CLOCKSPRESET=CPU_800_DDR_800 DDR_TOPOLOGY=2 BOOTDEV=SPINOR PARTNUM=0 PLAT=a3700 all fip BL33=$SRC/cache/sources/$BOOTDIR/${BOOTBRANCH##*:}/u-boot.bin WTP=../../marvell-tools $CTHREADS CROSS_CM3=$toolchain/$ATF_COMPILER >> $DEST/debug/compilation.log
cp build/a3700/debug/flash-image.bin $ubootdir
cd $ubootdir
}