Skip to content

Commit

Permalink
Merge pull request #71 from jzern/patch-1
Browse files Browse the repository at this point in the history
imei.sh: fix aom cmake flags
  • Loading branch information
SoftCreatR authored Aug 31, 2022
2 parents 3ba901e + baba2ea commit c9e2b4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions imei.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Author : Sascha Greuel <[email protected]> #
# Date : 2022-08-31 09:01 #
# License : ISC #
# Version : 6.6.3 #
# Version : 6.6.4 #
# #
# Usage : bash ./imei.sh #
##############################################################
Expand Down Expand Up @@ -526,16 +526,16 @@ install_aom() {
fi

# see https://github.com/SoftCreatR/imei/issues/9
CMAKE_FLAGS="-DBUILD_SHARED_LIBS=1 -DENABLE_DOCS=0 -DENABLE_TESTS=0 -DENABLE_CCACHE=1"
CMAKE_FLAGS=(-DBUILD_SHARED_LIBS=1 -DENABLE_DOCS=0 -DENABLE_TESTS=0 -DENABLE_CCACHE=1)

if [[ "${OS_DISTRO,,}" == *"raspbian"* ]]; then
CMAKE_FLAGS+=' -DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -marm -mfpu=neon"'
CMAKE_FLAGS+=(-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -marm -mfpu=neon")
fi

tar -xf "aom-$AOM_VER.tar.gz" &&
mkdir "$WORK_DIR/build_aom" &&
cd "$WORK_DIR/build_aom" &&
cmake "../aom-$AOM_VER/" "$CMAKE_FLAGS" &&
cmake "../aom-$AOM_VER/" "${CMAKE_FLAGS[@]}" &&
make

if [ -n "$CHECKINSTALL" ]; then
Expand Down

0 comments on commit c9e2b4c

Please sign in to comment.