<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/ansuel/target/imagebuilder, branch master</title>
<subtitle>Staging tree of Christian Marangi</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/ansuel/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/'/>
<updated>2022-04-09T23:56:38Z</updated>
<entry>
<title>imagebuilder: export SOURCE_DATE_EPOCH to environment</title>
<updated>2022-04-09T23:56:38Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-09T23:55:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=5cf5dce05ae829ec848ad63a6da300c4fddcd510'/>
<id>urn:sha1:5cf5dce05ae829ec848ad63a6da300c4fddcd510</id>
<content type='text'>
Export SOURCE_DATE_EPOCH to environment so filesystem and image
creation tools will make use of it.
Fixes reproducibility of images generated with the ImageBuilder.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix broken image generation with external targets</title>
<updated>2022-03-25T13:28:00Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-03-24T05:52:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=621f39d1f438bf95dbae667c575926fa16a6d797'/>
<id>urn:sha1:621f39d1f438bf95dbae667c575926fa16a6d797</id>
<content type='text'>
When using external targets there is a symlink being created for the
target under target/linux which then becomes dangling under Image
Builder. Fix it by dereferencing the possible symlink.

Tested on IB with external target, ipq40xx and mvebu.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix local packages/ folder</title>
<updated>2021-11-06T05:18:48Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-13T01:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=15e55a2190ba087679b24b8844a51a6e4d512cf3'/>
<id>urn:sha1:15e55a2190ba087679b24b8844a51a6e4d512cf3</id>
<content type='text'>
This commit fixes commit "2999f810ff: build,IB: include kmods only in
local builds" which cause the local packages/ folder only to be added
for local builds but no longer for ImageBuilder created by the Buildbot.

The commits intention was to use remote kmods repositories rather than
storing them locally. Accidentally the entire handling of the local
`packages/` was removed.

Re-add the folder and include a README describing what it can be used
for.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>imagebuilder: show architecture in `make info` output</title>
<updated>2021-09-24T07:37:19Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-09-24T04:46:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=a7fdd4de5931fdd0af61e2ab5d2da3db2339a41d'/>
<id>urn:sha1:a7fdd4de5931fdd0af61e2ab5d2da3db2339a41d</id>
<content type='text'>
Using `make info` show the current target, revision, default packages
and available profiles. This commits adds the used architecture.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>imagebuilder: unset BINARY_FOLDER and DOWNLOAD_FOLDER in final archive</title>
<updated>2021-05-08T10:14:00Z</updated>
<author>
<name>Sven Roederer</name>
</author>
<published>2021-05-07T19:35:20Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=6967903b01ea9f7c9f70d0185c3da276801dd78f'/>
<id>urn:sha1:6967903b01ea9f7c9f70d0185c3da276801dd78f</id>
<content type='text'>
Using these config-options to customize the folders used at build-time
makes these folder settings appear in generated archive. This causes the
imagebuilder to be not portable, as it's going to use the build-time folders
on the new systems. Errors look like:

  mkdir: cannot create directory '/mnt/build': Permission denied
  Makefile:116: recipe for target '_call_image' failed
  make[2]: *** [_call_image] Error 1
  Makefile:241: recipe for target 'image' failed
  make[1]: *** [image] Error 2

The build-time settings of these folders are passed into the archives via
.config file.
The expected behavior is that after unpacking the imagebuilder acts like
these settings have their defaults, using intree folders. So unset the
build-time settings.

Signed-off-by: Sven Roederer &lt;devel-sven@geroedel.de&gt;
</content>
</entry>
<entry>
<title>build,ib: add STRIP_ABI option for manifest</title>
<updated>2021-03-16T21:00:08Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-03-16T01:59:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=0f7cd97f812adaf4b2c2048227610d150aec72cc'/>
<id>urn:sha1:0f7cd97f812adaf4b2c2048227610d150aec72cc</id>
<content type='text'>
The ImageBuilder `make manifest` prints all installed packages. This
function can be used to create a list of package and corresponding
package versions before attempting image creation.

When called with `--strip-abi` OPKG can automatically strip attached
ABIVersions from package names. Make this function accessible for the
ImageBuilder by adding a `STRIP_ABI` variable.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>imagebuilder: invoke bundle-libraries.sh w/o buildroot dirs in $PATH</title>
<updated>2020-12-29T00:07:42Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2020-12-29T00:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=6a46615f372c02650f290614a8c5351bbadc80ed'/>
<id>urn:sha1:6a46615f372c02650f290614a8c5351bbadc80ed</id>
<content type='text'>
Invoke bundle-libraries.sh with any buildroot related directory entries
removed from $PATH to avoid picking up cross versions of utilities like
ldd which will not properly work when used against host executables.

This should fix executable bundling for glibc-target imagebuilders.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix partition signature</title>
<updated>2020-11-25T00:46:05Z</updated>
<author>
<name>Matthew Gyurgyik</name>
</author>
<published>2020-11-13T19:21:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=aab36200e7eb539afb18df74476132f4750a9f0b'/>
<id>urn:sha1:aab36200e7eb539afb18df74476132f4750a9f0b</id>
<content type='text'>
When building images with the imagebuilder, the partition signature
never changes. The signature is generated by hashing SOURCE_DATE_EPOCH
and LINUX_VERMAGIC which are undefined. Prepopulate these variables, as
done by the SDK.

Signed-off-by: Matthew Gyurgyik &lt;matthew@gyurgyik.io&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix main entry makefile</title>
<updated>2020-11-23T03:13:46Z</updated>
<author>
<name>Paulo Machado</name>
</author>
<published>2020-11-22T14:23:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=b19a684f461977f1ff8218b28d5b191ec747c3d5'/>
<id>urn:sha1:b19a684f461977f1ff8218b28d5b191ec747c3d5</id>
<content type='text'>
Remove a syntax error from ImageBuider Makefile

Acked-by: Paul Spooren &lt;mail@aparcar.org&gt;
Signed-off-by: Paulo Machado &lt;pffmachado@yahoo.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: add package signature verification</title>
<updated>2020-11-19T22:15:00Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-11-02T22:15:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=418362b1cc106b9aca3905150199f60548906fff'/>
<id>urn:sha1:418362b1cc106b9aca3905150199f60548906fff</id>
<content type='text'>
The ImageBuilder downloads pre-built packages and adds them to images.
This process uses `opkg` which has the capability to verify package list
signatures via `usign`, as enabled per default on running OpenWrt
devices.

Until now this was disabled for ImageBuilders because neither the `opkg`
keys nor the `opkg-add` script was present during first packagelist
update.

To harden the ImageBuilder against *drive-by-download-attacks* both keys
and verification script are added to the ImageBuilder allowing `opkg` to
verify downloaded package indices.

This commit adds `opkg-add` to the ImageBuilder scripts folder. The keys
folder is added to ImageBuilder $TOPDIR to have an obvious place for users to
store their own keys. The `option check_signature` is appended to the
repositories.conf file. All of the above only happens if the Buildbot
runs with the SIGNATURE_CHECK option.

The keys stored in the ImageBuilder keys/ are the same as included in
the openwrt-keyring package. To avoid the chicken-egg problem of
downloading and verifying a package, containing signing keys, the keys
are added during the ImageBuilder generation. They are same as in
shipped images (stored at `/etc/opkg/keys/`).

To allow a local package feed in which the user can add additional
packages, a local set of `usign` and `ucert` keys is generated, same as
building OpenWrt from source. The private key signs the local repository
inside the packages/ folder. The local public key is added to the keys/
folder to be considered by `opkg` when updating repositories. This way a
local package feed can be modified while requiring `opkg` to check
signatures for remote feed, making HTTPS optional.

The new option `ADD_LOCAL_KEY` allows to add the local key inside the
created images, adding the advantage that sysupgrades can validate the
ImageBuilders local key.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
</feed>
