* [PATCH] scripts: setlocalversion: remove quotes around localversion from config
@ 2022-01-13 21:26 Nikita Maslov
2022-01-21 15:20 ` Simon Glass
2022-01-24 21:03 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Nikita Maslov @ 2022-01-13 21:26 UTC (permalink / raw)
To: u-boot
From: Nikita Maslov <wkernelteam@gmail.com>
Date: Fri, 14 Jan 2022 00:13:39 +0300
Subject: [PATCH] scripts: setlocalversion: remove quotes around
localversion from config
After replacing of include/config/auto.conf sourcing with
extraction of CONFIG_LOCALVERSION, resulting version string
contains quotes around localversion part which are always
present in auto.conf (even if localversion is empty).
This patch fixes this script so it removes quotes now.
Signed-off-by: Nikita Maslov <wkernelteam@gmail.com>
Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Cc: Tom Rini <trini@konsulko.com>
---
scripts/setlocalversion | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index c1c0435267..4a63143706 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -153,8 +153,9 @@ if test -e include/config/auto.conf; then
# We are interested only in CONFIG_LOCALVERSION and
# CONFIG_LOCALVERSION_AUTO, so extract these in a safe
# way (i.e. w/o sourcing auto.conf)
- CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '='
'/^CONFIG_LOCALVERSION=/ {print $2}'`
- CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F
'=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}'`
+ # xargs echo removes quotes
+ CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '='
'/^CONFIG_LOCALVERSION=/ {print $2}' | xargs echo`
+ CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F
'=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}' | xargs echo`
else
echo "Error: kernelrelease not valid - run 'make prepare' to
update it" >&2
exit 1
--
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scripts: setlocalversion: remove quotes around localversion from config
2022-01-13 21:26 [PATCH] scripts: setlocalversion: remove quotes around localversion from config Nikita Maslov
@ 2022-01-21 15:20 ` Simon Glass
2022-01-24 21:03 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2022-01-21 15:20 UTC (permalink / raw)
To: Nikita Maslov; +Cc: U-Boot Mailing List
On Thu, 13 Jan 2022 at 20:38, Nikita Maslov <wkernelteam@gmail.com> wrote:
>
> From: Nikita Maslov <wkernelteam@gmail.com>
> Date: Fri, 14 Jan 2022 00:13:39 +0300
> Subject: [PATCH] scripts: setlocalversion: remove quotes around
> localversion from config
>
> After replacing of include/config/auto.conf sourcing with
> extraction of CONFIG_LOCALVERSION, resulting version string
> contains quotes around localversion part which are always
> present in auto.conf (even if localversion is empty).
>
> This patch fixes this script so it removes quotes now.
>
> Signed-off-by: Nikita Maslov <wkernelteam@gmail.com>
> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Cc: Tom Rini <trini@konsulko.com>
> ---
>
> scripts/setlocalversion | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scripts: setlocalversion: remove quotes around localversion from config
2022-01-13 21:26 [PATCH] scripts: setlocalversion: remove quotes around localversion from config Nikita Maslov
2022-01-21 15:20 ` Simon Glass
@ 2022-01-24 21:03 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-01-24 21:03 UTC (permalink / raw)
To: Nikita Maslov; +Cc: u-boot
[-- Attachment #1: Type: text/plain, Size: 2064 bytes --]
On Fri, Jan 14, 2022 at 12:26:30AM +0300, Nikita Maslov wrote:
> From: Nikita Maslov <wkernelteam@gmail.com>
> Date: Fri, 14 Jan 2022 00:13:39 +0300
> Subject: [PATCH] scripts: setlocalversion: remove quotes around
> localversion from config
>
> After replacing of include/config/auto.conf sourcing with
> extraction of CONFIG_LOCALVERSION, resulting version string
> contains quotes around localversion part which are always
> present in auto.conf (even if localversion is empty).
>
> This patch fixes this script so it removes quotes now.
>
> Signed-off-by: Nikita Maslov <wkernelteam@gmail.com>
> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Cc: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
>
> scripts/setlocalversion | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> '=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}' | xargs echo`
> else
> echo "Error: kernelrelease not valid - run 'make prepare' to
> update it" >&2
> exit 1
> --
>
> diff --git a/scripts/setlocalversion b/scripts/setlocalversion
> index c1c0435267..4a63143706 100755
> --- a/scripts/setlocalversion
> +++ b/scripts/setlocalversion
> @@ -153,8 +153,9 @@ if test -e include/config/auto.conf; then
> # We are interested only in CONFIG_LOCALVERSION and
> # CONFIG_LOCALVERSION_AUTO, so extract these in a safe
> # way (i.e. w/o sourcing auto.conf)
> - CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '='
> '/^CONFIG_LOCALVERSION=/ {print $2}'`
> - CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F
> '=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}'`
> + # xargs echo removes quotes
> + CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '='
> '/^CONFIG_LOCALVERSION=/ {print $2}' | xargs echo`
> + CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F
Can you please re-post this? The whitespace was rather badly destroyed,
thanks.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-24 21:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-13 21:26 [PATCH] scripts: setlocalversion: remove quotes around localversion from config Nikita Maslov
2022-01-21 15:20 ` Simon Glass
2022-01-24 21:03 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox