diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2021-01-04 20:23:41 +0100 |
---|---|---|
committer | Łukasz Stelmach <l.stelmach@samsung.com> | 2021-03-31 08:05:09 +0200 |
commit | dc17e0dcc3f217068107fb1f7f1c2c9343b4a3b5 (patch) | |
tree | 651da319eb7fe3d459f4bd9666c6356e77c0b4d3 | |
parent | 6302447f5c6b79b1151d1d5b3988d6d65f7bd2b4 (diff) | |
download | linux-rpi3-dc17e0dcc3f217068107fb1f7f1c2c9343b4a3b5.tar.gz linux-rpi3-dc17e0dcc3f217068107fb1f7f1c2c9343b4a3b5.tar.bz2 linux-rpi3-dc17e0dcc3f217068107fb1f7f1c2c9343b4a3b5.zip |
spec: set CONFIG_LOCALVERSION
Set CONFIG_LOCALVERSION insetad of EXTRAVERSION in Makefile to carry
information about the platform variant.
Change-Id: I72986cb618b998983f1e9f6eccba7d6e4603248f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
-rw-r--r-- | packaging/linux-rpi3.spec | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/linux-rpi3.spec b/packaging/linux-rpi3.spec index 0065596daad0..4985a68cdbc6 100644 --- a/packaging/linux-rpi3.spec +++ b/packaging/linux-rpi3.spec @@ -87,11 +87,11 @@ counter events as well as various kernel internal events. %{?asan:/usr/bin/gcc-unforce-options} %{?ubsan:/usr/bin/gcc-unforce-options} -# Make sure EXTRAVERSION says what we want it to say -sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{variant}/" Makefile - # 1-1. Set config file make %{config_name} %{?_smp_mflags} +if ! grep -q "^CONFIG_LOCALVERSION=\"-%{variant}" .config; then + ./scripts/config --set-str CONFIG_LOCALVERSION "-%{variant}$(eval $(grep ^CONFIG_LOCALVERSION= .config); echo $CONFIG_LOCALVERSION)" +fi # 1-2. Build Image/Image.gz make %{?_smp_mflags} |