<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/include/kernel-build.mk, branch master</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2024-10-06T11:49:39Z</updated>
<entry>
<title>kernel-build.mk: Fix multi-core build warning.</title>
<updated>2024-10-06T11:49:39Z</updated>
<author>
<name>Zxl hhyccc</name>
</author>
<published>2024-10-04T14:31:25Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=7ada5ab1c98a4b8902000e28c1ffa5ca2e6959c4'/>
<id>urn:sha1:7ada5ab1c98a4b8902000e28c1ffa5ca2e6959c4</id>
<content type='text'>
In the case of multi-core compilation, the warning prompts to add a "+" sign.
````
warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
`````
Signed-off-by: Zxl hhyccc &lt;zxlhhy@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16598
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: fix missing SOURCE_VERSION variable</title>
<updated>2024-07-03T11:10:08Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-07-03T07:15:46Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=a1440747f2edb507c819f63f93228cd16c1cdcb5'/>
<id>urn:sha1:a1440747f2edb507c819f63f93228cd16c1cdcb5</id>
<content type='text'>
The recipe Download/git-kernel uses DownloadMethod/git
which now requires a definition of SOURCE_VERSION instead of VERSION
due to Validate/git being used to check for the variables.

Rename the variable as intended to match with the others
that were renamed in the referenced commit.
This fixes the following Makefile parse error
when downloading a specific kernel repository version
when configured with the CONFIG_KERNEL_GIT_CLONE_URI option:

  Makefile:19: *** Download/git-kernel is missing the SOURCE_VERSION field..  Stop.

Fixes: 9fc79e2e2 ("download: don't overwrite VERSION variable")
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/15858
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>kernel-build.mk: add support for compiling only DTS</title>
<updated>2024-02-08T18:57:28Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-02-07T23:49:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=c47532b1ea7f8459f05a223a71317a1461c6e750'/>
<id>urn:sha1:c47532b1ea7f8459f05a223a71317a1461c6e750</id>
<content type='text'>
Add support for compiling DTS for the selected target. This can be
useful for testing if the DTS correctly compile and doesn't produce any
error.

This adds a new make target. To compile only DTS use:

make target/linux/dtb

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>kernel: copy only *.ko for debug info</title>
<updated>2024-01-07T15:56:05Z</updated>
<author>
<name>Chuanhong Guo</name>
</author>
<published>2024-01-07T15:56:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=066b0fee76684a9fca44635d63bf2c699ef8e89c'/>
<id>urn:sha1:066b0fee76684a9fca44635d63bf2c699ef8e89c</id>
<content type='text'>
Previous commits installed non-elf files into /lib/modules/$VER/.
COLLECT_KERNEL_DEBUG tries to strip all files and these two files
break the build.
Fix it by copying only kernel modules for debug info collection.

Fixes: e1d8e57614 ("kernel: include modinfo for built-in modules")
Fixes: 29f6da4340 ("kernel: include built-in module list")
Signed-off-by: Chuanhong Guo &lt;gch981213@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: make find_md5 reproducible with AUTOREMOVE</title>
<updated>2022-09-30T20:26:51Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-06T14:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=53a08e37437972ba0a8fbf953a93a70a6b784ef4'/>
<id>urn:sha1:53a08e37437972ba0a8fbf953a93a70a6b784ef4</id>
<content type='text'>
While experimenting with the AUTOREMOVE option in search of a way to use
prebuilt host tools in different buildroot, it was discovered that the
md5 generated by find_md5 in depends.mk is not reproducible.

Currently the hash is generated by the path of the file in addition to
the file mod time. Out of confusion, probably, there was an idea that
such command was used on the package build_dir. Reality is that this
command is run on the package files. (Makefile, patches, src)

This is problematic because the package Makefile (for example) change at
each git clone and base the hash on the Makefile mtime doesn't really
reflect if the Makefile actually changes across a buildroot or not.

A better approach is to generate an hash of each file and then generate
an hash on the sort hash list. This way we remove the problem of git
clone setting a wrong mtime while keeping the integrity of checking if a
file changed for the package as any change will result in a different
hash.

Introduce a new kind of find_md5 function, find_md5_reproducible that
apply this new logic and limit it only with AUTOREMOVE option set to
prevent any kind of slowdown due to additional hash generation.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: drop HOST_LOADLIBES</title>
<updated>2022-05-18T10:32:06Z</updated>
<author>
<name>Stijn Tintel</name>
</author>
<published>2022-03-29T13:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=b998287b9193bf74631dbb2cbfff72babd3bcd0c'/>
<id>urn:sha1:b998287b9193bf74631dbb2cbfff72babd3bcd0c</id>
<content type='text'>
HOST_LOADLIBES was renamed to KBUILD_HOSTLDLIBS in kernel 4.19. As the
oldest kernel version we support is 5.10, cleanup HOST_LOADLIBES use.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</content>
</entry>
<entry>
<title>generic: Kconfig: exit on unset symbol</title>
<updated>2021-08-10T11:14:52Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2021-07-22T23:32:38Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=eaa9c94c75748265b9260691d5f59c9d3711f7d4'/>
<id>urn:sha1:eaa9c94c75748265b9260691d5f59c9d3711f7d4</id>
<content type='text'>
When a target configuration has unser Kconfig symbols, the build will
fail when OpenWrt is compiled with V=s and stdin is connected to a tty.

In case OpenWrt is compiled without either of these preconditions, the
build will uscceed with the symbols in question being unset.

Modify the kernel configuration in a way it fails on unset symbols
regardless of the aformentioned preconditions.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</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-03.infra.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>kernel-build: fix STRIP_KERNEL_EXPORTS for 64-bit kernels</title>
<updated>2021-01-01T18:55:59Z</updated>
<author>
<name>Rui Salvaterra</name>
</author>
<published>2020-12-30T20:04:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/pepe2k/commit/?id=f3bfff9d7f85ab5f2df2728a760ddeebdb185f4c'/>
<id>urn:sha1:f3bfff9d7f85ab5f2df2728a760ddeebdb185f4c</id>
<content type='text'>
While parsing the nm output, we need to account for the fact that 64-bit kernels
have 64-bit wide addresses. While at it, replace the grep | sed combo with a
single awk invocation and a stronger regex.

Fixes: 2ef0acc5fcda557fa5aaad35d27cb8cf75be96d2 "kernel-build: fix
STRIP_KERNEL_EXPORTS for recent kernels"

Signed-off-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&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-03.infra.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>
</feed>
