<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/scripts/package/builddeb, branch stable/4.7.y</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=stable%2F4.7.y</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=stable%2F4.7.y'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2016-09-30T08:12:48Z</updated>
<entry>
<title>builddeb: really include objtool binary in headers package</title>
<updated>2016-09-30T08:12:48Z</updated>
<author>
<name>Wilfried Klaebe</name>
<email>linux-kernel@lebenslange-mailadresse.de</email>
</author>
<published>2016-06-28T12:21:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=dacc0987fd2e25a8b4b8c19778862ba12ce76d0a'/>
<id>urn:sha1:dacc0987fd2e25a8b4b8c19778862ba12ce76d0a</id>
<content type='text'>
commit 15f6d337159b2a9fdad8c0bef50ec826593ed5d2 upstream.

On May 4th, Bjørn Mork provided patch 697bbc7b8320 ("builddeb: include
objtool binary in headers package"). However, that one only works if
$srctree=$objtree, because the objtool binaries are not written to the
srctree, but to the objtree.

Signed-off-by: Wilfried Klaebe &lt;linux-kernel@lebenslange-mailadresse.de&gt;
Fixes: 697bbc7b8320 ("builddeb: include objtool binary in headers package")
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>builddeb: fix missing headers in linux-headers package</title>
<updated>2016-05-10T15:44:53Z</updated>
<author>
<name>Azriel Samson</name>
<email>asamson@codeaurora.org</email>
</author>
<published>2016-03-31T17:31:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=962475ac2f9662fe69a9f86220ab31bbbf3911d2'/>
<id>urn:sha1:962475ac2f9662fe69a9f86220ab31bbbf3911d2</id>
<content type='text'>
The kernel headers package (linux-headers) doesn't include
header files from other architectures required to build
out-of-tree modules.

For e.g. on ARM64, opcodes.h includes the same file from ARM
which causes the following error:
./arch/arm64/include/asm/opcodes.h:1:43: fatal error:
../../arm/include/asm/opcodes.h: No such file or directory
compilation terminated.

Signed-off-by: Azriel Samson &lt;asamson@codeaurora.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>builddeb: include objtool binary in headers package</title>
<updated>2016-05-10T15:41:01Z</updated>
<author>
<name>Bjørn Mork</name>
<email>bjorn@mork.no</email>
</author>
<published>2016-05-04T13:35:39Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=697bbc7b832048d3a679cd55caf2268a325efbe0'/>
<id>urn:sha1:697bbc7b832048d3a679cd55caf2268a325efbe0</id>
<content type='text'>
"objtool" is required for building external m dules if "Compile-time
stack metadata validation" is enabled.  Otherwise all builds based
on the headers package fail with:

 make[1]: Entering directory '/usr/src/linux-headers-4.6.0-rc6'
 make[2]: *** No rule to make target 'tools/objtool/objtool', needed by 'foo.o'.  Stop.
 Makefile:1598: recipe for target 'foo.ko' failed
 make[1]: *** [foo.ko] Error 2
 make[1]: Leaving directory '/usr/src/linux-headers-4.6.0-rc6'

Signed-off-by: Bjørn Mork &lt;bjorn@mork.no&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild</title>
<updated>2015-11-11T05:11:58Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-11-11T05:11:58Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5dfe5b2c714a5bea0908c1e00da0e8e00535f55c'/>
<id>urn:sha1:5dfe5b2c714a5bea0908c1e00da0e8e00535f55c</id>
<content type='text'>
Pull misc kbuild updates from Michal Marek:
 "This is the non-critical part of kbuild:

   - several coccinelle updates
   - make deb-pkg creates an armhf package if CONFIG_VFP=y
   - make tags understands some more powerpc macros"

* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  coccinelle: Improve checking for missing NULL terminators
  coccinelle: ifnullfree: handle various destroy functions
  coccinelle: ifnullfree: various cleanups
  cocinelle: iterators: semantic patch to delete unneeded of_node_put
  deb-pkg: Add automatic support for armhf architecture
  scripts/coccinelle: fix typos
  coccinelle: misc: remove "complex return code" warnings
  Coccinelle: fix incorrect -include option transformation
  coccinelle: tests: improve odd_ptr_err.cocci
  coccinelle: misc: move constants to the right
  scripts/tags.sh: Teach tags about some powerpc macros
</content>
</entry>
<entry>
<title>deb-pkg: Add automatic support for armhf architecture</title>
<updated>2015-10-26T21:34:26Z</updated>
<author>
<name>Ben Hutchings</name>
<email>ben@decadent.org.uk</email>
</author>
<published>2015-09-28T01:34:40Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=63a478fbc05cb0627b0a33a69f3aed8dcb965953'/>
<id>urn:sha1:63a478fbc05cb0627b0a33a69f3aed8dcb965953</id>
<content type='text'>
The Debian armhf architecture uses the ARM EABI hard-float variant,
whereas armel uses the soft-float variant.  Although the kernel
doesn't use FP itself, CONFIG_VFP must be enabled to support
hard-float userland and will probably be disabled when supporting a
soft-float userland.  So set the architecture to armhf by default when
CONFIG_AEABI and CONFIG_VFP are both enabled.

Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Acked-by: Ian Campbell &lt;ijc@hellion.org.uk&gt;
Acked-by: Fathi Boudra &lt;fathi.boudra@linaro.org&gt;
Reviewed-by: Riku Voipio &lt;riku.voipio@linaro.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>builddeb: remove debian/files before build</title>
<updated>2015-10-16T18:42:28Z</updated>
<author>
<name>Riku Voipio</name>
<email>riku.voipio@linaro.org</email>
</author>
<published>2015-10-15T22:28:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=8d740a37b92f3d4a0435fe263b32efc7f61c5efb'/>
<id>urn:sha1:8d740a37b92f3d4a0435fe263b32efc7f61c5efb</id>
<content type='text'>
Commit 3716001bcb7f ("deb-pkg: add source package") added the ability to
create a debian changelog file.  This exposed that previously the
builddeb script hasn't cleared debian/files between builds.

As debian/files keeps accumulating entries, the changes file will end up
growing indefinelty.  With outdated entries in debian/files, builddeb
script will exit with failure.  This regression impacts those who use
"make deb-pkg" target to build kernel into a .deb package and never use
"make mrproper" or other means to clean kernel tree from generated
directories.

To fix the regression, remove debian/files before starting build and in
the generated clean rule.

Fixes: 3716001bcb7f ("deb-pkg: add source package")
Signed-off-by: Riku Voipio &lt;riku.voipio@linaro.org&gt;
Reported-by: Doug Smythies &lt;dsmythies@telus.net&gt;
Tested-by: Doug Smythies &lt;dsmythies@telus.net&gt;
Tested-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Acked-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Cc: Michal Marek &lt;mmarek@suse.cz&gt;
Cc: maximilian attems &lt;maks@stro.at&gt;
Cc: Chris J Arges &lt;chris.j.arges@canonical.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>deb-pkg: add source package</title>
<updated>2015-09-04T09:25:03Z</updated>
<author>
<name>Riku Voipio</name>
<email>riku.voipio@linaro.org</email>
</author>
<published>2015-09-02T09:57:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3716001bcb7f5822382ac1f2f54226b87312cc6b'/>
<id>urn:sha1:3716001bcb7f5822382ac1f2f54226b87312cc6b</id>
<content type='text'>
Make deb-pkg build both source and binary package like make rpm-pkg does.
For people who only need binary kernel package, there is now bindeb-pkg
target, same target also used to build the .deb files if built from the
source package using dpkg-buildpackage.

Generated source package will build the same kernel .config than what
was available for make deb-pkg. The name of the source package can
be set with KDEB_SOURCENAME enviroment variable.

The source package is useful for GPL compliance, or for feeding to a
automated debian package builder.

Cc: Chris J Arges &lt;chris.j.arges@canonical.com&gt;
Reviewed-by: maximilian attems &lt;maks@stro.at&gt;
Reviewed-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Signed-off-by: Riku Voipio &lt;riku.voipio@linaro.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>fallback to hostname in scripts/package/builddeb</title>
<updated>2015-08-19T16:04:44Z</updated>
<author>
<name>Christian Kujau</name>
<email>lists@nerdbynature.de</email>
</author>
<published>2015-08-03T03:03:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=bea107b1f1ee79da0bc2c1ee0c70bf1c3c6c41b4'/>
<id>urn:sha1:bea107b1f1ee79da0bc2c1ee0c70bf1c3c6c41b4</id>
<content type='text'>
I happened to build a kernel with "make deb-pkg" on a machine with no
network connectivity, but this failed with:

[...]
  INSTALL debian/headertmp/usr/include/asm/ (65 files)
hostname: Name or service not known
../scripts/package/Makefile:90: recipe for target 'deb-pkg' failed
make[2]: *** [deb-pkg] Error 1

In scripts/package/builddeb it tries to construct an email address (that
can be queried in /proc/version later on) but with no network,
the "hostname -f" fails. The following patch falls back to just use the
shortname if we cannot determine our FQDN.

Signed-off-by: Christian Kujau &lt;lists@nerdbynature.de&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>deb-pkg: simplify directory creation</title>
<updated>2015-08-19T13:37:39Z</updated>
<author>
<name>Riku Voipio</name>
<email>riku.voipio@linaro.org</email>
</author>
<published>2015-05-28T09:11:14Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=bf7b00557d10c0b84b6717305815c8fff7007830'/>
<id>urn:sha1:bf7b00557d10c0b84b6717305815c8fff7007830</id>
<content type='text'>
Every package needs /usr/share/doc/$package_name and
DEBIAN directory, so create them as part of create_package
function.

Signed-off-by: Riku Voipio &lt;riku.voipio@linaro.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>deb-pkg: Add device tree blobs to the package</title>
<updated>2015-05-20T05:07:54Z</updated>
<author>
<name>Arnaud Patard (Rtp)</name>
<email>arnaud.patard@rtp-net.org</email>
</author>
<published>2015-02-03T12:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ca2a9d2cf6cf3dd852c3926ac7e30ee774da4638'/>
<id>urn:sha1:ca2a9d2cf6cf3dd852c3926ac7e30ee774da4638</id>
<content type='text'>
When building a package with make deb-pkg (say, for arm), the dtb files are
not added to the package. Given that things are still evolving on arm, it
make sense to have them along with the kernel and modules.

Signed-off-by: Arnaud Patard &lt;arnaud.patard@rtp-net.org&gt;
Reviewed-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Acked-by: maximilian attems &lt;max@stro.at&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
</feed>
