From: Alper Nebi Yasak Date: Tue, 10 Nov 2020 17:44:53 +0300 Subject: [PATCH] binman: Handle tool paths containing '~' correctly In-Reply-To: <20201109074500.1.Idd7cf4072510c9da331280890ca7a5505adc2f23@changeid> References: <20201109074500.1.Idd7cf4072510c9da331280890ca7a5505adc2f23@changeid> Message-ID: <887ab691-cf5b-3356-ae82-315007b32917@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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.