[PATCH 1/1] UBUNTU: custom binaries need VERSION_SIGNATURE updated during prepare
Andy Whitcroft
apw at canonical.com
Wed Jun 8 18:43:03 UTC 2011
BugLink: http://bugs.launchpad.net/bugs/794698
When preparing the custom binary trees we build a configuration. Part
of this should involve setting VERSION_SIGNATURE for that build. This
is missed for custom binaries which leads to the confusing situation
that a -xen flavour will report as below:
$ uname -a && cat /proc/version_signature
Linux ip-10-36-7-174 2.6.24-29-xen #1 SMP
Thu Apr 21 20:44:30 UTC 2011 i686 GNU/Linux
Ubuntu 2.6.24-4.6-generic
This renders /proc/version_signature worthless. Ensure we fill this
in when we build the config.
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
debian/rules.d/6-binary-custom.mk | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/debian/rules.d/6-binary-custom.mk b/debian/rules.d/6-binary-custom.mk
index ec34480..908d162 100644
--- a/debian/rules.d/6-binary-custom.mk
+++ b/debian/rules.d/6-binary-custom.mk
@@ -23,7 +23,8 @@ $(stampdir)/stamp-custom-prepare-%: debian/binary-custom.d/%/config.$(arch) \
echo $$patch; \
patch -p1 -d $(origsrc) < $$patch ;\
done
- cat $< > $(srcdir)/.config
+ cat $< | sed -e 's/.*CONFIG_VERSION_SIGNATURE.*/CONFIG_VERSION_SIGNATURE="Ubuntu $(release)-$(revision)-$*"/' > $(srcdir)/.config
+
$(kmake) -C $(origsrc) O=$(srcdir) silentoldconfig prepare scripts
touch $@
--
1.7.4.1
More information about the kernel-team
mailing list