OABI/EABI specific autotools settings
Hello,
I was trying to use Orbit2 on an ARM EABI system (Openmoko 2007.2 on QEMU), but I ran into alignment issues: the autotools presets in site/arm-common assumed OABI structure alignment. The following trivial patch fixed it for my build, but it is not suitable for merging into OE, because it would break OABI builds. Therefore I would like to propose a change which allows using different presets for EABI and OABI builds. Basically the idea is to use the following files:
arm-common - non-ABI specific presets
arm-oabi-common - OABI presets
arm-eabi-common - EABI presets
arm-linux - non ABI specific presets
arm-oabi-linux - OABI presets
arm-eabi-linux - EABI presets
Actually the oabi/eabi files should only hold a handful of declarations, mainly structure alignment settings.
What do you think? Would you accept a patch which implements the above structure? Or is there a better method to support this?
The actual patch to arm-common is attached.
Best Regards,
Gergely
openembedded/site/arm-common +4 -4
@@ -158,15 +158,15 @@ # ORBit2 ac_cv_alignof_CORBA_boolean=1 ac_cv_alignof_CORBA_char=1 -ac_cv_alignof_CORBA_double=4 +ac_cv_alignof_CORBA_double=8 ac_cv_alignof_CORBA_float=4 ac_cv_alignof_CORBA_long=4 -ac_cv_alignof_CORBA_long_double=4 -ac_cv_alignof_CORBA_long_long=4 +ac_cv_alignof_CORBA_long_double=8 +ac_cv_alignof_CORBA_long_long=8 ac_cv_alignof_CORBA_octet=1 ac_cv_alignof_CORBA_pointer=4 ac_cv_alignof_CORBA_short=2 -ac_cv_alignof_CORBA_struct=4 +ac_cv_alignof_CORBA_struct=1 ac_cv_alignof_CORBA_wchar=2 ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes}