Skip to content

Instantly share code, notes, and snippets.

@devymex
Created December 31, 2022 12:57
Show Gist options
  • Save devymex/537f823c85e158696466db9537868979 to your computer and use it in GitHub Desktop.
Save devymex/537f823c85e158696466db9537868979 to your computer and use it in GitHub Desktop.
#! /bin/bash -e
export TOOLCHAIN_ROOT="/heop/.tool/toolchain/arm-ca9-linux-gnueabihf-6.5"
export PATH=$TOOLCHAIN_ROOT/bin:$PATH
export CPPFLAGS="--sysroot=$TOOLCHAIN_ROOT/arm-ca9-linux-gnueabihf/sysroot"
export AR=arm-linux-ar
export AS=arm-linux-as
export LD=arm-linux-ld
export RANLIB=arm-linux-ranlib
export CC=arm-linux-gcc
export NM=arm-linux-nm
autoreconf -fi
./configure --host=arm-ca9-linux-gnueabihf --prefix=/mnt/hik/curl/build/install --without-ssl
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