[PATCH Trusty SRU V2] UBUNTU: [Debian] Add UTS_RELEASE_MINOR to utsrelease.h

Tim Gardner tim.gardner at canonical.com
Tue Jun 17 15:27:27 UTC 2014


BugLink: http://bugs.launchpad.net/bugs/1327619

Provides for finer grained kernel identification for external modules.

Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 98fdf89..ad884c9 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -244,6 +244,8 @@ endif
 	# Copy over the compilation version.
 	cp "$(builddir)/build-$*/include/generated/compile.h" \
 		"$(hdrdir)/include/generated/compile.h"
+	# Add UTS_RELEASE_MINOR since UTS_RELEASE is difficult to parse.
+	echo "#define UTS_RELEASE_MINOR $(abinum)" >> $(hdrdir)/include/generated/utsrelease.h
 	# powerpc kernel arch seems to need some .o files for external module linking. Add them in.
 ifeq ($(build_arch),powerpc)
 	mkdir -p $(hdrdir)/arch/powerpc/lib
-- 
1.9.1





More information about the kernel-team mailing list