<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/include/kernel-defaults.mk, branch mikrotik</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=mikrotik</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=mikrotik'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2021-11-28T20:15:10Z</updated>
<entry>
<title>image: fix CONFIG_EXTERNAL_CPIO handling</title>
<updated>2021-11-28T20:15:10Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-11-27T12:02:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=0a4f5d06c23215f4ea9945f8d72dff5ba60c34e5'/>
<id>urn:sha1:0a4f5d06c23215f4ea9945f8d72dff5ba60c34e5</id>
<content type='text'>
CONFIG_EXTERNAL_CPIO is a string variable, hence testing for 'y'
doesn't make much sense here.

Fixes: 330bd380e8 ("image: allow building FIT and uImage with ramdisk")
Reported-by: Huangbin Zhan &lt;zhanhb88@gmail.com&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>build: kernel: avoid unnecessary package rebuilds</title>
<updated>2021-11-01T19:18:55Z</updated>
<author>
<name>Eneas U de Queiroz</name>
</author>
<published>2021-10-15T13:30:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=6b8b5e7248fd8562e8cdd5ef6f3d52f51418fc3b'/>
<id>urn:sha1:6b8b5e7248fd8562e8cdd5ef6f3d52f51418fc3b</id>
<content type='text'>
The $(LINUX_DIR)/.config timesptamp changes between runs of
make target/compile and make target/install (which builds the image).

Kernel-dependent packages and out of tree modules are built in between
those runs, and they check the .config timestamp to decide if they need
to be rebuilt.

Save the target/compile .config to use its timestamp if the file does
not change between runs.  That way the subsequent kernel packages are
not unnecessarily rebuilt when you run 'make' back to back.

Signed-off-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: fix regression for kernels &lt; 5.10</title>
<updated>2021-05-25T17:46:13Z</updated>
<author>
<name>Sebastian Kemper</name>
</author>
<published>2021-04-13T12:22:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=54070a1f5cf355e908425d4a5787bb05bee22f25'/>
<id>urn:sha1:54070a1f5cf355e908425d4a5787bb05bee22f25</id>
<content type='text'>
This fixes a regression introduced with commit
5ed1e5140a80558ab47fd70410ae3242bed5becf ("build: build kernel image
before building modules/packages").

Before this commit the make target would always include "modules",
resulting in a MODPOST and a complete Module.symvers file. Since this
commit a MODPOST of the kernel modules is not guaranteed for kernels &lt;
5.10. This results in some broken SDKs in which external packages that
depend on exported symbols from kernel modules fail to compile.

Adding "modules" back to the calls to the CompileImage defines fixes the
regression. For kernels &gt; 5.10 this is not needed, but it doesn't cause
any harm either.

Tested with kernels 5.4.x and 5.10.x.

Signed-off-by: Sebastian Kemper &lt;sebastian_ml@gmx.net&gt;
</content>
</entry>
<entry>
<title>kernel-defaults: fix external kernel build when user_headers is missing</title>
<updated>2021-05-23T13:11:38Z</updated>
<author>
<name>Matt Merhar</name>
</author>
<published>2021-02-26T04:28:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=cc76e34c10e57cb1a4f7971268a77aad2f24c8ca'/>
<id>urn:sha1:cc76e34c10e57cb1a4f7971268a77aad2f24c8ca</id>
<content type='text'>
Use an 'if' so the absence of $(LINUX_DIR)/user_headers doesn't make the
line evaluate to false and cause the build to fail.

Signed-off-by: Matt Merhar &lt;mattmerhar@protonmail.com&gt;
</content>
</entry>
<entry>
<title>build: introduce $(MKHASH)</title>
<updated>2021-05-13T13:13:15Z</updated>
<author>
<name>Leonardo Mörlein</name>
</author>
<published>2021-05-09T20:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=b993b68b6ca8444b5227a0c18df4600b37ac565c'/>
<id>urn:sha1:b993b68b6ca8444b5227a0c18df4600b37ac565c</id>
<content type='text'>
Before this commit, it was assumed that mkhash is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. In most of the cases, I just saw warnings like this:

    make: Entering directory '/home/.../package/gluon-status-page'
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    [...]

While these were only warnings and the package still compiled sucessfully,
I also observed that some package even fail to build because of this.

After applying this commit, the variable $(MKHASH) is introduced. This
variable points to $(STAGING_DIR_HOST)/bin/mkhash, which is always the
correct path.

Signed-off-by: Leonardo Mörlein &lt;me@irrelefant.net&gt;
</content>
</entry>
<entry>
<title>build: use numeric uid/gid on cpio calls</title>
<updated>2021-03-03T15:09:59Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-03-03T15:09:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=785ab2b62c8d9366023095641f2ba237e2b0ed8e'/>
<id>urn:sha1:785ab2b62c8d9366023095641f2ba237e2b0ed8e</id>
<content type='text'>
There are systems that don't have the 'root' group, so don't rely on host
specific user/group names

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>treewide: fix spelling 'seperate' -&gt; 'separate'</title>
<updated>2021-02-28T23:59:21Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-02-28T23:58:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=ebcb4f1d0a091d1fa87d6aa04ecae355ef23ef22'/>
<id>urn:sha1:ebcb4f1d0a091d1fa87d6aa04ecae355ef23ef22</id>
<content type='text'>
This popular spelling mistake was also introduced by myself lately.
Fix it everywhere.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>include: use cpio from staging dir</title>
<updated>2021-02-28T00:09:09Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2021-02-27T18:12:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=dc5328e7e9d97ea779fa06621ce6da8deaac56c9'/>
<id>urn:sha1:dc5328e7e9d97ea779fa06621ce6da8deaac56c9</id>
<content type='text'>
As we built our own CPIO now, use this version instead of whatever the
host may or may not provide.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
</entry>
<entry>
<title>image: allow building FIT and uImage with ramdisk</title>
<updated>2021-02-24T01:35:20Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-02-21T14:19:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=330bd380e8b691833c8dcc9b579b51851cbd4b0f'/>
<id>urn:sha1:330bd380e8b691833c8dcc9b579b51851cbd4b0f</id>
<content type='text'>
Instead of embedding the initrd cpio archive into the kernel, allow
for having an external ramdisk added to the FIT or uImage.
This is useful to overcome kernel size limitations present in many
stock bootloaders, as the ramdisk is then loaded seperately and doesn't
add to the kernel size. Hence we can have larger ramdisks to host ie.
installers with all binaries to flash included (or a web-based
firmware selector).
In terms of performance and total size the differences are neglectible.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>build: fix build with CONFIG_STRIP_KERNEL_EXPORTS</title>
<updated>2021-02-17T12:49:43Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-02-17T12:49:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=5ea33837f863d6843b4cb0a8f173f1f6e0aeac2b'/>
<id>urn:sha1:5ea33837f863d6843b4cb0a8f173f1f6e0aeac2b</id>
<content type='text'>
Only use symtab.h on the final kernel link

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