uboot/u-boot-stm32mp-2020.01/build.sh

22 lines
744 B
Bash
Executable File

#!/bin/bash
#env var
# export PATH=$PATH:/home/chenyf/stm32mp157/toolchian/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin
root_path=$(pwd)
echo $root_path
cd ../../toolchain/bin
ls
if [ -e "./arm-none-linux-gnueabihf-gcc" ]; then
echo find toolchain arm-none-linux-gnueabihf-gcc
toolchain_path=$(pwd)
export PATH=$PATH:$toolchain_path
# arm-none-linux-gnueabihf-gcc -v
cd $root_path
else
echo "toolchain no find"
exit 1
fi
# make distclean
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- stm32mp15_trusted_defconfig
# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- DEVICE_TREE=stm32mp157d-ev1 all -j8
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- DEVICE_TREE=stm32mp157d-cyf -j12 all