kumquat-buildroot/toolchain/toolchain-external
Yann E. MORIN e4ebf9b0be core/pkg-toolchain-external: quiesce spurious stderr
Since 392b0a26f5 (toolchain-external: default BR2_TOOLCHAIN_EXTERNAL_PATH
to empty), calling 'make clean' or similar can yield a spurious stderr
message:
    dirname: missing operand
    Try 'dirname --help' for more information.

Which is definitely baffling and unsettling...

It turns out that it is pretty trivial to reproduce, and this defconfig
is just enough:

    $ cat my-defconfig
    BR2_TOOLCHAIN_EXTERNAL=y

    $ make BR2_DEFCONFIG=$(pwd)/my-defconfig defconfig

    $ make clean
    dirname: missing operand
    Try 'dirname --help' for more information.
    [--snip--]

This is because the cross-compiler is not found in the PATH (and for
good reasons, I don't have it in the PATH, not even at all).

So, when the cross-compiler is not found in the path, we simply
continue as if all was good, and postpone the check to much later,
when we try to copy the toolchain libs...

So, use a make construct rather than calling to the shell: $(dir ...)
does not whine if passed nothing.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-08-19 15:06:45 +02:00
..
toolchain-external-codescape-img-mips toolchain: bump Codescape IMG MIPS version to 2016.05-06 2017-01-16 11:56:11 +01:00
toolchain-external-codescape-mti-mips toolchain: bump Codescape MTI MIPS version to 2016.05-06 2017-01-16 13:10:24 +01:00
toolchain-external-codesourcery-aarch64 arch/arm: add big.LITTLE cpu variants 2017-07-22 23:29:24 +02:00
toolchain-external-codesourcery-amd64 toolchain: CodeSourcery AMD64 affected by PR19615 2017-07-04 18:29:25 +02:00
toolchain-external-codesourcery-arm arch/arm: add big.LITTLE cpu variants 2017-07-22 23:29:24 +02:00
toolchain-external-codesourcery-mips toolchain-external: CodeSourcery MIPS update upstream URL 2017-04-30 23:21:02 +02:00
toolchain-external-codesourcery-niosII Revert "toolchain-external: CodeSourcery NiosII 2015.11 affected by PR19405" 2017-05-07 22:09:17 +02:00
toolchain-external-custom toolchain: add 4.12.x choice for headers 2017-07-08 15:56:30 +02:00
toolchain-external-linaro-aarch64 toolchain-external: bump Linaro AArch64 toolchain to 2017.02 2017-02-20 21:58:53 +01:00
toolchain-external-linaro-arm toolchain-external: bump Linaro ARM toolchain to 2017.02 2017-02-20 21:58:40 +01:00
toolchain-external-linaro-armeb toolchain-external: bump Linaro ARMeb toolchain to 2017.02 2017-02-20 21:58:46 +01:00
toolchain-external-synopsys-arc toolchain-external: Update Synopsys prebuilt toolchain for ARC cores 2017-02-04 23:57:43 +01:00
Config.in toolchain-external: default BR2_TOOLCHAIN_EXTERNAL_PATH to empty 2017-07-10 18:03:13 +02:00
pkg-toolchain-external.mk core/pkg-toolchain-external: quiesce spurious stderr 2017-08-19 15:06:45 +02:00
toolchain-external.mk