From cdb4ab10f59b5f5baf85dbe5fdd08c30c1cf8c25 Mon Sep 17 00:00:00 2001 From: chenyf <1343619937@qq.com> Date: Wed, 10 Jan 2024 14:32:59 +0800 Subject: [PATCH] 1 --- .gitignore | 1 + tf-a-stm32mp-2.2.r1/build.sh | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .gitignore 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