[Buildroot] [PATCH 1/3] toolchain-external: Fix EABIhf check
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Jan 28 21:57:31 UTC 2014
Dear Stefan Sørensen,
On Tue, 14 Jan 2014 09:21:34 +0100, Stefan Sørensen wrote:
> Currently the check for EABI/EABIhf toolchains looks for the
> Tag_ABI_VFP_args attribute in the crt1.o file which gcc adds
> in a EABIhw toolchain. The crt1.o is however often not compiled
> from c but assembler, and will then always failt he EABIhf check.
Do you have details about this? Because the crt1.o trick was actually
tested by me on several toolchains, and it was indeed working.
> + TEMP_C_FILE=`mktemp --tmpdir --suffix=.c`; \
> + touch $${TEMP_C_FILE}; \
> + $${__CROSS_CC} -c -o $${TEMP_C_FILE}.o $${TEMP_C_FILE}; \
If all you need is build an empty source file, then you do not even
need to create a temporary .c file:
gcc -x c -c -o toto.o /dev/null
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list