Created
December 31, 2022 12:57
-
-
Save devymex/0fda2881ed2e2da8c1e5e3af87a7d790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
export TOOLCHAIN_ROOT=/heop/.tool/toolchain/arm-ca9-linux-gnueabihf-6.5 | |
export SYSROOT=$TOOLCHAIN_ROOT/arm-ca9-linux-gnueabihf/sysroot | |
export CC=$TOOLCHAIN_ROOT/bin/arm-linux-gcc | |
export CXX=$TOOLCHAIN_ROOT/bin/arm-linux-g++ | |
export AR=$TOOLCHAIN_ROOT/bin/arm-linux-ar | |
export RANLIB=$TOOLCHAIN_ROOT/bin/arm-linux-ranlib | |
mkdir -p build | |
cd build | |
cmake .. \ | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX=./install \ | |
-DCMAKE_SYSROOT=$SYSROOT \ | |
-DCMAKE_C_COMPILER=$CC \ | |
-DCMAKE_CXX_COMPILER=$CXX \ | |
-DCMAKE_AR=$AR \ | |
-DCMAKE_RANLIB=$RANLIB \ | |
-DEVENT__DISABLE_MBEDTLS=ON \ | |
-DEVENT__DISABLE_TESTS=ON \ | |
-DEVENT__DISABLE_OPENSSL=ON | |
make -j$(grep -c ^processor /proc/cpuinfo) | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment