<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/hauke/scripts, branch v21.02.7</title>
<subtitle>Hauke Mehrtens staging tree</subtitle>
<id>https://git.openwrt.org/openwrt/staging/hauke/atom?h=v21.02.7</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/hauke/atom?h=v21.02.7'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/'/>
<updated>2023-01-12T14:00:55Z</updated>
<entry>
<title>scripts/dl_github_archieve.py: fix generating unreproducible tar</title>
<updated>2023-01-12T14:00:55Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2023-01-12T13:46:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=8b46a263ab4afaf9857f0d29d369c2eefbf8a4f4'/>
<id>urn:sha1:8b46a263ab4afaf9857f0d29d369c2eefbf8a4f4</id>
<content type='text'>
Allign dl_github_archieve.py to 8252511dc0b5a71e9e64b96f233a27ad73e28b7f
change. On supported system the sigid bit is applied to files and tar
archieve that on tar creation. This cause unreproducible tar for these
system and these bit should be dropped to produce reproducible tar.

Add the missing option following the command options used in other
scripts.

Fixes: 75ab064d2b38 ("build: download code from github using archive API")
Suggested-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
Tested-by: Robert Marko &lt;robimarko@gmail.com&gt;
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 5f1758ef14575df4e86896526b1c2035c231899e)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: add support for musl</title>
<updated>2022-12-04T15:07:35Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T15:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=fd90eed40ce6828a1bbd11d1a394e7c6368d0577'/>
<id>urn:sha1:fd90eed40ce6828a1bbd11d1a394e7c6368d0577</id>
<content type='text'>
Openwrt now supports only glibc and musl. Add support for musl and
rework the libc check to handle the new config flags and correctly
compile package basend on that.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 7be01fe13b4517e5edb8a4818f437d60144cdcb4)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: add support for info.mk in probe_cc</title>
<updated>2022-12-04T15:07:35Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T15:56:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=462c5653e18f0bd2c9ec66a2b154bf26d8f4aa1d'/>
<id>urn:sha1:462c5653e18f0bd2c9ec66a2b154bf26d8f4aa1d</id>
<content type='text'>
Openwrt generate info.mk that contains the libc type. For probe_cc check
if the file exist and parse directly it for LIBC type.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 75311977f5ff64b491cb57ac713d75e0e410d786)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: actually probe libc type on config generation</title>
<updated>2022-12-04T15:07:35Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T15:53:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=1f5b8a32e4a07b5ca55b0fce73ade5e026d4e584'/>
<id>urn:sha1:1f5b8a32e4a07b5ca55b0fce73ade5e026d4e584</id>
<content type='text'>
Currently we never call probe_cc before config generation, this cause
the script to never actually detect the correct libc type.
Call probe_cc before config generation to correctl set the .config file.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit ddeabc75ebe3151ff7da302cb1aae702b3ad7eba)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: add option to overwrite config</title>
<updated>2022-12-04T15:07:34Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-04T16:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=ed785589ea9a11d526a01067b79af4fe1b5dd5b7'/>
<id>urn:sha1:ed785589ea9a11d526a01067b79af4fe1b5dd5b7</id>
<content type='text'>
It can be useful to overwrite an already generated config.
Option are simply added at the end of the config and make defconfig
will overwrite the relevant option with the new one.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit f4dd18ca39c42a324e34633c8ee553717531bc3b)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: fix wrong prefix in print_config generation</title>
<updated>2022-12-04T15:07:34Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-03T00:20:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=1e764ea7df11e1d51e60336f420ca73480b8c055'/>
<id>urn:sha1:1e764ea7df11e1d51e60336f420ca73480b8c055</id>
<content type='text'>
The parsed prefix in print_config is wrong and this produce broken
generated .config that won't work with any external toolchain.

Currently the prefix from a CC of

'arm-openwrt-linux-muslgnueabi-gcc-12.1.0'

produce a prefix

'arm-openwrt-linux-muslgnueabi-gcc-'

This is wrong as the real prefix should be

'arm-openwrt-linux-muslgnueabi-'

This is probably caused by a change in how the toolchain is now handled
that now append also the gcc version. Probably in ancient days the
version wasn't part of the name and the prefix generation stripped the
'-gcc' instead of the gcc version.

Fix this and correctly strip the gcc version and the gcc suffix to
correctly call toolchain bins.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 53c293262fce844c8291ab82e6726a8489d3c57b)
</content>
</entry>
<entry>
<title>scripts: fix various typos</title>
<updated>2022-12-04T15:07:34Z</updated>
<author>
<name>Josh Soref</name>
</author>
<published>2021-09-26T21:58:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=997ab5437386493aab1ffa9a9e99061a6a4cba4b'/>
<id>urn:sha1:997ab5437386493aab1ffa9a9e99061a6a4cba4b</id>
<content type='text'>
This only affects typos in comments or user-facing output.

Signed-off-by: Josh Soref &lt;jsoref@users.noreply.github.com&gt;
[only picks changes to scripts, drop "commandline" replacement,
 fix case for "arbitrary", improve commit message]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
(cherry picked from commit 08622de7d66eb90038de54f34ab2fe2308424fd0)
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/ext-tools: introduce new script to install prebuilt tools</title>
<updated>2022-12-04T15:07:34Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-30T17:36:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=fd7e8e4e7520ac7531c1008a83557c7a04860da5'/>
<id>urn:sha1:fd7e8e4e7520ac7531c1008a83557c7a04860da5</id>
<content type='text'>
Add a simple script to make it easier to install a prebuilt tools tar.
Currently it will be used by our tools container and kernel workflow on
github.

Simple script that take a tar that contains prebuilt host tools, extract
them and refresh the timestamps to skip recompilation of such host
tools.

By default it refresh timestamps of build_dir/host and
staging_dir/host/stamp.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 5428bdc2dfaa45bc7adc89c3b9224da7d21961d0)
</content>
</entry>
<entry>
<title>scripts/download.pl: fix downloads with wget</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-09-13T05:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=c07c565ea671e9929b99fbd28c58bde5f5e50070'/>
<id>urn:sha1:c07c565ea671e9929b99fbd28c58bde5f5e50070</id>
<content type='text'>
Several users of wget for downloads (curl is not available in the
system) have reported broken download functionality:

 wget --tries=5 --timeout=20 --output-document=-  https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.142.tar.xz
 http://: Invalid host name.

Thats all happening due to '' was passed as an argument, which got later
expanded to http://.

In the context of a list constructor '' is not nothing, it is an empty
string element.  So fix it by using () as it will yield "nothing" and
thus not introduce an empty string element.

Fixes: #10692
Fixes: 90c6e3aedf16 ("scripts: always check certificates")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt; [shellwords() -&gt; ()]
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 50a48faa1b8424e6b4b436b7118fffa2cba14b18)
</content>
</entry>
<entry>
<title>scripts/download.pl: silence can't exec curl warning</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-09-13T05:38:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=f14d7cef7cce3ce79b880f71b25e03e5fb844882'/>
<id>urn:sha1:f14d7cef7cce3ce79b880f71b25e03e5fb844882</id>
<content type='text'>
When running build in verbose mode `make V=s` we can see a lot of
following warnings when curl is not available in the system:

 Can't exec "curl": No such file or directory at scripts/download.pl line 77.

So lets fix it by redirecting of the stderr to null hole.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit c836ca84e8f641e10a8349a8f9b7432b33d6cec1)
</content>
</entry>
</feed>
