From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXLJS-0000II-NF for barebox@lists.infradead.org; Thu, 13 Dec 2018 07:21:40 +0000 Date: Thu, 13 Dec 2018 08:21:27 +0100 From: Sascha Hauer Message-ID: <20181213072127.pnpkdm7gf4vvezb7@pengutronix.de> References: <20181213063408.18849-1-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20181213063408.18849-1-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] scripts/mkcompile_h: Remove trailing spaces from compiler version To: Antony Pavlov Cc: barebox@lists.infradead.org On Thu, Dec 13, 2018 at 09:34:08AM +0300, Antony Pavlov wrote: > This is an adoption of the linux kernel commit > > | commit adcc3f7cee29eb831f79f4ac7ba6a0fbce7ac936 > | Author: Jonathan Liu > | Date: Mon Jun 12 18:23:17 2017 +1000 > | > | scripts/mkcompile_h: Remove trailing spaces from compiler version > | > | Improves the output of "cat /proc/version" by getting rid of the > | trailing space at the end of the compiler version when the kernel > | is compiled using GCC. > | > | Signed-off-by: Jonathan Liu > | Signed-off-by: Masahiro Yamada > > Signed-off-by: Antony Pavlov > --- > scripts/mkcompile_h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha > > diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h > index 1a80ef7c70..60b20cafc6 100755 > --- a/scripts/mkcompile_h > +++ b/scripts/mkcompile_h > @@ -72,7 +72,7 @@ UTS_TRUNCATE="cut -b -$UTS_LEN" > echo \#define BAREBOX_COMPILE_BY \"`echo $BAREBOX_COMPILE_BY | $UTS_TRUNCATE`\" > echo \#define BAREBOX_COMPILE_HOST \"`echo $BAREBOX_COMPILE_HOST | $UTS_TRUNCATE`\" > > - echo \#define BAREBOX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\" > + echo \#define BAREBOX_COMPILER \"`$CC -v 2>&1 | grep ' version ' | sed 's/[[:space:]]*$//'`\" > ) > .tmpcompile > > # Only replace the real compile.h if the new one is different, > -- > 2.20.0.rc2 > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox