Question about patching workflow
Alexander Wilhelm
alexander.wilhelm at westermo.com
Thu Jan 22 04:53:26 PST 2026
Hello developer community,
I’m working with the OpenWrt source tree and use the following `quilt`-based
workflow to apply changes:
* `make package/<pkg-name>/prepare QUILT=1` to unpack the sources
* `quilt add, edit, refresh`, etc. to make changes in build directory
* `make package/<pkg-name>/update` to copy patches from the build directory back
into the source's `patches` directory
This works quite well for targets, mac80211 package, and other local packages.
However, when I try to apply the same workflow to packages coming from feeds
(for example luci or packages), this mechanism does not work as expected. In
fact, when I run `make package/<pkg-name>/compile`, all my changes made in the
build directory are discarded. I am using `src-cpy` or `src-link` to fetch the
feeds.
Is there a known limitation when using this workflow with feed packages? If so,
what approach would you recommend to properly patch feed packages so that
changes are not lost during prepare or compile, and patches end up in the
correct `patches` directory? Any guidance on the preferred or recommended method
would be highly appreciated.
Best regards
Alexander Wilhelm
More information about the openwrt-devel
mailing list