[PATCH 1/1] UBUNTU: [Config] include include/generated/compile.h

Andy Whitcroft apw at canonical.com
Tue May 22 11:34:57 UTC 2012


When we prepare the headers all the generated header files are
built and installed into the new headers directory, all except for
include/generated/compile.h which is actually only made when version.o
is built.  This header is used and needed by several external modules
for their version checks.

As we build the headers after we build the main build directory we are
able to pull this header out of the binary build directory.  All other
generated headers are build during the prepare phase.

BugLink: http://bugs.launchpad.net/bugs/942569
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 debian/rules.d/2-binary-arch.mk |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 4f8fdaf..ad8c812 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -184,6 +184,9 @@ endif
 	# We'll symlink this stuff
 	rm -f $(hdrdir)/Makefile
 	rm -rf $(hdrdir)/include2
+	# Copy over the compilation version.
+	cp "$(builddir)/build-$*/include/generated/compile.h" \
+		"$(hdrdir)/include/generated/compile.h"
 	# powerpc seems to need some .o files for external module linking. Add them in.
 ifeq ($(arch),powerpc)
 	mkdir -p $(hdrdir)/arch/powerpc/lib
-- 
1.7.9.5





More information about the kernel-team mailing list