From 7cc9aed367fa13b9c628ebac2e0064d547c50a3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Mon, 21 Mar 2022 20:13:04 +0100 Subject: [PATCH] script: use localversion-amlogic MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Set custom version via localversion-amlogic file instead of EXTRVERSION in the Makefile to avoid commiting automatically modified Makefile by mistake. Change-Id: I6c872eb26b8c6eb732fb6d47b5d05ef73a0418ea Signed-off-by: Łukasz Stelmach --- .gitignore | 3 +++ build-amlogic.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4105cfb..c2c679d 100644 --- a/.gitignore +++ b/.gitignore @@ -118,3 +118,6 @@ all.config # fetched Android config fragments kernel/configs/android-*.cfg + +# For Tizen build-amlogic.sh +/localversion-amlogic diff --git a/build-amlogic.sh b/build-amlogic.sh index 27476a6..483b2be 100755 --- a/build-amlogic.sh +++ b/build-amlogic.sh @@ -45,13 +45,13 @@ set_names() set_extra_version() { # set EXTRAVERSION for each board - sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -TIZEN-amlogic-${OUT_DIR}/" Makefile + echo "-TIZEN-amlogic-${OUT_DIR}" > localversion-amlogic } clear_extra_version() { # clear EXTRAVERSION - sed -i "s/^EXTRAVERSION.*/EXTRAVERSION =/" Makefile + rm -f localversion-amlogic } build_kernel() -- 2.7.4