<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/scripts/package/Makefile, branch stable</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/scripts/package/Makefile?h=stable</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/scripts/package/Makefile?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2019-08-24T22:42:00Z</updated>
<entry>
<title>kbuild: pkg: rename scripts/package/Makefile to scripts/Makefile.package</title>
<updated>2019-08-24T22:42:00Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-08-21T07:02:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=000ec95fbe757401b5da1c9904840085204e5b3d'/>
<id>urn:sha1:000ec95fbe757401b5da1c9904840085204e5b3d</id>
<content type='text'>
scripts/package/Makefile does not use $(obj) or $(src) at all.
It actually generates files and directories in the top of $(objtree).
I do not see much sense in descending into scripts/package/.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: pkg: add package targets to PHONY instead of FORCE</title>
<updated>2019-08-24T22:39:26Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-08-21T07:02:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=6a4f6a26d32abb5d5f61861ab3cf5880d9556ff5'/>
<id>urn:sha1:6a4f6a26d32abb5d5f61861ab3cf5880d9556ff5</id>
<content type='text'>
These are not real targets. Adding them to PHONY is preferred.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: pkg: clean up package files/dirs from the top Makefile</title>
<updated>2019-08-24T22:39:21Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-08-21T07:02:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=46a63d4b0d79cf9e8afa3879acf9f6cf74a84a08'/>
<id>urn:sha1:46a63d4b0d79cf9e8afa3879acf9f6cf74a84a08</id>
<content type='text'>
I am not a big fan of the $(objtree)/ hack for clean-files/clean-dirs.

These are created in the top of $(objtree), so let's clean them up
from the top Makefile.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: tar-pkg: enable communication with jobserver</title>
<updated>2019-06-04T17:33:10Z</updated>
<author>
<name>Trevor Bourget</name>
<email>tgb.kernel@gmail.com</email>
</author>
<published>2019-05-27T23:54:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a6e0487709ded7cd1ba0c390d9771e5cb76a8453'/>
<id>urn:sha1:a6e0487709ded7cd1ba0c390d9771e5cb76a8453</id>
<content type='text'>
The buildtar script might want to invoke a make, so tell the parent
make to pass the jobserver token pipe to the subcommand by prefixing
the command with a +.

This addresses the issue seen here:

  /bin/sh ../scripts/package/buildtar tar-pkg
  make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.

See https://www.gnu.org/software/make/manual/html_node/Job-Slots.html
for more information.

Signed-off-by: Trevor Bourget &lt;tgb.kernel@gmail.com&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>treewide: Add SPDX license identifier - Makefile/Kconfig</title>
<updated>2019-05-21T08:50:46Z</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-05-19T12:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1'/>
<id>urn:sha1:ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1</id>
<content type='text'>
Add SPDX license identifiers to all Make/Kconfig files which:

 - Have no license information of any form

These files fall under the project license, GPL v2 only. The resulting SPDX
license identifier is:

  GPL-2.0-only

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kbuild: [bin]deb-pkg: add DPKG_FLAGS variable</title>
<updated>2019-02-28T13:50:54Z</updated>
<author>
<name>Kacper Kołodziej</name>
<email>kacper@kolodziej.it</email>
</author>
<published>2019-02-05T12:37:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=117948ac744b208d55aad696c043830a1c5f6408'/>
<id>urn:sha1:117948ac744b208d55aad696c043830a1c5f6408</id>
<content type='text'>
DPKG_FLAGS variable lets user to add more flags to dpkg-buildpackage
command in deb-pkg and bindeb-pkg.

Signed-off-by: Kacper Kołodziej &lt;kacper@kolodziej.it&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: pkg: use -f $(srctree)/Makefile to recurse to top Makefile</title>
<updated>2019-02-20T00:42:46Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-02-14T03:05:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=175209cce23d6b0669ed5366add2517e26cd75cd'/>
<id>urn:sha1:175209cce23d6b0669ed5366add2517e26cd75cd</id>
<content type='text'>
'$(MAKE) KBUILD_SRC=' changes the working directory back and forth
between objtree and srctree.

It is better to recurse to the top-level Makefile directly.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: remove redundant 'set -e' from cmd_* defines</title>
<updated>2018-12-01T14:13:14Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2018-11-30T01:05:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=5439f09f488f291a9493455c24b197c99025764d'/>
<id>urn:sha1:5439f09f488f291a9493455c24b197c99025764d</id>
<content type='text'>
These three cmd_* are invoked in the $(call cmd,*) form.

Now that 'set -e' moved to the 'cmd' macro, they do not need to
explicitly give 'set -e'.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: deb-pkg: split generating packaging and build</title>
<updated>2018-04-07T10:04:02Z</updated>
<author>
<name>Riku Voipio</name>
<email>riku.voipio@linaro.org</email>
</author>
<published>2018-04-05T11:22:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=b41d920acff8305b8a25a183a8e4d41b8975097d'/>
<id>urn:sha1:b41d920acff8305b8a25a183a8e4d41b8975097d</id>
<content type='text'>
Move debian/ directory generation out of builddeb to a new script,
mkdebian. The package build commands are kept in builddeb, which
is now an internal command called from debian/rules.

With these changes in place, we can now use dpkg-buildpackage from
deb-pkg and bindeb-pkg removing need for handrolled source/changes
generation.

This patch is based on the criticism of the current state of builddeb
discussed on:

https://patchwork.kernel.org/patch/9656403/

Signed-off-by: Riku Voipio &lt;riku.voipio@linaro.org&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: pkg: make out-of-tree rpm/deb-pkg build immediately fail</title>
<updated>2017-12-12T15:07:00Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2017-12-06T10:32:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=262dad68e152fda06e5c5666b3186c23dfd6ae2f'/>
<id>urn:sha1:262dad68e152fda06e5c5666b3186c23dfd6ae2f</id>
<content type='text'>
We do not support out-of-tree building of rpm-pkg / deb-pkg.  If O=
is given, the build should be terminated, but the "false" command is
not effective since it is not the last command in the cmd_src_tar.
Then, rpm-pkg / deb-pkg tries to continue building, and fails for a
different reason.

Set -e option so that the "false" terminates the building immediately.

I also put the error messages to stderr, and made it stand out more.

For example, "make O=foo rpm-pkg" will fail as follows:

  /bin/bash ../scripts/package/mkspec &gt;./kernel.spec
    TAR     kernel-4.15.0_rc2+.tar.gz

    ERROR:
    Building source tarball is not possible outside the
    kernel source tree. Don't set KBUILD_OUTPUT, or use the
    binrpm-pkg or bindeb-pkg target instead.

  ../scripts/package/Makefile:53: recipe for target 'rpm-pkg' failed

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Tested-by: Jim Davis &lt;jim.epost@gmail.com&gt;
</content>
</entry>
</feed>
