26 lines
1.1 KiB
Bash
26 lines
1.1 KiB
Bash
|
#!/bin/bash
|
||
|
###
|
||
|
# @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
|
||
|
# @Date: 2023-08-10 19:18:57
|
||
|
# @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
|
||
|
# @LastEditTime: 2023-09-11 21:18:37
|
||
|
# @FilePath: /linux-5.4.31/build.sh
|
||
|
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||
|
###
|
||
|
root_path=$(pwd)
|
||
|
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 stm32mp1_cyf_defconfig
|
||
|
make uImage dtbs LOADADDR=0xc2000040 -j12
|