toolchain/helpers: only check for an EABI toolchain
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 13 Jul 2013 22:27:32 +0000 (00:27 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 14 Jul 2013 20:18:13 +0000 (22:18 +0200)
... since we only support EABI now.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/helpers.mk

index 0398b63cf041d00b5deb9b4c63c4b0f391e2e5f8..95217e7b29c57488dbb16d629c882af413b305eb 100644 (file)
@@ -280,13 +280,8 @@ check_uclibc = \
 check_arm_abi = \
        __CROSS_CC=$(strip $1) ; \
        EXT_TOOLCHAIN_TARGET=`LANG=C $${__CROSS_CC} -v 2>&1 | grep ^Target | cut -f2 -d ' '` ; \
-       if echo $${EXT_TOOLCHAIN_TARGET} | grep -qE 'eabi(hf)?$$' ; then \
-               EXT_TOOLCHAIN_ABI="eabi" ; \
-       else \
-               EXT_TOOLCHAIN_ABI="oabi" ; \
-       fi ; \
-       if [ x$(BR2_ARM_EABI) = x"y" -a $${EXT_TOOLCHAIN_ABI} = "oabi" ] ; then \
-               echo "Incorrect ABI setting" ; \
+       if ! echo $${EXT_TOOLCHAIN_TARGET} | grep -qE 'eabi(hf)?$$' ; then \
+               echo "External toolchain uses the unsuported OABI" ; \
                exit 1 ; \
        fi