kumquat-buildroot/toolchain
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 pkg-cmake: move configuration files out of $(HOST_DIR)/usr 2017-07-05 11:50:14 +02:00
toolchain-buildroot
toolchain-external core/pkg-toolchain-external: quiesce spurious stderr 2017-08-19 15:06:45 +02:00
Config.in
helpers.mk toolchain: replace absolute symlinks by relative symlinks during sysroot copy 2017-07-05 23:19:53 +02:00
toolchain-common.in arch/mips: add option for toolchains supporting -mfpxx 2017-07-21 22:49:18 +02:00
toolchain-wrapper.c arch/mips: add support for MIPS32 FP mode 2017-07-16 16:45:22 +02:00
toolchain-wrapper.mk Globally replace $(HOST_DIR)/usr/bin with $(HOST_DIR)/bin 2017-07-05 15:19:29 +02:00
toolchain.mk