<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/include/image.mk, branch v21.02.1</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2021-06-02T20:55:52Z</updated>
<entry>
<title>build/json: fix IMAGE_PREFIX and DEVICE_PACKAGES</title>
<updated>2021-06-02T20:55:52Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-06-02T20:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c9a38e21a924f5b69038d6e9d7a5c063e4d2e8d8'/>
<id>urn:sha1:c9a38e21a924f5b69038d6e9d7a5c063e4d2e8d8</id>
<content type='text'>
These two variables were missing in the definition of
DEFAULT_DEVICE_VARS which caused them to contain wrong values, messing
up the resulting JSON files.

This patch adds the two variables IMAGE_PREFIX and DEVICE_PACKAGES to
DEFAULT_DEVICE_VARS.

Suggested-by: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: avoid generating JSON info on missing image</title>
<updated>2021-05-26T21:36:40Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2021-02-24T20:38:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=bb8fd58a23d202ce115813468e9119a631507f86'/>
<id>urn:sha1:bb8fd58a23d202ce115813468e9119a631507f86</id>
<content type='text'>
Previously, build would fail for targets containing devices with not
initramfs image (such as mpc85xx-p1010). Only generate the JSON image
info for the initramfs image when we have one to avoid breaking the
builds.

Fixes commit d3140d052964 ("build/json: generate json file for initramfs")

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
(cherry picked from commit 512229ce4967814a09ce202855e6b632d2e97a3c)
</content>
</entry>
<entry>
<title>build/json: generate json file for initramfs</title>
<updated>2021-05-26T21:36:40Z</updated>
<author>
<name>Moritz Warning</name>
</author>
<published>2021-01-08T23:02:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4419c3dcd3fbaa7b51239c90784af03af2c2c911'/>
<id>urn:sha1:4419c3dcd3fbaa7b51239c90784af03af2c2c911</id>
<content type='text'>
The initramfs images are missing from the profiles.json files.

Signed-off-by: Moritz Warning &lt;moritzwarning@web.de&gt;
[fix code by exporting device variables]
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit d3140d05296461deddaaa8ca2ce4a4a97a320eff)
</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.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>treewide: provide global default for SUPPORTED_DEVICES</title>
<updated>2021-01-23T11:45:21Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2021-01-19T19:05:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f52081bcf938efcd910832f3c3713ab9f3ca0738'/>
<id>urn:sha1:f52081bcf938efcd910832f3c3713ab9f3ca0738</id>
<content type='text'>
The majority of our targets provide a default value for the variable
SUPPORTED_DEVICES, which is used in images to check against the
compatible on a running device:

  SUPPORTED_DEVICES := $(subst _,$(comma),$(1))

At the moment, this is implemented in the Device/Default block of
the individual targets or even subtargets. However, since we
standardized device names and compatible in the recent past, almost
all targets are following the same scheme now:

  device/image name:  vendor_model
  compatible:         vendor,model

The equal redundant definitions are a symptom of this process.

Consequently, this patch moves the definition to image.mk making it
a global default. For the few targets not using the scheme above,
SUPPORTED_DEVICES will be defined to a different value in
Device/Default anyway, overwriting the default. In other words:
This change is supposed to be cosmetic.

This can be used as a global measure to get the current compatible
with: $(firstword $(SUPPORTED_DEVICES))
(Though this is not precisely an achievement of this commit.)

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>build/json: add filesystem information</title>
<updated>2020-12-14T08:07:52Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-12-14T00:36:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=bc0ffff36a0bd8043e958913f574cb8d2a79e93d'/>
<id>urn:sha1:bc0ffff36a0bd8043e958913f574cb8d2a79e93d</id>
<content type='text'>
Some images are created using different filesystems, most popular
squashfs and ext4. To allow downstream projects to distinguesh between
those, add the `filesystem` information to created json files.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: add UIMAGE_MAGIC to device variables</title>
<updated>2020-11-25T14:55:26Z</updated>
<author>
<name>Sander Vanheule</name>
</author>
<published>2020-11-04T09:21:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c20b8d690bec265693b3eb250e1ba1e8ed3abae4'/>
<id>urn:sha1:c20b8d690bec265693b3eb250e1ba1e8ed3abae4</id>
<content type='text'>
Allow a device recipe to specify a custom UIMAGE_MAGIC value, as used by
OpenWrt's -M flag for mkimage. This allows to automatically customize
the magic bytes in all calls to Build/uImage for this device, similar to
the behaviour of UIMAGE_NAME. Since the -M argument is inserted before
the user arguments, it can be overriden.

The following example would use 0x87654321 for the KERNEL image, but
0x12345678 for the KERNEL_INITRAMFS image:

  define Device/MyDevice
    UIMAGE_MAGIC := 0x87654321
    KERNEL := ... | uImage lzma
    KERNEL_INITRAMFS := ... | uImage lzma -M 0x12345678
    ...
  endef

Fixes: df8e6be59a1f ("rtl838x: add new architecture")
[UIMAGE_MAGIC was not declared as a device variable]

Signed-off-by: Sander Vanheule &lt;sander@svanheule.net&gt;
[rebase, improve formatting of "Fixes"]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>build: store SOURCE_DATE_EPOCH in JSON info files</title>
<updated>2020-11-12T17:19:44Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-11-01T21:53:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=165f0b00cdd2f763c1d478c2f58c535fc19b13bd'/>
<id>urn:sha1:165f0b00cdd2f763c1d478c2f58c535fc19b13bd</id>
<content type='text'>
The source date epoch is the only reproducible date close to the actual
build date. It can be used for tooling like the firmware wizard to show
the image age.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>kernel: remove obsolete kernel version switches for 4.19</title>
<updated>2020-10-30T18:44:41Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-10-01T14:47:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ac5671f46cb4a300e2a8ae00db70c248828367f5'/>
<id>urn:sha1:ac5671f46cb4a300e2a8ae00db70c248828367f5</id>
<content type='text'>
This removes switches dependent on kernel version 4.19 as well as
several packages/modules selected only for that version.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>image: drop obsolete legacy image recipes</title>
<updated>2020-10-30T18:23:24Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-10-26T19:41:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=1f4e8d3c9ef64c68a6d364a86505447bd9213412'/>
<id>urn:sha1:1f4e8d3c9ef64c68a6d364a86505447bd9213412</id>
<content type='text'>
LegacyDevice is not used anymore in our tree, so let's drop it
together with the relevant definitions and recipes.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
</feed>
