<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/blocktrron/scripts/feeds, branch master</title>
<subtitle>Staging tree of David Bauer</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/'/>
<updated>2025-11-12T11:05:53Z</updated>
<entry>
<title>scripts: feeds: Don’t hardcode IS_TTY</title>
<updated>2025-11-12T11:05:53Z</updated>
<author>
<name>Ernestas Kulik</name>
</author>
<published>2025-11-12T08:16:30Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=fd7e43d429a370665795fb14c859c046c761e4e9'/>
<id>urn:sha1:fd7e43d429a370665795fb14c859c046c761e4e9</id>
<content type='text'>
When building in environments that set IS_TTY, the feeds script does not
honor it and passes a hardcoded value to scan.mk, causing unwanted
control characters to appear in stdout.

This commit addresses the issue by checking IS_TTY and MAKE_TERMOUT
variables and uses their values if defined.

Closes #8039

Signed-off-by: Ernestas Kulik &lt;ernestas.k@iconn-networks.com&gt;
Link: https://github.com/openwrt/openwrt/pull/20743
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: implement support for --root option</title>
<updated>2025-10-13T09:47:07Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2025-10-12T23:59:52Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=e112fd8e59e37ae323fdaebb74bdd6084176d8e4'/>
<id>urn:sha1:e112fd8e59e37ae323fdaebb74bdd6084176d8e4</id>
<content type='text'>
Some feeds might need to set the source for their packages in a
different directory than the cloned one.

For example a feed "test" might be an entire repository and the relevant
packages that wants to be included are in the directory "foo".

In such scenario the source info in the package will result in something
like "feeds/test/foo/network/dnsmasq" instead of an expected entry like
"feeds/test/network/dnsmasq".

To give a more real-world example, this problem is currently present
with OpenWrt SDK where the SDK clone the entire OpenWrt core repository
as "base" feeds but the package are present in the "package" directory.

This cause every package to have the source entry set to
"feeds/base/package/..." conflicting with what a non-SDK build do with
setting the source entry to "feeds/base/..."

To solve this, actually enable support for "flags" in the feeds script
and implement a new option "--root" to set the root directory for the
defined feed to an inner directory.

The "flags" in the feed script are no more than argument option that can
be defined right after the "src-" type in the feed.conf file.

This feature was partially implemented but never actually used for
anything keeping it dormant with all the core piece there (the pattern
regex always accounted for these extra option but they were never passed
to the relevant functions)

An example of the "--root" flag is the following:

src-git --root=package base https://git.openwrt.org/openwrt/openwrt.git;main

With "--root" defined, the script will append "_root" to the feed name
clone directory and will create a symbolic link named with the feed name
and pointing to the feed name clone directory + the value in root.

From the previous example:

feed name: base -&gt; clone directory: base_root
symbolic link: base -&gt; base_root/package

The script internally reference the "_root" directory for every update
operation and OpenWrt build system transparently use the feed name
directory to reference feed packages producing consistent source info
entry.

Link: https://github.com/openwrt/openwrt/pull/20396
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: shallow clone submodules</title>
<updated>2025-03-04T11:00:19Z</updated>
<author>
<name>Cedric CHEDALEUX</name>
</author>
<published>2025-02-17T09:44:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=9ec32cfb2733856a2ab4caee07d9b3297568381d'/>
<id>urn:sha1:9ec32cfb2733856a2ab4caee07d9b3297568381d</id>
<content type='text'>
When a feed has submodules, all its submodules are fully cloned whereas
the feed itself is shallowed. Let's be consistent and perform shallow clones
as well for the submodules.

Signed-off-by: Cedric CHEDALEUX &lt;cedric.chedaleux@orange.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18003
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: shallow clone for specific commit update</title>
<updated>2025-03-04T11:00:19Z</updated>
<author>
<name>Cedric CHEDALEUX</name>
</author>
<published>2025-02-17T09:41:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=32d0a57dc10811a24816e51f10e55963f40fe462'/>
<id>urn:sha1:32d0a57dc10811a24816e51f10e55963f40fe462</id>
<content type='text'>
When a feed is referenced with a specific commit (i.e. &lt;git_url&gt;^&lt;sha1&gt;),
a full clone was performed and a branch was created from the sha1
and named with the sha1. Other git clones operations are shallowed.

As Git does not support clone at a specific commit, let's first perform
a shallow clone to latest commit, then fetch the relevant commit and
finally checkout it (no more 'pseudo' branch).

It saves bandwith and significantly speeds up the feed update process.

Signed-off-by: Cedric CHEDALEUX &lt;cedric.chedaleux@orange.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18003
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: force kernel package scan after a target installation</title>
<updated>2024-10-10T19:51:43Z</updated>
<author>
<name>Thomas Richard</name>
</author>
<published>2024-09-24T16:27:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=51e083426b8b9343a253597baa286b76e9232194'/>
<id>urn:sha1:51e083426b8b9343a253597baa286b76e9232194</id>
<content type='text'>
When a target is installed from a feed, the linux kernel package is scanned
before the installation of this target.
If some kernel module packages are defined in this feeds at the target
level, there were not parsed during the scan of linux kernel package, as
the target didn't exist yet. So these kernel module packages don't exist.

Once the target is installed, clean the linux kernel packageinfo to force
the scan of the linux kernel package next time this script (or the make
command) is called.

Signed-off-by: Thomas Richard &lt;thomas.richard@bootlin.com&gt;
Link: https://patchwork.ozlabs.org/project/openwrt/patch/mailman.117548.1727195440.1280.openwrt-devel@lists.openwrt.org/
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: Support feed update with git pull --rebase --autostash</title>
<updated>2024-09-08T16:54:42Z</updated>
<author>
<name>Hannu Nyman</name>
</author>
<published>2024-05-04T06:57:07Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=f68dcce3bb2a5d1043db7282809ef9b197dec99a'/>
<id>urn:sha1:f68dcce3bb2a5d1043db7282809ef9b197dec99a</id>
<content type='text'>
Add feed update option '-s' that performs 'git pull --rebase --autostash':
* possible local uncommited changes are autostashed before pull,
* local commits are then rebased on top of the new commits pulled
  from origin and
* finally git does 'stash pop'.

This enables feed update while there are local development commits
and possibly also local uncommited changes.

Signed-off-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Link: https://github.com/openwrt/openwrt/pull/15377
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: Support feed update with git pull --rebase</title>
<updated>2024-09-08T16:54:41Z</updated>
<author>
<name>Hannu Nyman</name>
</author>
<published>2024-05-04T06:56:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=ef720b1e09fc8f013dc2bcc0b86f9b98ed4607fc'/>
<id>urn:sha1:ef720b1e09fc8f013dc2bcc0b86f9b98ed4607fc</id>
<content type='text'>
Add feed update option '-r' to perform "git pull --rebase" so that
possible local commits are rebased on top of the new commits pulled
from origin. That enables git pull while there are local
development commits.

Signed-off-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Link: https://github.com/openwrt/openwrt/pull/15377
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: add APK package build capabilities</title>
<updated>2024-05-17T20:21:26Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-05-14T10:36:59Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=d788ab376f859164df84e2054cbbbb0921943c5b'/>
<id>urn:sha1:d788ab376f859164df84e2054cbbbb0921943c5b</id>
<content type='text'>
A new option called `USE_APK` is added which generated APK packages
(.apk) instead of OPKG packages (.ipk).

Some features like fstools `snapshot` command are not yet ported

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: use long hashes when generating feed.buildinfo</title>
<updated>2023-11-02T11:40:44Z</updated>
<author>
<name>Sandro Jäckel</name>
</author>
<published>2023-11-02T02:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=376f1c80a967cf349e9d7d6168dd9bce3c35ebd8'/>
<id>urn:sha1:376f1c80a967cf349e9d7d6168dd9bce3c35ebd8</id>
<content type='text'>
Short hashes are not guaranteed to be unambiguous forever and could
collide if the repo grows over time. Git also estimates how many
characters are roughly required to prevent such a collision and slowly
increases the amount of characters beginning from 6, OpenWrt is already
at 8. Lets use the full hash the have a predictable length and keep
hashes unambiguous forever.

Signed-off-by: Sandro Jäckel &lt;sandro.jaeckel@gmail.com&gt;
</content>
</entry>
<entry>
<title>feeds: use git-src-full to allow Git versioning</title>
<updated>2022-02-14T23:24:24Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-11T20:47:00Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=7fae1e5677e9bb4979c8d4ac99be4de6955b13d0'/>
<id>urn:sha1:7fae1e5677e9bb4979c8d4ac99be4de6955b13d0</id>
<content type='text'>
Both $(AUTORELEASE) and $(PKG_SRC_VERSION) (from luci.git) use the Git
log to determine releases and package timestamps.

Feeds are shallow cloned by default, resulting in an incomplete Git log
and therefore different local package versions than offered upstream.

This commits sets the default feeds to use `src-git-full` to solve that.

Add fixes from "2b1d92f: scripts/feeds: silence git warning by selecting
pull style" to `src-git-full`

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