From: Sascha Hauer <s.hauer@pengutronix.de>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] scripts/mkcompile_h: Remove trailing spaces from compiler version
Date: Thu, 13 Dec 2018 08:21:27 +0100 [thread overview]
Message-ID: <20181213072127.pnpkdm7gf4vvezb7@pengutronix.de> (raw)
In-Reply-To: <20181213063408.18849-1-antonynpavlov@gmail.com>
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 <net147@gmail.com>
> | 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 <net147@gmail.com>
> | Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
> 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
prev parent reply other threads:[~2018-12-13 7:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-13 6:34 Antony Pavlov
2018-12-13 7:21 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181213072127.pnpkdm7gf4vvezb7@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox