add support for FIRST's compiler for the roboRIO
Change-Id: Ib20ebe014ed6d84fe90654c20163c57173441b44
diff --git a/aos/build/aos.gypi b/aos/build/aos.gypi
index 046d59b..5a9119d 100644
--- a/aos/build/aos.gypi
+++ b/aos/build/aos.gypi
@@ -28,6 +28,12 @@
['CXX', '<!(readlink -f <(AOS)/build/crio_cxx)'],
],
}
+ ], ['PLATFORM=="linux-arm-gcc_frc"', {
+ 'make_global_settings': [
+ ['CC', '<(ccache)<!(which arm-frc-linux-gnueabi-gcc-4.9)'],
+ ['CXX', '<(ccache)<!(which arm-frc-linux-gnueabi-g++-4.9)'],
+ ],
+ },
], ['PLATFORM=="linux-arm-gcc"', {
'make_global_settings': [
['CC', '<(ccache)<!(which arm-linux-gnueabihf-gcc-4.7)'],
@@ -228,7 +234,7 @@
],
}
],
- ['ARCHITECTURE=="arm"', {
+ ['ARCHITECTURE=="arm" and FULL_COMPILER!="gcc_frc"', {
'cflags': [
'-mcpu=cortex-a8',
'-mfpu=neon',
@@ -238,6 +244,18 @@
'-mfpu=neon',
],
}],
+ ['ARCHITECTURE=="arm" and FULL_COMPILER=="gcc_frc"', {
+ 'cflags': [
+ '-mcpu=cortex-a9',
+ '-mfpu=neon',
+ '-mfloat-abi=softfp',
+ ],
+ 'ldflags': [
+ '-mcpu=cortex-a9',
+ '-mfpu=neon',
+ '-mfloat-abi=softfp',
+ ],
+ }],
['PLATFORM=="crio"', {
'target_conditions': [
['_type=="shared_library"', {