<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/nbd/include/image.mk, branch master</title>
<subtitle>Felix Fietkaus staging tree</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/nbd/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/'/>
<updated>2026-02-09T15:43:29Z</updated>
<entry>
<title>image: support generating per device targz rootfs</title>
<updated>2026-02-09T15:43:29Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2026-02-09T11:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=d89cb72c23fea53883c1e6203020d9b555208452'/>
<id>urn:sha1:d89cb72c23fea53883c1e6203020d9b555208452</id>
<content type='text'>
Currently, for targets that use the CONFIG_TARGET_ROOTFS_TARGZ a single
rootfs tarball is generated for the subtarget based of $(TARGET_DIR).

However, this means that it does not respect DEVICE_PACKAGES like other
rootfs images.

So, lets augment CONFIG_TARGET_ROOTFS_TARGZ by adding a proper targz fstype
so that per device rootfs is generated under lock.

This is required so that devices that use custom sysupgrade archives like
Methode devices, can actually include a per device rootfs so when building
for multiple devices and with CONFIG_TARGET_PER_DEVICE_ROOTFS set the built
image actually includes the listed DEVICE_PACKAGES.

Signed-off-by: Robert Marko &lt;robert.marko@sartura.hr&gt;
</content>
</entry>
<entry>
<title>image: add CONFIG_EXTRA_IMAGE_NAME</title>
<updated>2025-12-12T22:06:06Z</updated>
<author>
<name>David Woodhouse</name>
</author>
<published>2025-11-29T16:18:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=24b8db118b6c84b92d17f969794b2bd6d73b8cdc'/>
<id>urn:sha1:24b8db118b6c84b92d17f969794b2bd6d73b8cdc</id>
<content type='text'>
This allows an optional tag to be put in the .config file which is
included in the filename of the resulting images, so it's easier to
build images with different functionality for the same target hardware.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
Link: https://github.com/openwrt/openwrt/pull/20984
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>build: remove iwinfo dependency</title>
<updated>2025-09-27T20:04:57Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2025-09-27T12:49:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=878f31c2109d6d71d3e6e011f02bb7bf17a763fc'/>
<id>urn:sha1:878f31c2109d6d71d3e6e011f02bb7bf17a763fc</id>
<content type='text'>
Do not always try to include iwinfo in the images when wpa supplicant or
Broadcom nas is also included. iwinfo is incompatible with current
default configuration.

iwinfo is only build when CONFIG_WIFI_SCRIPTS_UCODE is not set. If
CONFIG_WIFI_SCRIPTS_UCODE is not set kmod-cfg80211 depends on iwinfo,
so it should be included in all images with wifi drivers.

The CONFIG_WIFI_SCRIPTS_UCODE option was recently changed to be active
by default.

This should fix the current buildbot build failures.

This reverts commit 6435b8bb27ea ("build: include iwinfo by default
if nas or wpad(-mini) is selected")

Fixes: 04e9929c47e9 ("wifi-scripts: enable ucode scripts by default")
Link: https://github.com/openwrt/openwrt/pull/20211
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>image: only calculate EROFS_PCLUSTERSIZE when needed</title>
<updated>2025-07-06T08:32:44Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2025-07-06T08:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=5adc663af6c9669493d4fe9bf8169d6debe7aab8'/>
<id>urn:sha1:5adc663af6c9669493d4fe9bf8169d6debe7aab8</id>
<content type='text'>
Fixes shell warning on any makefile including image.mk when EROFS
is not enabled

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>image: add support for EROFS rootfs image generation</title>
<updated>2025-07-05T13:24:54Z</updated>
<author>
<name>Gao Xiang</name>
</author>
<published>2025-06-25T17:45:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=f7fa414d3b4d967a7e40b162977f48e1be430c1c'/>
<id>urn:sha1:f7fa414d3b4d967a7e40b162977f48e1be430c1c</id>
<content type='text'>
Add support for generating EROFS rootfs images.

The EROFS filesystem can offer competitive I/O performance while
minimizing final image size when using the MicroLZMA compressor.

Target platform: linux-x86_generic (target-i386_pentium4_musl)

Filesystem     Image Size
=============  ==========
root.erofs     4882432
root.ext4      109051904
root.squashfs  4903302

Co-Developed-by: Gao Xiang &lt;hsiangkao@linux.alibaba.com&gt;
Signed-off-by: Gao Xiang &lt;hsiangkao@linux.alibaba.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19244
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: image: support specifying mksquashfs4 parallel threads</title>
<updated>2025-06-05T19:28:03Z</updated>
<author>
<name>Shiji Yang</name>
</author>
<published>2025-06-04T10:16:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=a9972ae53efcdd67b919f7bcd223af972a865b50'/>
<id>urn:sha1:a9972ae53efcdd67b919f7bcd223af972a865b50</id>
<content type='text'>
By enabling multi-threading file reading, the squashfs rootfs build
process can be greatly accelerated. We use 4 as the default thread
number. This is the default value for squashfs4 tool 4.7 if we don't
append "-block-readers" or "-small-readers" options.

For more test results:
https://github.com/plougher/squashfs-tools/blob/4.7/Documentation/4.7/README

Signed-off-by: Shiji Yang &lt;yangshiji66@outlook.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19019
Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>image: only filter out images when ImageBuilder is used</title>
<updated>2025-05-24T10:24:48Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2025-05-24T10:20:54Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=d0d1f190683ad5923182140c40afb479907a1c2b'/>
<id>urn:sha1:d0d1f190683ad5923182140c40afb479907a1c2b</id>
<content type='text'>
Currently, we are filtering out images if DEFAULT:=n or BROKEN:=y are set,
so if you are building from scratch and want to build custom images that
are stripped down to fit, you must edit the image recipe or its just
filtered out.

So, to allow this behaviour when building from scratch as we can assume
that person doing that knows what they are attempting to do lets just limit
the filtering to ImageBuilder.

Fixes: f060615a78e5 ("image: respect DEFAULT and BROKEN when Default profile is selected")
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>image: respect DEFAULT and BROKEN when Default profile is selected</title>
<updated>2025-05-16T17:40:36Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2025-05-16T11:18:46Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=f060615a78e5c5e86829b2e40c3f77e5cf7033bf'/>
<id>urn:sha1:f060615a78e5c5e86829b2e40c3f77e5cf7033bf</id>
<content type='text'>
Currently, when you select the Default profile it does not honor DEFAULT:=n
nor BROKEN:=y in device profiles but rather just tries to build all of them.

This may work when building directly, but when using Image Builder it will
always fail since no kernel or anything else is present for devices that
have DEFAULT:=n or BROKEN:=Y set since those are skipped during build.

So, lets look for DEFAULT being set to "n" or BROKEN being set to "y" and
then remove clear _PROFILE_SET so they dont end up being marked for
installation.

Fixes: #18410
Link: https://github.com/openwrt/openwrt/pull/18814
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: include size-limits to device-metadata</title>
<updated>2025-04-18T12:00:39Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2023-12-11T13:46:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=0ee1ede25a9f8278a8e0bc0820e4c55d2023adf9'/>
<id>urn:sha1:0ee1ede25a9f8278a8e0bc0820e4c55d2023adf9</id>
<content type='text'>
Include the image and kernel size limitations defined for each device to
the device metadata JSON.

These informations are only added if defined.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
</entry>
<entry>
<title>image: apk: dont fail on removing a package that doesnt exist</title>
<updated>2024-11-29T10:31:56Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-11-28T18:16:23Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=55dfe3fcea88c108c8b89e96138975965e60bc08'/>
<id>urn:sha1:55dfe3fcea88c108c8b89e96138975965e60bc08</id>
<content type='text'>
Currently, in case when a package in the device package list is marked with
the "-"" prefix meaning that its supposed to be removed for that device but
it was not actually previously built it will cause the APK to error out it
and thus image generation will also fail.

So, lets do what OPKG build step does and supress the error with the "-"
prefix in make.

Fixes: #17103
Fixes: d788ab376f85 ("build: add APK package build capabilities")
Link: https://github.com/openwrt/openwrt/pull/17106
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
