diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07ed706 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/* \ No newline at end of file diff --git a/tf-a-stm32mp-2.2.r1/build.sh b/tf-a-stm32mp-2.2.r1/build.sh index c659633..0ec5a80 100755 --- a/tf-a-stm32mp-2.2.r1/build.sh +++ b/tf-a-stm32mp-2.2.r1/build.sh @@ -1,4 +1,17 @@ #!/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 toochain arm-none-linux-gnueabihf-gcc + toolchain_path=$(pwd) + export PATH=$PATH:$toolchain_path + # arm-none-linux-gnueabihf-gcc -v + cd $root_path +else + echo "toochain no find" + exit 1 +fi make -f ../Makefile -j12 all