Changeset 68 in flair-dev for trunk/scripts/flair_compile_all.sh
- Timestamp:
- Mar 6, 2018, 12:14:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/flair_compile_all.sh
r48 r68 4 4 from_scratch=no 5 5 IDE_SCRIPT=cmake_codelite.sh 6 toolchains=($OECORE_CMAKE_TOOLCHAINS) 6 7 7 8 function green_echo () { … … 32 33 cd $1/$2 33 34 34 rm -f build_arm/CMakeCache.txt35 35 $FLAIR_ROOT/flair-dev/scripts/$IDE_SCRIPT > /dev/null 36 36 … … 41 41 } 42 42 43 function cross_compile () {44 green_echo "Cross compiling and installing $2"45 cd $1/$2/build_arm46 if [ "$from_scratch" = "yes" ]; then make clean > /dev/null; fi47 make -j$NB_THREADS > /dev/null48 check_error49 make install50 }51 52 43 function compile () { 53 green_echo "Compiling and installing $2" 54 cd $1/$2/$ARCH_DIR 55 if [ "$from_scratch" = "yes" ]; then make clean > /dev/null; fi 56 make -j$NB_THREADS > /dev/null 57 check_error 58 make install 44 #iterate over available toolchains 45 for arch in ${toolchains[@]}; do 46 green_echo "Compiling and installing $2 for $arch" 47 cd $1/$2/build_$arch 48 if [ "$from_scratch" = "yes" ]; then make clean > /dev/null; fi 49 make -j$NB_THREADS > /dev/null 50 check_error 51 make install 52 done 59 53 } 60 54 … … 63 57 configure $FLAIR_ROOT/flair-src/lib $projects 64 58 compile $FLAIR_ROOT/flair-src/lib $projects 65 cross_compile $FLAIR_ROOT/flair-src/lib $projects66 59 done 67 60 68 61 if [ -d $FLAIR_ROOT/flair-hds ]; then 69 for projects in FlairBebop FlairArdrone2 VisionFilter; do62 for projects in FlairBebop FlairArdrone2 FlairMinidrones VisionFilter; do 70 63 configure $FLAIR_ROOT/flair-hds/src/lib $projects 71 64 compile $FLAIR_ROOT/flair-hds/src/lib $projects 72 cross_compile $FLAIR_ROOT/flair-hds/src/lib $projects73 65 done 74 66 fi … … 79 71 configure $FLAIR_ROOT/flair-src/tools $projects 80 72 compile $FLAIR_ROOT/flair-src/tools $projects 81 cross_compile $FLAIR_ROOT/flair-src/tools $projects82 73 done 83 74 } … … 87 78 configure $1/$2 $projects 88 79 compile $1/$2 $projects 89 cross_compile $1/$2 $projects90 80 done 91 81 } … … 95 85 configure $FLAIR_ROOT/flair-src/demos $projects 96 86 compile $FLAIR_ROOT/flair-src/demos $projects 97 cross_compile $FLAIR_ROOT/flair-src/demos $projects98 87 done 99 88 … … 105 94 configure $FLAIR_ROOT/flair-src/demos/Skeletons $projects 106 95 compile $FLAIR_ROOT/flair-src/demos/Skeletons $projects 107 cross_compile $FLAIR_ROOT/flair-src/demos/Skeletons $projects108 96 done 109 97
Note:
See TracChangeset
for help on using the changeset viewer.