[PATCH] binman: Handle tool paths containing '~' correctly

Alper Nebi Yasak alpernebiyasak at gmail.com
Tue Nov 10 15:44:53 CET 2020


On 09/11/2020 17:45, Simon Glass wrote:
> At present if CROSS_COMPILE contains a tilde, such as
> ~/.buildman-toolchains/gcc-7.3.0-nolibc/i386-linux/bin/i386-linux-gcc
> then binman gives a confusing error:
> 
>    binman: Error 255 running '~/..buildman-toolchains/gcc-7.3.0- ...
> 
> Fix this by expanding it out before running the tool.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Arguably, whatever is passing CROSS_COMPILE to binman should have
expanded that; how are you passing it? If that's from shell you could
use one of CROSS_COMPILE="$HOME/..." or ~/"..." (the "~/..." form isn't
expanded), if it's read from e.g. ~/.buildman then the config parser
should be expanding it at read-time.


More information about the U-Boot mailing list