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

* Re: [PATCH] scripts/package/builddeb: include generated header files
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Marek @ 2012-05-26 21:00 UTC (permalink / raw)
  To: Harald Dunkel; +Cc: linux-kbuild

On Sat, May 26, 2012 at 05:11:24PM +0200, Harald Dunkel wrote:
> 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.

Thanks. There was already a patch fixing this by someone else:
http://www.spinics.net/lists/linux-kbuild/msg06313.html, so I applied
that one.


> 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.

You make easier for the receiving party if you send patches using git
send-email. And lkml should be always CCed in addition to the maintainer
and/or subsystem mailing list. Otherwise, the patch itself was OK.

Michal

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

* Re: [PATCH] scripts/package/builddeb: include generated header files
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Harald Dunkel @ 2012-05-26 22:03 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/26/12 23:00, Michal Marek wrote:
> On Sat, May 26, 2012 at 05:11:24PM +0200, Harald Dunkel wrote:
>> Below is a patch.
:
> 
> Thanks. There was already a patch fixing this by someone else: http://www.spinics.net/lists/linux-kbuild/msg06313.html, so I applied that one.
> 

Thats fine with me. Peter's patch looks almost the same.

> 
> You make easier for the receiving party if you send patches using git send-email. And lkml should be always CCed in addition to the maintainer and/or subsystem mailing list. Otherwise, the patch itself was OK.
> 

I tried to follow the doc on kernelnewbies, but I haven't seen
the git command line. It would help very much if you could send
me a pointer to some more up-to-date information, if you have
it at hand.


Many thanx anyway

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/BUyMACgkQUTlbRTxpHjfLYACgkG1JzxpdO8rxRI46Di2f69Gi
9+IAn0CqrwzqG/koBRtGiIpQCTZellAY
=ieYU
-----END PGP SIGNATURE-----

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

* Re: [PATCH] scripts/package/builddeb: include generated header files
  2012-05-26 22:03   ` Harald Dunkel
@ 2012-05-28  9:23     ` Michal Marek
  2012-06-07  4:07     ` Harald Dunkel
  1 sibling, 0 replies; 5+ messages in thread
From: Michal Marek @ 2012-05-28  9:23 UTC (permalink / raw)
  To: Harald Dunkel; +Cc: linux-kbuild

On 27.5.2012 00:03, Harald Dunkel wrote:
>> You make easier for the receiving party if you send patches using
>> git send-email. And lkml should be always CCed in addition to the
>> maintainer and/or subsystem mailing list. Otherwise, the patch
>> itself was OK.
>> 
> 
> I tried to follow the doc on kernelnewbies, but I haven't seen the
> git command line. It would help very much if you could send me a
> pointer to some more up-to-date information, if you have it at hand.

The commandline is

git send-email --to=... --cc=... --cc=... ... <base>
or
git send-email --to=... --cc=... --cc=... ... <base>..<end>

<base> is the commit you based your changes on. So you usually do

git checkout -b my-fix master
<hack hack hack>
git send-email ... master..my-fix

Then the receiver can simply pipe the email(s) to 'git am' to apply the
changes. Of course git send-email is not mandatory, but if you use it,
you can be sure that the patch will be applicable without further
processing.

Michal

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

* Re: [PATCH] scripts/package/builddeb: include generated header files
  2012-05-26 22:03   ` Harald Dunkel
  2012-05-28  9:23     ` Michal Marek
@ 2012-06-07  4:07     ` Harald Dunkel
  1 sibling, 0 replies; 5+ messages in thread
From: Harald Dunkel @ 2012-06-07  4:07 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/27/12 00:03, Harald Dunkel wrote:
> On 05/26/12 23:00, Michal Marek wrote:
>> On Sat, May 26, 2012 at 05:11:24PM +0200, Harald Dunkel wrote:
>>> Below is a patch.
> :
> 
>> Thanks. There was already a patch fixing this by someone else: http://www.spinics.net/lists/linux-kbuild/msg06313.html, so I applied that one.
> 
> 
> Thats fine with me. Peter's patch looks almost the same.
> 

Question:

Do we really have to include all the

	.syscalls_32.h.cmd
	.unistd_32.h.cmd
	.unistd_64.h.cmd

files in the linux-headers package? These files don't look like
C code.

If not, then I would still recommend my patch instead.


Regards

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/QKPgACgkQUTlbRTxpHjci+gCfc3vQsfziOFZiDIj+1mgjGvEk
tXEAmwUWGfo2B2OO500gz+vzRUpEAzwe
=2s5i
-----END PGP SIGNATURE-----

^ permalink raw reply	[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