aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2013-01-16 19:51:08 -0700
committerJohn Rigby <john.rigby@linaro.org>2013-01-16 19:51:08 -0700
commitbde2cbf362d46b8aa1ebea8a2ecb3af36f1ad3d8 (patch)
tree42dfb7421a5bdf6dd1f956b2c56d6c9253185633
parentaa8f434cf5834a76a35a3f3d5f9df9f361902351 (diff)
downloadubuntu-kernel-ci-arm64.tar.gz
get kernel version from kernel Makefilearm64
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rwxr-xr-xconfigs/vexpress64-3.7.cfg1
-rwxr-xr-xscripts/package_kernel14
2 files changed, 15 insertions, 0 deletions
diff --git a/configs/vexpress64-3.7.cfg b/configs/vexpress64-3.7.cfg
index 7756c42..cd14bd4 100755
--- a/configs/vexpress64-3.7.cfg
+++ b/configs/vexpress64-3.7.cfg
@@ -20,4 +20,5 @@ export ubuntu_config_frag=linaro/configs/ubuntu-minimal.conf
export KARCH=arm64
export DEBARCH=arm64
export DEBARCHES=arm64
+export auto_kernel_version=true
diff --git a/scripts/package_kernel b/scripts/package_kernel
index 4c46c34..5507134 100755
--- a/scripts/package_kernel
+++ b/scripts/package_kernel
@@ -211,6 +211,19 @@ fixup_socflavour_contents()
done
}
+fixup_kernel_version()
+{
+ test "$auto_kernel_version" = "true" && {
+ kv=$(make kernelversion)
+ kv=${kv/.?-rc*/}
+ kv=${kv/.0/}
+ sed -i \
+ -e "1 s/.*/linux-linaro-SOCFLAVOUR-$kv ($kv.0-1.1ubuntu1) UNRELEASED; urgency=low/" \
+ debian.linaro/changelog
+ }
+ true
+}
+
fixup_socflavour_filenames()
{
for f in $(find debian.linaro/ -type f -name '*SOCFLAVOUR*')
@@ -603,6 +616,7 @@ check_settings
test "$do_merge" == "true" && {
cleanup_previous_build
setup_kernel_git # cd's to kernel_build/linux
+ fixup_kernel_version
fixup_socflavour_contents
fixup_socflavour_filenames
fixup_vars_file