LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2022-04-14 e0160dee003a049267e58975b8c2585a63199d4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
 
REP_CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux-
 
function replace_crosstool()
{
    for f in `find -iname "build*.sh"`
    do
        sed -i -e "s|^CROSSTOOL=.*|CROSSTOOL=$REP_CROSSTOOL|g" $f
    done
}
 
function do_compile
{
    for dir in `ls`
    do
        if [ -f $dir/build*.sh ] ; then
            cd $dir
               ./build*.sh
            cd -
        fi
    done
}
 
#replace_crosstool
 
do_compile