<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/include/image.mk, branch state</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=state</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=state'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2018-11-26T08:39:20Z</updated>
<entry>
<title>build: Introduce building of artifacts</title>
<updated>2018-11-26T08:39:20Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2018-11-23T09:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=493c9a35516c27a8ec412d97e63c8cf6f41a57ea'/>
<id>urn:sha1:493c9a35516c27a8ec412d97e63c8cf6f41a57ea</id>
<content type='text'>
We currently could (ab)use IMAGES for this task, but the downside is,
that the filenames has filesystem tied to the filename, which might be
confusing as the artifact itself don't has to be used with that specific
filesystem. Another downside is, that the artifacts built with IMAGES
target are build for every FILESYSTEMS filesystem.

Consider following use case:

 define Device/apalis
   ...
   FILESYSTEMS := ext4 squashfs
   IMAGES := spl-uboot.bin recovery.scr
   IMAGE/spl-uboot.bin := append-uboot-spl | pad-to 68k | append-uboot
   IMAGE/recovery.scr := recovery-scr
 endef

Where we would get target binaries with following filenames:

 openwrt-imx6-apalis-squashfs.recovery.scr
 openwrt-imx6-apalis-squashfs.spl-uboot.bin
 openwrt-imx6-apalis-ext4.recovery.scr
 openwrt-imx6-apalis-ext4.spl-uboot.bin

With proposed patch, we could now just do:

 define Device/apalis
   ...
   ARTIFACTS := spl-uboot.bin recovery.scr
   ARTIFACT/spl-uboot.bin := append-uboot-spl | pad-to 68k | append-uboot
   ARTIFACT/recovery.scr := recovery-scr
 endef

Which would produce target binaries with following filenames:

 openwrt-imx6-apalis-recovery.scr
 openwrt-imx6-apalis-spl-uboot.bin

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Acked-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>build: ensure that iwinfo is selected when building for multiple devices</title>
<updated>2018-07-02T12:27:04Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2018-07-02T12:19:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=516d995d6ada872701e05fab12c0655ea2025eca'/>
<id>urn:sha1:516d995d6ada872701e05fab12c0655ea2025eca</id>
<content type='text'>
extra_packages needs to be added there, like on profiles and target
packages lists

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: Allow to change the FIT config section name</title>
<updated>2018-03-17T07:09:04Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2018-03-05T08:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=1b773a46c2023ef32ddbbc3835e20b6c216b184e'/>
<id>urn:sha1:1b773a46c2023ef32ddbbc3835e20b6c216b184e</id>
<content type='text'>
Some devices only boot when a special config is found in the image and
completely ignore the default entry during the selection. These devices can
now use the variable DEVICE_DTS_CONFIG in their device image definition.

Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>build: revert "make image target wait for initramfs"</title>
<updated>2018-03-15T21:27:37Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2018-03-15T20:51:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=5862f01ef71e7ec75394e877e74e781b7d08a4d3'/>
<id>urn:sha1:5862f01ef71e7ec75394e877e74e781b7d08a4d3</id>
<content type='text'>
This reverts commit 43be5087a915727e7dcb3459e2221f094c70811b.

The change is incompatible with the image builder code.
Luckily the RT-AC58U is no longer depending on the initramfs
being available for the target's image generation rules.

Reported-by: Venitex Aveon &lt;aveon@aenote.com&gt;
Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: make image target wait for initramfs</title>
<updated>2018-03-14T18:04:51Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2017-05-01T15:40:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=43be5087a915727e7dcb3459e2221f094c70811b'/>
<id>urn:sha1:43be5087a915727e7dcb3459e2221f094c70811b</id>
<content type='text'>
The image production rules does not have the initramfs-image
as a dependency. So, from make’s perspective initramfs
creation can run independently/in parallel with the image
generation code in the target's Makefile.

This is a problem for devices that have to use the initramfs
for the image creation and can lead to broken images.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>inclue/image.mk: fix package installation for per-device rootfs</title>
<updated>2018-03-09T07:18:54Z</updated>
<author>
<name>Matthias Schiffer</name>
</author>
<published>2018-03-09T07:18:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=643850f568a5393f6635aca54580d61d7f37e3ff'/>
<id>urn:sha1:643850f568a5393f6635aca54580d61d7f37e3ff</id>
<content type='text'>
Fixes FS#1421.

Fixes: 2fbf669730bf ("imagebuilder: reuse rootfs preparation from rootfs.mk")
Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</content>
</entry>
<entry>
<title>include/image.mk: base package-list manifest on unprepared rootfs</title>
<updated>2018-03-07T08:59:08Z</updated>
<author>
<name>Matthias Schiffer</name>
</author>
<published>2018-03-06T13:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=f505fb07f3e5de20ec244fab0badacb9f77110ee'/>
<id>urn:sha1:f505fb07f3e5de20ec244fab0badacb9f77110ee</id>
<content type='text'>
With CONFIG_CLEAN_IPKG, the prepared rootfs does not have a full opkg
status file.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</content>
</entry>
<entry>
<title>include/rootfs.mk: pass additional files dir to prepare_rootfs as an argument</title>
<updated>2018-03-07T08:59:07Z</updated>
<author>
<name>Matthias Schiffer</name>
</author>
<published>2018-03-06T20:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=cf1c7c0f17a45bba3e7ce1a3cd3f8f7efa7196c4'/>
<id>urn:sha1:cf1c7c0f17a45bba3e7ce1a3cd3f8f7efa7196c4</id>
<content type='text'>
Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</content>
</entry>
<entry>
<title>build: replace uses of OpenWrt with $(VERSION_DIST)</title>
<updated>2018-02-05T09:15:53Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-11-08T17:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=cde71a543c629f63e6f01850fd8b6f3f94cdd25d'/>
<id>urn:sha1:cde71a543c629f63e6f01850fd8b6f3f94cdd25d</id>
<content type='text'>
This makes the distribution name more configurable.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: fix restoring /etc/opkg with PER_DEVICE_ROOTFS</title>
<updated>2018-01-11T17:20:39Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2018-01-10T19:17:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=ab1785b1b2559c9f2d09d4d3ce43e11f4b828616'/>
<id>urn:sha1:ab1785b1b2559c9f2d09d4d3ce43e11f4b828616</id>
<content type='text'>
When generating per-device rootfs directories, the ./etc/opkg/ directory
is moved away prior to calling opkg install, opkg remove and rootfs_prepare.
After the opkg invocations and the rootfs_prepare macro call, the saved opkg
config directory is supposed to be moved back to its previous ./etc/opkg
location.

The mv command however can fail to properly restore the directory under
certain circumstances, e.g. when the prior opkg or files/ overlay copy
operations caused a new ./etc/opkg/ directory to be created.

In this case, the backed up directory (named target-dir-$hash.opkg) will be
moved into the preexisting ./etc/opkg/ directory instead, causing the opkg
configuration to be located in a wrong path on the final rootfs, e.g. in
/etc/opkg/target-dir-$hash.opkg/distfeeds.conf instead of
/etc/opkg/distfeeds.conf.

Solve this problem by replacing the naive "mv" command with a recursive
"cp -T" invocation which causes the backed up directory tree to get merged
with the destination directory in case it already exists.

Also perform the rootfs_prepare macro call after restoring the opkg
configuration, to allow users to override it again by using the files/
overlay mechanism.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
</feed>
