public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/package/builddeb: include generated header files
@ 2012-05-26 15:11 Harald Dunkel
  2012-05-26 21:00 ` Michal Marek
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Dunkel @ 2012-05-26 15:11 UTC (permalink / raw)
  To: linux-kbuild, Michal Marek

Building the linux-headers*.deb file on amd64 it seems that scripts/\
package/builddeb forgets to include some generated header files from
the build directory. It uses other header files generated in the
source directory instead.

	arch/x86/include/generated/asm/unistd_32_ia32.h
	arch/x86/include/generated/asm/unistd_64_x32.h

are lost. AFAICS this problem was introduced by
9b4ce7bce5f30712fd926ab4599a803314a07719 .

Below is a patch.

This is the very first patch I am trying to get into the kernel source
tree. Please excuse and correct me if I don't follow the blessed
procedure.

Thanx for your patience.


Harri
-----------------------------------------------------------------------------------
commit 43aa35286ac190fc64998587e54bade3e53487ef
Author: Harald Dunkel <harri@afaics.de>
Date:   Sat May 26 15:41:24 2012 +0200

    kbuild: add generated header files for 'make deb-pkg'

    9b4ce7bce5f30712fd926ab4599a803314a07719 introduced a regression: The header
    files generated in $objtree/arch/$SRCARCH/include are not included in the
    linux-headers*.deb package. This breaks building some 3rd-party modules due
    to a missing unistd_32_ia32.h file.

    Further the temporary "hdrobjfiles" list of files is not properly reset.

    This patch fixes these problem.

    Signed-off-by: Harald Dunkel <harri@afaics.de>

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index eee5f8e..1cf6352 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -245,6 +245,7 @@ fi
 # Build header package
 (cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
 (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
+(cd $objtree; find arch/$SRCARCH/include -type f -name \*.h > "$objtree/debian/hdrobjfiles")
 (cd $objtree; find .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
 destdir=$kernel_headers_dir/usr/src/linux-headers-$version
 mkdir -p "$destdir"

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-07  4:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-26 15:11 [PATCH] scripts/package/builddeb: include generated header files Harald Dunkel
2012-05-26 21:00 ` Michal Marek
2012-05-26 22:03   ` Harald Dunkel
2012-05-28  9:23     ` Michal Marek
2012-06-07  4:07     ` Harald Dunkel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox