<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/include/kernel.mk, branch v21.02.1</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2021-04-04T09:39:51Z</updated>
<entry>
<title>build: use -nostdinc and -isystem in NOSTDINC_FLAGS for out-of-tree kernel modules</title>
<updated>2021-04-04T09:39:51Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-03-18T06:22:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=95b838f75bd96705d5192acc56af34801ed6854d'/>
<id>urn:sha1:95b838f75bd96705d5192acc56af34801ed6854d</id>
<content type='text'>
This resolves issues uncovered by musl updates

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
(cherry-picked from commit 9ac47ee46918c45b91f4e4d1fa76b1e26b9d57fe)
</content>
</entry>
<entry>
<title>build: use SPDX license tags</title>
<updated>2021-02-05T13:54:47Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-09-22T02:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a17b8eaa2e4b319b7069170398fe965786a813e9'/>
<id>urn:sha1:a17b8eaa2e4b319b7069170398fe965786a813e9</id>
<content type='text'>
The license folder is a core part of OpenWrt and all GPL-2.0 licensed.
Use SPDX license tags to allow machines to check licenses.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
[rebase, keep some Copyright lines, sharpen commit message]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>build: create $(PKG_SYMVERS_DIR) if non-existent</title>
<updated>2020-11-19T17:52:15Z</updated>
<author>
<name>Sebastian Kemper</name>
</author>
<published>2020-11-18T21:58:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=2127accd441b1c979c8f3f56f3ad5264542e185a'/>
<id>urn:sha1:2127accd441b1c979c8f3f56f3ad5264542e185a</id>
<content type='text'>
Commit 5d76065 moved the creation of the symvers directory to
include/kernel-build.mk. This is fine when building from scratch. But
when unpacking an SDK the directory doesn't exist and because the kernel
won't be built (again) this directory will not be created by the build
system, causing build failure if make tries to copy files into it.

This moves the creation of the symvers directory back into
include/kernel.mk so that the directory is created in any case.

Signed-off-by: Sebastian Kemper &lt;sebastian_ml@gmx.net&gt;
</content>
</entry>
<entry>
<title>build: pass KBUILD_EXTRA_SYMBOLS with symvers files for kernel module packages</title>
<updated>2020-11-13T12:16:37Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2020-10-23T09:26:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5d7606562940b52206712bb4bc274ad39521c3e1'/>
<id>urn:sha1:5d7606562940b52206712bb4bc274ad39521c3e1</id>
<content type='text'>
This replaces the previous (deprecated) method of collecting symvers data
in $(PKG_BUILD_DIR)/Module.symvers, which does not work on newer kernels

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: move symvers files to kernel build dir</title>
<updated>2020-04-09T07:54:02Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2020-04-09T07:41:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4627b5df69fac65e35429b3f876748a59c1bb47a'/>
<id>urn:sha1:4627b5df69fac65e35429b3f876748a59c1bb47a</id>
<content type='text'>
The symvers files of older kernel versions are incompatible with the ones
from 5.4, so changing the kernel version without running make clean was
causing build failures in kernel module packages.
Fix this by moving the directory, ensuring that symvers files get thrown
away with a kernel version change

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: Add KBUILD_HOSTLDLIBS</title>
<updated>2020-01-26T18:20:08Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2020-01-17T17:47:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=eec50c73c4c9cca89a4bca13a40517b262192fea'/>
<id>urn:sha1:eec50c73c4c9cca89a4bca13a40517b262192fea</id>
<content type='text'>
In Linux kernel commit 8377bd2b9ee1 ("kbuild: Rename HOST_LOADLIBES to
KBUILD_HOSTLDLIBS") HOST_LOADLIBES was renamed to KBUILD_HOSTLDLIBS.
This patch adapts the OpenWrt kernel build to this new variable. Without
this change the kernel host tools would not link against the libraries
found in the staging directory.

Signed-off-by: Hauke Mehrtens &lt;hauke.mehrtens@intel.com&gt;
</content>
</entry>
<entry>
<title>kernel.mk: add KCFLAGS to make kmods reproducible</title>
<updated>2019-10-09T07:13:44Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2019-10-08T23:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4ed356fa719e8923c231524181e15ab67eb37bac'/>
<id>urn:sha1:4ed356fa719e8923c231524181e15ab67eb37bac</id>
<content type='text'>
Some kmods (gpio-hotplug, wireguard) store the build path in the
compiled files and therefore make it harder to rebuild the official
binaries. As the same "iremap" function is used as for other binaries,
the change is compatible with gcc7 and 8.

Tested with both gcc7 and gcc8 resulting in build path independent
reproducible builds.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: force disable stack validation during kernel build on non-linux systems</title>
<updated>2019-10-02T10:55:40Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2019-10-02T10:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5f8e5872406dad4df254c26a4166c58de44901ad'/>
<id>urn:sha1:5f8e5872406dad4df254c26a4166c58de44901ad</id>
<content type='text'>
The check for libelf in the kernel build is not enough, because the code that
uses libelf for stack validation is completely non-portable, as it tries to
include asm/types.h and relies on kernel types in user space.

Until this is fixed properly, the only solution is to disable this on any non
Linux build host

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: include BUILD_VARIANT in PKG_BUILD_DIR</title>
<updated>2019-08-05T21:22:26Z</updated>
<author>
<name>Jeffery To</name>
</author>
<published>2019-08-03T20:45:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=e545fac8d968864a965edb9e50c6f90940b0a6c9'/>
<id>urn:sha1:e545fac8d968864a965edb9e50c6f90940b0a6c9</id>
<content type='text'>
This changes the default PKG_BUILD_DIR to take BUILD_VARIANT into
account (if set), so that packages do not need to manually override
PKG_BUILD_DIR just to handle variants.

This also updates most base packages with variants to use the updated
default PKG_BUILD_DIR.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: skip kernel stack validation when building on macOS</title>
<updated>2019-07-03T12:07:59Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2019-07-03T11:29:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c3e31b6a9b040912be0b532f9bf29d91c6c74382'/>
<id>urn:sha1:c3e31b6a9b040912be0b532f9bf29d91c6c74382</id>
<content type='text'>
Since we switched to 4.19, the kernel build checks for libelf to decide if
it should build tools for stack validation.

On macOS, this check fails during target/compile, but succeeds during package
build (because of the pkg-config path picking up target libraries).

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
