LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-08-23 8e62b03217c78e78eddf3ff8dbd5948dd4831aa6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
 
#REP_CROSSTOOL=arm-linux-gnueabihf-
REP_CROSSTOOL=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
REP_LYFTP=http://master.weike-iot.com:2211/src/
 
function replace_crosstool()
{
    for f in `find -iname "build*.sh"`
    do
        sed -i -e "s|^CROSSTOOL=.*|CROSSTOOL=$REP_CROSSTOOL|g" $f
        sed -i -e "s|^CROSS_COMPILE=.*|CROSS_COMPILE=$REP_CROSSTOOL|g" $f
        sed -i -e "s|^LYFTP_SRC=.*|LYFTP_SRC=$REP_LYFTP|g" $f
    done
 
    for f in `find -iname "makefile"`
    do
        sed -i -e "s|^CROSS_COMPILE=.*|CROSS_COMPILE=$REP_CROSSTOOL|g" $f
    done
 
}
 
replace_crosstool