mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
fw: only build the bl with clang
-Oz breaks cardem, so just build the bootloader with clang. Closes: OS#6026 Change-Id: Idb9e9a024fb8bfec28ff479c254ea73be0c8ef82
This commit is contained in:
@@ -38,6 +38,7 @@ cd $TOPDIR/firmware
|
|||||||
for build in $BUILDS; do
|
for build in $BUILDS; do
|
||||||
board=`echo $build | cut -d "/" -f 1`
|
board=`echo $build | cut -d "/" -f 1`
|
||||||
app=`echo $build | cut -d "/" -f 2`
|
app=`echo $build | cut -d "/" -f 2`
|
||||||
|
[ "$app" == "dfu" ] && use_clang_for_bl=1 || use_clang_for_bl=0
|
||||||
case "$build" in
|
case "$build" in
|
||||||
"owhw/cardem")
|
"owhw/cardem")
|
||||||
comb="combined"
|
comb="combined"
|
||||||
@@ -57,7 +58,7 @@ for build in $BUILDS; do
|
|||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
echo "=============== $board / $app START =============="
|
echo "=============== $board / $app START =============="
|
||||||
PATH="/opt/llvm-arm/bin:$PATH" make USE_CLANG=1 BOARD="$board" APP="$app" $comb
|
PATH="/opt/llvm-arm/bin:$PATH" make USE_CLANG="$use_clang_for_bl" BOARD="$board" APP="$app" $comb
|
||||||
echo "=============== $board / $app RES:$? =============="
|
echo "=============== $board / $app RES:$? =============="
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user