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 <l.stelmach@samsung.com>
# fetched Android config fragments
kernel/configs/android-*.cfg
+
+# For Tizen build-amlogic.sh
+/localversion-amlogic
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()