<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/ynezz/scripts, branch master</title>
<subtitle>Staging tree of Petr Stetiar</subtitle>
<id>https://git.openwrt.org/openwrt/staging/ynezz/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/ynezz/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/'/>
<updated>2021-05-29T11:03:07Z</updated>
<entry>
<title>scripts: config.guess: update to 2021-05-24</title>
<updated>2021-05-29T11:03:07Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-05-27T11:17:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=ec4852f7313cc377785ce27cac51a71890ab20d6'/>
<id>urn:sha1:ec4852f7313cc377785ce27cac51a71890ab20d6</id>
<content type='text'>
This script hasn't seen an update in multiple years, update it to the
latest version provided upstream. Both `config.guess` and `config.sub`
are copied from upstream[1] and not modified.

The full changelog is available within the upstream repository[1].

[1]: https://git.savannah.gnu.org/git/config.git

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: introduce $(MKHASH)</title>
<updated>2021-05-13T13:13:15Z</updated>
<author>
<name>Leonardo Mörlein</name>
</author>
<published>2021-05-09T20:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=b993b68b6ca8444b5227a0c18df4600b37ac565c'/>
<id>urn:sha1:b993b68b6ca8444b5227a0c18df4600b37ac565c</id>
<content type='text'>
Before this commit, it was assumed that mkhash is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. In most of the cases, I just saw warnings like this:

    make: Entering directory '/home/.../package/gluon-status-page'
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    [...]

While these were only warnings and the package still compiled sucessfully,
I also observed that some package even fail to build because of this.

After applying this commit, the variable $(MKHASH) is introduced. This
variable points to $(STAGING_DIR_HOST)/bin/mkhash, which is always the
correct path.

Signed-off-by: Leonardo Mörlein &lt;me@irrelefant.net&gt;
</content>
</entry>
<entry>
<title>build,json: 3rd fixup of default_packages</title>
<updated>2021-03-25T20:25:54Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-03-25T20:25:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=7880a648484eb9d9cda87078660567f2e7e565e2'/>
<id>urn:sha1:7880a648484eb9d9cda87078660567f2e7e565e2</id>
<content type='text'>
This became a bit of a tragedy, caused by a corner cases which wasn't
put into account during testing. DEFAULT_PACKAGES are defined in
target/linux/&lt;target&gt;/Makefile but also in
target/linux/&lt;target&gt;/&lt;subtarget&gt;/target.mk.

The latter was no longer imported when using DUMP=1, however not using
DUMP=1 while running the Makefile in target/linux/&lt;target&gt;/ caused duplicate
packages in the list.

As a solution, which should have been used from day 0, `make` runs in
target/linux/ without DUMP=1, resulting in no duplicate packages and all
inclusions from include/target.mk, linux/target/&lt;target&gt;/{Makefile,
&lt;subtarget&gt;/target.mk}

While at it, sort the list of default packages.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build,json: fixup fixup of arch_packages</title>
<updated>2021-03-25T05:03:24Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-03-25T04:54:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=b36068d35d9edbd8ed6aaeed6f4c863bfe4cfbee'/>
<id>urn:sha1:b36068d35d9edbd8ed6aaeed6f4c863bfe4cfbee</id>
<content type='text'>
The commit "1bf2b3fe90 build,json: fixup missing arch_packages" fixes
the missing package architecture locally but runs $(TOPDIR)/Makefile
rather than a target specific one. While this works on local builds just
fine, it causes the buildbots to add garbage to the `arch_packages`
variable:

    cd \"/builder/shared-workdir/build\"; git log --format=%h -1
    toolchain &gt; /builder/shared-workdir/build/tmp/.ver_check\ncmp -s
    /builder/shared-workdir/build/tmp/.ver_check
    /builder/shared-workdir/build/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/stamp/.ver_check
    || { \\\n\trm -rf
    /builder/shared-workdir/build/build_dir/target-x86_64_musl
    /builder/shared-workdir/build/staging_dir/target-x86_64_musl
    /builder/shared-workdir/build/staging_dir/toolchain-x86_64_gcc-8.4.0_musl
    /builder/shared-workdir/build/build_dir/toolchain-x86_64_gcc-8.4.0_musl;
    \\\n\tmkdir -p
    /builder/shared-workdir/build/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/stamp;
    \\\n\tmv /builder/shared-workdir/build/tmp/.ver_check
    /builder/shared-workdir/build/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/stamp/.ver_check;
    \\\n}\nx86_64

Only the last line contains the desired string.

Future investigation should check why the build system prints this to
stdout rather than stderr.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build,json: fixup missing arch_packages</title>
<updated>2021-03-24T23:41:34Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-03-24T21:01:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=1bf2b3fe90347641c87ca754913a4857a387478c'/>
<id>urn:sha1:1bf2b3fe90347641c87ca754913a4857a387478c</id>
<content type='text'>
Fix 7f4c2b1 "build,json: fix duplicates in default_packages" which
removed duplicate default packages but also removed the package
architecture from the profiles.json.

If DUMP=1 is set, the `ARCH_PACKAGES` is no longer exported and
therefore empty. Fix this by running make twice, once with DUMP=1 and
once without.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build,json: fix duplicates in default_packages</title>
<updated>2021-03-21T09:58:52Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-03-21T09:23:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=7f4c2b1a4f9216218dced64794318f2197565c85'/>
<id>urn:sha1:7f4c2b1a4f9216218dced64794318f2197565c85</id>
<content type='text'>
Calling without the DUMP=1 argument causes the target specific Makefile
to be "included" again which adds the target specific packages twice,
once on the actual run and once included from `include/target.mk`.

This led to duplicate package entries, causing confusion in downstream
projects using the generated JSON files.

While at it, apply `black` style to Python script.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>include/image*: add support for device-tree overlays</title>
<updated>2021-03-17T17:45:34Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-03-17T17:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=6890f6fe13bb8dfc40dbca89703d4ab1116dd4bc'/>
<id>urn:sha1:6890f6fe13bb8dfc40dbca89703d4ab1116dd4bc</id>
<content type='text'>
Add new target feature 'dt-overlay' which makes DTC keep the symbol
names in the generated dtb.
Make sure additional DT overlay sources specified by the new device
variable DEVICE_DTS_OVERLAY get compiled together with the main DTS
(currently overlays got to be in the same folder). Let Build/fit pass
the generated DT overlay blobs to mkits.sh.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts/mkits.sh: add support for adding DT overlay blobs to image</title>
<updated>2021-03-17T17:41:24Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-03-17T17:27:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=4e6de4f0938de24f407b85b6328f5114103bd45a'/>
<id>urn:sha1:4e6de4f0938de24f407b85b6328f5114103bd45a</id>
<content type='text'>
Allow adding multiple device tree overlay blobs to an image and
generate configurations for each of them.
This is useful on boards with modern U-Boot which allow e.g. user-
configurable peripherals ("shields") in that way.
Note that currently, each generated configuration adds exactly one
overlay on top of the base image, ie. adding multiple overlays at the
same time is not yet supported.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts,ipkg-build: use realpath for pkg_dir</title>
<updated>2021-03-15T05:32:30Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-02-04T23:49:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=bb95be9265a9e3eb71c4f50b5f289a75683405d4'/>
<id>urn:sha1:bb95be9265a9e3eb71c4f50b5f289a75683405d4</id>
<content type='text'>
This allows manual execution of the ipkg-build script even with
releative path.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>scripts,ipkg-build: apply shellcheck</title>
<updated>2021-03-15T05:31:43Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-02-04T23:34:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ynezz/commit/?id=72f481b1579e844d25ca71ec72b2fa377d961f04'/>
<id>urn:sha1:72f481b1579e844d25ca71ec72b2fa377d961f04</id>
<content type='text'>
This commit cleans the `ipkg-build` script via changes suggested by
shellcheck. These are mostly word splitting issues.

Remove the definition of GZIP, this adds three "lookups" of the `gzip`
binary but the rest of the build system doesn't seem to use such
improvements neither.

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