From: Łukasz Stelmach Date: Mon, 4 Jan 2021 19:23:41 +0000 (+0100) Subject: spec: set CONFIG_LOCALVERSION X-Git-Tag: accepted/tizen/unified/20230118.172025~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=757f3b170696019f6f2fdf616e16c6cacfd5115d;p=platform%2Fkernel%2Flinux-rpi.git spec: set CONFIG_LOCALVERSION Set CONFIG_LOCALVERSION insetad of EXTRAVERSION in Makefile to carry information about the platform variant. Change-Id: If1650692162832ea86988e4adb610ce0148edde3 Signed-off-by: Łukasz Stelmach --- 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}