Skip to content

Instantly share code, notes, and snippets.

@wadouk
Created March 30, 2020 17:30
Show Gist options
  • Select an option

  • Save wadouk/9daf83a7ec80f9dfd546e90bb058f301 to your computer and use it in GitHub Desktop.

Select an option

Save wadouk/9daf83a7ec80f9dfd546e90bb058f301 to your computer and use it in GitHub Desktop.

Revisions

  1. wadouk created this gist Mar 30, 2020.
    10 changes: 10 additions & 0 deletions init-env.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # http://developer.asustor.com/tools
    # from https://neerajcodes.wordpress.com/2017/08/06/intro-to-cross-compilation/
    export CCHOST=arm-marvell-linux-gnueabi
    export TOOLCAHIN=../$CCHOST/bin/$CCHOST
    export CC=$TOOLCAHIN-gcc
    export LD=$TOOLCAHIN-ld
    export CPP=$TOOLCAHIN-cpp
    export CXX=$TOOLCAHIN-g++
    export AR=$TOOLCAHIN-ar
    ./configure --prefix=$(pwd)/target/ --host=CCHOST