<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts, branch v24.10.0</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v24.10.0</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v24.10.0'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2024-11-28T18:47:07Z</updated>
<entry>
<title>scripts: download-check-artifact.sh: fix shellcheck and improve</title>
<updated>2024-11-28T18:47:07Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2024-11-06T10:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=8f0d52d8c42234ffd6292e6e2d6490987c92e624'/>
<id>urn:sha1:8f0d52d8c42234ffd6292e6e2d6490987c92e624</id>
<content type='text'>
Fixes following shellcheck's recommendations:

 In scripts/download-check-artifact.sh line 24:
	exit $1
             ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

 In scripts/download-check-artifact.sh line 53:
		local sum="$(shasum -a 256 "$image_file")";
                      ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values.

 In scripts/download-check-artifact.sh line 72:
 cd "/tmp/verify.$$"
 ^-----------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

 In scripts/download-check-artifact.sh line 114:
		printf "Keyserver to use? [$keyserver_url] &gt; "
                       ^-- SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".

 In scripts/download-check-artifact.sh line 115:
		read url; case "${url:-$keyserver_url}" in
                ^--^ SC2162 (info): read without -r will mangle backslashes.

While at it make it clear, that it is possible to download/check any
build artifacts like even SDK or ImageBuilder.

Link: https://github.com/openwrt/openwrt/pull/16871
(cherry picked from commit 27c2c140b16cb490f20c1c2259b3decf50ae5762)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>scripts: add download-check-artifact.sh script</title>
<updated>2024-11-28T18:47:05Z</updated>
<author>
<name>David S. H. Rosenthal</name>
</author>
<published>2024-11-06T10:19:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=2942ee0a8d205428afcca9cd9c0479b161246229'/>
<id>urn:sha1:2942ee0a8d205428afcca9cd9c0479b161246229</id>
<content type='text'>
While checking wiki documentation about GPG signatures checking I found
this nice script and I've thought, that it would be nice to provide it
officially instead of some random internet site.

Usage example:

  $ ./scripts/download-check-artifact.sh https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-openwrt_one-squashfs-sysupgrade.itb

  1) Downloading image file
  =========================
  ########################################### 100.0%

  2) Downloading checksum file
  ============================
  ########################################### 100.0%

  3) Downloading the GPG signature
  ================================
  ########################################### 100.0%

  4) Verifying GPG signature
  ==========================
  gpg: Signature made Tue 05 Nov 2024 05:21:50 PM UTC
  gpg:                using EDDSA key 92C561DE55AE6552F3C736B82B0151090606D1D9
  gpg: Good signature from "OpenWrt Build System (Nitrokey3) &lt;contact@openwrt.org&gt;" [ultimate]
  Primary key fingerprint: 8A8B C12F 46B8 36C0 F9CD  B36F 1D53 D187 7742 E911
       Subkey fingerprint: 92C5 61DE 55AE 6552 F3C7  36B8 2B01 5109 0606 D1D9

  5) Verifying SHA256 checksum
  ============================
  openwrt-mediatek-filogic-openwrt_one-squashfs-sysupgrade.itb: OK

  Verification done!
  ==================
  Downloaded artifact placed in '/var/home/ynezz/dev/openwrt/openwrt.git/openwrt-mediatek-filogic-openwrt_one-squashfs-sysupgrade.itb'

  Cleaning up.

Adding file in a state as downloaded from https://www.abitare.org/bin/download.sh

References: https://openwrt.org/docs/guide-quick-start/verify_firmware_checksum?s[]=gpg#linux
Signed-off-by: David S. H. Rosenthal &lt;dshr@abitare.org&gt;
Link: https://github.com/openwrt/openwrt/pull/16871
(cherry picked from commit 4c9031fda271ed7d4503642f63ff824faa6cc3a0)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>build: profiles.json: add kernel version information</title>
<updated>2024-11-26T22:48:38Z</updated>
<author>
<name>Eric Fahlgren</name>
</author>
<published>2024-11-22T17:00:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=7ef734deac1a2e84061799b61bf480d00c35d180'/>
<id>urn:sha1:7ef734deac1a2e84061799b61bf480d00c35d180</id>
<content type='text'>
Currently downstream tools like ASU lack information about kernel
version to find out the relevant kmod build folder on downloads server.

So lets fix it by providing a new `linux_kernel` JSON array which would
for the start provide Linux kernel version, revision and vermagic
information.

  "linux_kernel": {
     "release": "1",
     "vermagic": "b57450c07d3a786158c3601fc5cee57d",
     "version": "6.6.61"
   },

Fixes: openwrt/openwrt#17036
Fixes: efahl/owut#9
Co-developed-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Signed-off-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/17042
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit c857145e034f623e31ab2028049a547ecd94ce85)
</content>
</entry>
<entry>
<title>build: introduce support to declare skip package</title>
<updated>2024-10-28T23:07:54Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-10-26T20:57:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=377b66990b9718ea2a508f86b5c9f520ea31639f'/>
<id>urn:sha1:377b66990b9718ea2a508f86b5c9f520ea31639f</id>
<content type='text'>
It seems some target started declaring package in DEVICE_PACKAGES just
to call InstallDev and generate binary for the image firmware.

This is very much used by layerscape target where trusted-firmware-a and
dependency are called for final image generation.

This is problematic for APK since it's more sensible to non exisiting
package.

To handle this, introduce a prefix '~' for a package that will signal to
build the package but not install it in the final image.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert "scripts/download.pl: read file natively"</title>
<updated>2024-10-27T14:58:16Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-10-27T14:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=07159cc25a5b5934e6eeb48409d8e846d797b0fa'/>
<id>urn:sha1:07159cc25a5b5934e6eeb48409d8e846d797b0fa</id>
<content type='text'>
This reverts commit 65560de58de7a3cde8f960849e3c7c640b9456d8.

Seems to broke CI and require more testing.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: read file natively</title>
<updated>2024-10-27T13:24:32Z</updated>
<author>
<name>Matteo Croce</name>
</author>
<published>2024-09-28T23:01:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=65560de58de7a3cde8f960849e3c7c640b9456d8'/>
<id>urn:sha1:65560de58de7a3cde8f960849e3c7c640b9456d8</id>
<content type='text'>
Read files natively instead of execing /bin/cat.

Signed-off-by: Matteo Croce &lt;teknoraver@meta.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16784
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts: Add script to reorder kernel config-* files</title>
<updated>2024-10-22T19:13:26Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2024-10-21T22:02:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b8816343fbf7f6c14573de43fd86a0ae544abfec'/>
<id>urn:sha1:b8816343fbf7f6c14573de43fd86a0ae544abfec</id>
<content type='text'>
This script will reorder the content of all config-* files in the target
folder. It will also remove duplicates. It will not remove options
already defined in the generic configuration.

Link: https://github.com/openwrt/openwrt/pull/16743
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>scripts: linksys-image: add NAND devices</title>
<updated>2024-10-22T08:10:17Z</updated>
<author>
<name>Markus Stockhausen</name>
</author>
<published>2024-10-15T12:57:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=3098b4bf0725509aee13fe1560ce5a9188ea2fc7'/>
<id>urn:sha1:3098b4bf0725509aee13fe1560ce5a9188ea2fc7</id>
<content type='text'>
The larger switches of the Linksys LGS series (e.g. LGS352C) make
use of NAND. So the vendor firmware uses other commands to upload
an image through the WebUI.

Add the required scripts. With this we can upload an image to all
devices of that series. Independant of NOR or NAND.

Signed-off-by: Markus Stockhausen &lt;markus.stockhausen@gmx.de&gt;
Link: https://github.com/openwrt/openwrt/pull/16711
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: use perl builtins instead of system()</title>
<updated>2024-10-12T19:59:15Z</updated>
<author>
<name>Matteo Croce</name>
</author>
<published>2024-09-28T22:41:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=6e40f982082a60b9788cf5e0360142a23180fbfa'/>
<id>urn:sha1:6e40f982082a60b9788cf5e0360142a23180fbfa</id>
<content type='text'>
Perl natively supports renaming files and create directories.
Do it without calling system().

Signed-off-by: Matteo Croce &lt;teknoraver@meta.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16542
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>realtek: scripts: fix error in belkin-header</title>
<updated>2024-10-11T21:37:09Z</updated>
<author>
<name>Markus Stockhausen</name>
</author>
<published>2024-10-11T19:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=3d7040b7d69cefaccbd7f58c686853e6d3db31f8'/>
<id>urn:sha1:3d7040b7d69cefaccbd7f58c686853e6d3db31f8</id>
<content type='text'>
For some reason the new belkin-header.py script works without issues
in a local Fedora build environment. In the OpenWrt build pipeline it
produces the following errors:

Traceback (most recent call last):
  File "/builder/shared-workdir/build/scripts/belkin-header.py", line 92, in &lt;module&gt;
    head = create_header(buf, args.belkin_header, args.belkin_model)
  File "/builder/shared-workdir/build/scripts/belkin-header.py", line 68, in create_header
    head[28:29] = VERSION1.to_bytes(1)
TypeError: to_bytes() missing required argument 'byteorder' (pos 2)

This may be related due to different python version. Fix this by
handing over the needed parameters

Signed-off-by: Markus Stockhausen &lt;markus.stockhausen@gmx.de&gt;
Link: https://github.com/openwrt/openwrt/pull/16667
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
