<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/aparcar/rules.mk, branch master</title>
<subtitle>Staging tree of Paul Spooren</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/aparcar/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/'/>
<updated>2023-01-09T20:33:20Z</updated>
<entry>
<title>treewide: derive host and hostpkg path from STAGING_DIR</title>
<updated>2023-01-09T20:33:20Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-12-02T19:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=2a3283643ccf77b55d67c7a3f96d40576227499c'/>
<id>urn:sha1:2a3283643ccf77b55d67c7a3f96d40576227499c</id>
<content type='text'>
STAGING_DIR may be provided from command line. We currently hardcoded
STAGING_DIR_HOST and STAGING_DIR_HOSTPKG to the default location but we
currently have some relocatable patch that derive the path from
STAGING_DIR.

Fix this and correctly derive STAGING_DIR_HOST and STAGING_DIR_HOSTPKG
from STAGING_DIR.

The intention is to fix inconsistency from the relocatable patch and the
use of STAGING_DIR_HOST that is always hardcoded.
This with a wrong configuration may end up in broken state with some
host tools expecing a PATH from STAGING_DIR and others using library
from the default staging_dir/host path.

To save downstream project the original implementation is saved while
fixing the inconsistency between patch and .mk.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules: drop -Wno-error additional flags from default TARGET_CFLAGS</title>
<updated>2022-12-26T11:59:18Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T11:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=5db4fbad4f55acf1a1bcc8b9685e2581789226a5'/>
<id>urn:sha1:5db4fbad4f55acf1a1bcc8b9685e2581789226a5</id>
<content type='text'>
We currently enable -Wno-error=unused-but-set-variable and
-Wno-error=unused-result by default on every compile package.

While this is (relatively) unharmful, we should follow other project
direction and starts enforcing good code quality. For example the linux
kernel recently started to enforce Wall by default and clean code is
mandatory for inclusion.

Drop for good these flags and and make it mandatory to correctly handle
return values at least with a warning log if they are not strictly error
condition.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules: fix broken commitcount on alpine system</title>
<updated>2022-12-18T13:19:07Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-12-17T15:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=eb7ffeafbfa78235b05abb4ae479376150d7a814'/>
<id>urn:sha1:eb7ffeafbfa78235b05abb4ae479376150d7a814</id>
<content type='text'>
To generate commitcount we use grep --max-count. This is not present on
alpine grep and cause wrong generation. Use -m as it's just the short
version of --max-count and more portable.

Fixes: #11200
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules.mk: move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk</title>
<updated>2022-10-05T15:49:19Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-10-03T22:30:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=7df959449cabee021aa42cab3a7172e0972a79a7'/>
<id>urn:sha1:7df959449cabee021aa42cab3a7172e0972a79a7</id>
<content type='text'>
Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk as it's a better
place than exporting it in the global rules.mk makefile.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules.mk: add option to download files into a subdirectory</title>
<updated>2022-09-22T20:48:35Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2022-08-03T17:01:51Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=59db286814be3ebc1fb9d9ec580945920c2d68e7'/>
<id>urn:sha1:59db286814be3ebc1fb9d9ec580945920c2d68e7</id>
<content type='text'>
Some packages download a single raw file or set of raw files
instead of an archive.

The filenames of these download files have names and version numbers
that do not directly correspond to the name and version of the package
as it is defined in its Makefile.

To better organize downloaded files, this adds the option of
creating a subdirectory in the download directory for these files
that can be named with package specific variables.

DL_DIR is now a recursively expanded variable
since the value now depends on whether DL_SUBDIR is defined.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
<entry>
<title>scripts: always check certificates</title>
<updated>2022-09-10T13:24:22Z</updated>
<author>
<name>Josh Roys</name>
</author>
<published>2022-07-23T15:23:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=90c6e3aedf167b0ae1baf376e7800a631681e69a'/>
<id>urn:sha1:90c6e3aedf167b0ae1baf376e7800a631681e69a</id>
<content type='text'>
Remove flags from wget and curl instructing them to ignore bad server
certificates. Although other mechanisms can protect against malicious
modifications of downloads, other vectors of attack may be available
to an adversary.

TLS certificate verification can be disabled by turning oof the
"Enable TLS certificate verification during package download" option
enabled by default in the "Global build settings" in "make menuconfig"

Signed-off-by: Josh Roys &lt;roysjosh@gmail.com&gt;
[ add additional info on how to disable this option ]
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules_mk: don't include wrapped bin with external toolchains</title>
<updated>2022-07-24T17:53:43Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-03T00:06:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=a90eabf60255773231ed0259e5da5eb6a36fe9ce'/>
<id>urn:sha1:a90eabf60255773231ed0259e5da5eb6a36fe9ce</id>
<content type='text'>
Don't add wrapped bin to the TARGET_PATH as it does cause compilation
error.

cmake.mk will use the "command -v" and will use the wrapped bin instead
of the external toolchain bin as they have the same name and command
will select the first result.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules_mk: use gcc versions for external toolchain</title>
<updated>2022-07-24T17:53:43Z</updated>
<author>
<name>Vincent Wiemann</name>
</author>
<published>2020-12-28T15:00:13Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=2555ffb4536e2727465e9a0d426ad3c4f1ef003a'/>
<id>urn:sha1:2555ffb4536e2727465e9a0d426ad3c4f1ef003a</id>
<content type='text'>
When using the OpenWrt toolchain as an external toolchain the build
failed due to missing LTO support. By choosing the GCC wrappers of
the tools this commit makes sure that the LTO-enabled executables
are being used.

Signed-off-by: Vincent Wiemann &lt;vincent.wiemann@ironai.com&gt;
[ wrap the commit description to 72 char ]
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>kernel: filter -no-plt from KCFLAGS</title>
<updated>2022-06-21T15:41:17Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2022-06-21T13:15:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=24e27bec9a6df1511a504cf04cd9578a23e74657'/>
<id>urn:sha1:24e27bec9a6df1511a504cf04cd9578a23e74657</id>
<content type='text'>
Compiler option -no-plt will break kernel builds on some architectures
eg. (x86)  Filter this option from the recently introduced handling of
KCFLAGS vs EXTRA_OPTIMISATION

Fixes: 1d42af720c6b ("kernel: use KCFLAGS for passing EXTRA_OPTIMIZATION flags")

Suggested-by: Felix Fietkau &lt;nbd@nbd.name&gt;

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>build: change PYTHON to python3</title>
<updated>2022-01-24T12:29:05Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2022-01-24T10:22:31Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/aparcar/commit/?id=f8bc8fa3778648c31e46ff3d8c277b473f663fae'/>
<id>urn:sha1:f8bc8fa3778648c31e46ff3d8c277b473f663fae</id>
<content type='text'>
On recent macOS, /usr/bin/python3 is a wrapper that finds the right python executable
It checks argv[0] to determine if python2 or python3 should be called. Always execute
it as python3 to ensure it calls the right version

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
