diff mbox

toolchain/helpers.mk: don't discard check_arm_abi stderr

Message ID 2ffa51c027dd4f292dbaa1c0bc898100beda5695.1404405178.git.baruch@tkos.co.il
State Accepted
Commit 8420d4c169c78bc54d6bc6ef7a7e7c2be50052df
Headers show

Commit Message

Baruch Siach July 3, 2014, 4:32 p.m. UTC
Since we are only need to know whether the compiler runs successfully, and
stderr is empty for the success case, there is no need to redirect stderr to
/dev/null. Moreover, stderr output of the failing case reveals valuable
information on the real failure reason.

Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 toolchain/helpers.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni July 3, 2014, 6:14 p.m. UTC | #1
Dear Baruch Siach,

On Thu,  3 Jul 2014 19:32:58 +0300, Baruch Siach wrote:
> Since we are only need to know whether the compiler runs successfully, and

s/are//

> stderr is empty for the success case, there is no need to redirect stderr to
> /dev/null. Moreover, stderr output of the failing case reveals valuable
> information on the real failure reason.
> 
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks!

Thomas
Peter Korsgaard July 4, 2014, 9:22 p.m. UTC | #2
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

 > Since we are only need to know whether the compiler runs successfully, and
 > stderr is empty for the success case, there is no need to redirect stderr to
 > /dev/null. Moreover, stderr output of the failing case reveals valuable
 > information on the real failure reason.

 > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 > Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Committed, thanks.
diff mbox

Patch

diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index c85968054012..8eb71efc19eb 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -298,7 +298,7 @@  check_arm_abi = \
 		echo "External toolchain uses the unsuported OABI" ; \
 		exit 1 ; \
 	fi ; \
-	if ! echo 'int main(void) {}' | $${__CROSS_CC} -x c -o /dev/null - 2>/dev/null; then \
+	if ! echo 'int main(void) {}' | $${__CROSS_CC} -x c -o /dev/null - ; then \
 		abistr_$(BR2_ARM_EABI)='EABI'; \
 		abistr_$(BR2_ARM_EABIHF)='EABIhf'; \
 		echo "Incorrect ABI setting: $${abistr_y} selected, but toolchain is incompatible"; \