From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 28 Nov 2016 20:03:55 -0500 Subject: [U-Boot] tools/Makefile: suppress "which swig" error output In-Reply-To: <1479557099-15818-1-git-send-email-andre.przywara@arm.com> References: <1479557099-15818-1-git-send-email-andre.przywara@arm.com> Message-ID: <20161129010355.GF2546@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 19, 2016 at 12:04:59PM +0000, Andre Przywara wrote: > The Makefile in tools/ tries to find the "swig" utility by calling "which". > If nothing is found in the path, some versions of which will print an error > message: > $ make clean > which: no swig in (/usr/local/bin:/usr/bin:/bin) > > This does not apply to all version of "which", though: > $ echo $0 > bash > $ type which > which is aliased to `type -path' > $ which foo <== this version is OK > $ /usr/bin/which foo <== this one is chatty > /usr/bin/which: no foo in (/usr/local/bin:/usr/bin:/bin) > $ sh <== make uses /bin/sh > sh-4.3$ which foo <== no alias here > which: no foo in (/usr/local/bin:/usr/bin:/bin) > > This error message is rather pointless in our case, since we just have > this very check to care for this. So add stderr redirection to suppress > the message. > > Signed-off-by: Andre Przywara > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: