Last active
November 6, 2015 20:43
-
-
Save bryant/daff6af2c5e0b4e9abad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ARCH_FLAGS="-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16" | |
WA=$(echo $ARCH_FLAGS | sed -e 's# #,#g') | |
CLANG_CALL="clang -no-integrated-as -Wa,$WA -target arm-none-eabi $ARCH_FLAGS" | |
export AS_FOR_TARGET="arm-none-eabi-as $ARCH_FLAGS" | |
export GCC_FOR_TARGET=$CLANG_CALL | |
export CC_FOR_TARGET=$CLANG_CALL | |
export CFLAGS_FOR_TARGET=$ARCH_FLAGS | |
../configure \ | |
--prefix=$HOME/usr \ | |
--target=arm-none-eabi \ | |
--build=x86_64-pc-linux-gnu \ | |
--host=x86_64-pc-linux-gnu \ | |
--enable-lto --disable-libstdcxx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment