From c3184ccbf8cafd16e63c3d475c7d989698579b39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Mon, 4 Jan 2021 20:23:41 +0100 Subject: [PATCH] spec: set CONFIG_LOCALVERSION MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Set CONFIG_LOCALVERSION insetad of EXTRAVERSION in Makefile to carry information about the platform variant. Change-Id: If1650692162832ea86988e4adb610ce0148edde3 Signed-off-by: Łukasz Stelmach --- packaging/linux-rpi4.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/linux-rpi4.spec b/packaging/linux-rpi4.spec index 1d5d670..d6c28c6 100644 --- a/packaging/linux-rpi4.spec +++ b/packaging/linux-rpi4.spec @@ -81,15 +81,15 @@ headers are used by the installed headers for GNU glibc and other system %{?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 - # 0. extract uapi headers make headers_check %{?_smp_mflags} make headers_install %{?_smp_mflags} # 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} -- 2.7.4