toolchain/helpers.mk: remove unused argument of check_arm_abi
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Mar 2017 13:25:52 +0000 (15:25 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Mar 2017 13:25:52 +0000 (15:25 +0200)
The check_arm_abi function takes as second argument the path to the
cross-readelf, but does not use it. Therefore, this commit gets rid of
this unnecessary argument.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/helpers.mk
toolchain/toolchain-external/pkg-toolchain-external.mk

index 77303a86eb26b9b4f3c24642d86c628442b0c9b5..30880e551847428d51bdd87958371913cd7f3b78 100644 (file)
@@ -277,7 +277,6 @@ check_uclibc = \
 #
 check_arm_abi = \
        __CROSS_CC=$(strip $1) ; \
-       __CROSS_READELF=$(strip $2) ; \
        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 \
                echo "External toolchain uses the unsuported OABI" ; \
index 8bb7b40d1207301f10e70ce75e38068976d4671d..17773689dda9f51c55e995e3c27d610708005f43 100644 (file)
@@ -553,8 +553,7 @@ define $(2)_CONFIGURE_CMDS
                $$(call qstrip,$$(BR2_TOOLCHAIN_GCC_AT_LEAST))); \
        if test "$$(BR2_arm)" = "y" ; then \
                $$(call check_arm_abi,\
-                       "$$(TOOLCHAIN_EXTERNAL_CC) $$(TOOLCHAIN_EXTERNAL_CFLAGS)",\
-                       $$(TOOLCHAIN_EXTERNAL_READELF)) ; \
+                       "$$(TOOLCHAIN_EXTERNAL_CC) $$(TOOLCHAIN_EXTERNAL_CFLAGS)") ; \
        fi ; \
        if test "$$(BR2_INSTALL_LIBSTDCPP)" = "y" ; then \
                $$(call check_cplusplus,$$(TOOLCHAIN_EXTERNAL_CXX)) ; \