From d131168fcf8037aa6eceb186483e9bf202573cc8 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 18 Nov 2016 12:25:28 +0000 Subject: [PATCH] Move Untitled.sh script to new folder, with proper name --- Untitled.sh | 18 ------------------ scripts/mod-build.sh | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 18 deletions(-) delete mode 100644 Untitled.sh create mode 100644 scripts/mod-build.sh diff --git a/Untitled.sh b/Untitled.sh deleted file mode 100644 index 68df7d2..0000000 --- a/Untitled.sh +++ /dev/null @@ -1,18 +0,0 @@ - -BASENAME=arm-mod-linux-gnueabihf - -export PATH=/opt/mod-toolchain/usr/bin/:$PATH - -export AR=$BASENAME-gcc -export CC=$BASENAME-gcc -export CPP=$BASENAME-cpp -export CXX=$BASENAME-g++ -export LD=$BASENAME-ld -export STRIP=$BASENAME-strip - -unset CPPFLAGS -export CFLAGS="-mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math -fomit-frame-pointer -funroll-loops -funsafe-loop-optimizations" -export CXXFLAGS="-mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math -fomit-frame-pointer -funroll-loops -funsafe-loop-optimizations" -export LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined" - -unset BASENAME diff --git a/scripts/mod-build.sh b/scripts/mod-build.sh new file mode 100644 index 0000000..894abee --- /dev/null +++ b/scripts/mod-build.sh @@ -0,0 +1,22 @@ + +BASENAME=arm-mod-linux-gnueabihf +OPTS_BASE="-O3 -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad" +OPTS_AGGRESSIVE="$OPTS_BASE -ffast-math -fno-finite-math-only -fprefetch-loop-arrays -funroll-loops -funsafe-loop-optimizations" + +export PATH=/opt/mod-toolchain/usr/bin/:$PATH + +export AR=$BASENAME-gcc +export CC=$BASENAME-gcc +export CPP=$BASENAME-cpp +export CXX=$BASENAME-g++ +export LD=$BASENAME-ld +export STRIP=$BASENAME-strip + +export CFLAGS=$OPTS_AGGRESSIVE +export CXXFLAGS=$OPTS_AGGRESSIVE +export LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined" + +unset CPPFLAGS +unset BASENAME +unset OPTS_BASE +unset OPTS_AGGRESSIVE