Skip to content

Instantly share code, notes, and snippets.

@Gioyik
Last active August 15, 2023 07:59

Revisions

  1. Gioyik renamed this gist Jun 19, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Gioyik revised this gist Dec 11, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions script.sh
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,6 @@ export CPP="arm-linux-gnueabi-gcc -E"
    export LD="arm-linux-gnueabi-ld"
    export AS="arm-linux-gnueabi-as"
    export CCLD="arm-linux-gnueabi-gcc ${TARGET_ARCH} ${TARGET_TUNE}"
    export CXX="arm-linux-gnueabi-g++ ${TARGET_ARCH} ${TARGET_TUNE}"
    export NM="arm-linux-gnueabi-nm"
    export STRIP="arm-linux-gnueabi-strip"
    export OBJCOPY="arm-linux-gnueabi-objcopy"
    @@ -22,26 +21,27 @@ export F77="arm-linux-gnueabi-g77 ${TARGET_ARCH} ${TARGET_TUNE}"
    unset LIBC

    #Define flags
    export CXXFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -ggdb3 -g3 -O0"
    export CXXFLAGS="-march=armv7-a"
    export LDFLAGS="-L${CSTOOLS_LIB} -Wl,-rpath-link,${CSTOOLS_LIB} -Wl,-O1 -Wl,--hash-style=gnu"
    export CFLAGS="-isystem${CSTOOLS_INC} -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3"
    export CPPFLAGS="-isystem${CSTOOLS_INC}"
    export CCFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -ggdb3 -g3 -O0"
    export CCFLAGS="-march=armv7-a"

    #Tools
    export CSTOOLS=/usr/arm-linux-gnueabi
    export CSTOOLS_INC=${CSTOOLS}/include
    export CSTOOLS_LIB=${CSTOOLS}/lib
    export ARM_TARGET_LIB=$CSTOOLS_LIB
    export GYP_DEFINES="armv7=1"

    #Define other things, those are not 'must' to have defined but we added
    export SHELL="/bin/bash"
    export TERM="screen"
    export LANG="en_US.UTF-8"
    export MAKE="make"
    export HOME="/home/gioyik" #Change this one with the name of your user directory

    #Export the path for your system
    export HOME="/home/gioyik" #Change this one with the name of your user directory
    export PATH="${CSTOOLS}/bin:/usr/arm-linux-gnueabi/bin/:${HOME}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

    ./configure --without-snapshot --dest-cpu=arm --dest-os=linux
  3. Gioyik created this gist Dec 10, 2013.
    49 changes: 49 additions & 0 deletions script.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    #!/bin/sh -e

    #Define our target device
    export TARGET_ARCH="-march=armv7-a"
    export TARGET_TUNE="-mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb"

    #Define the cross compilators on your system
    export AR="arm-linux-gnueabi-ar"
    export CC="arm-linux-gnueabi-gcc"
    export CXX="arm-linux-gnueabi-g++"
    export LINK="arm-linux-gnueabi-g++"
    export CPP="arm-linux-gnueabi-gcc -E"
    export LD="arm-linux-gnueabi-ld"
    export AS="arm-linux-gnueabi-as"
    export CCLD="arm-linux-gnueabi-gcc ${TARGET_ARCH} ${TARGET_TUNE}"
    export CXX="arm-linux-gnueabi-g++ ${TARGET_ARCH} ${TARGET_TUNE}"
    export NM="arm-linux-gnueabi-nm"
    export STRIP="arm-linux-gnueabi-strip"
    export OBJCOPY="arm-linux-gnueabi-objcopy"
    export RANLIB="arm-linux-gnueabi-ranlib"
    export F77="arm-linux-gnueabi-g77 ${TARGET_ARCH} ${TARGET_TUNE}"
    unset LIBC

    #Define flags
    export CXXFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -ggdb3 -g3 -O0"
    export LDFLAGS="-L${CSTOOLS_LIB} -Wl,-rpath-link,${CSTOOLS_LIB} -Wl,-O1 -Wl,--hash-style=gnu"
    export CFLAGS="-isystem${CSTOOLS_INC} -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3"
    export CPPFLAGS="-isystem${CSTOOLS_INC}"
    export CCFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -ggdb3 -g3 -O0"

    #Tools
    export CSTOOLS=/usr/arm-linux-gnueabi
    export CSTOOLS_INC=${CSTOOLS}/include
    export CSTOOLS_LIB=${CSTOOLS}/lib
    export ARM_TARGET_LIB=$CSTOOLS_LIB

    #Define other things, those are not 'must' to have defined but we added
    export SHELL="/bin/bash"
    export TERM="screen"
    export LANG="en_US.UTF-8"
    export MAKE="make"
    export HOME="/home/gioyik" #Change this one with the name of your user directory

    #Export the path for your system
    export PATH="${CSTOOLS}/bin:/usr/arm-linux-gnueabi/bin/:${HOME}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

    ./configure --without-snapshot --dest-cpu=arm --dest-os=linux

    bash --norc