#19845: Auto rebuild of package on any config change
-------------------------------+------------------------
Reporter: realthunder.dev@… | Owner: developers
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
-------------------------------+------------------------
Current OpenWrt build system relies on PKG_CONFIG_DEPENDS to rebuild
package on config change. But it only works on boolean type of config
option.
The build system creates various hidden files to mark the completeness of
corresponding build stages. It creates a file named .configured_XXX to
mark the completeness of the configuration stage, where the "XXX" part is
generated based on the value of PKG_CONFIG_DEPENDS variable in the package
make file. Each item in PKG_CONFIG_DEPENDS is translated to either 'y'
meaning the config option is present, or 'n' meaning absence. And this is
the reason why the build system won't detect changes in non boolean type
config options.
By looking into include/package.mk file, it can be seen that the build
system is already using md5 sum on PKG_FILE_DEPENDS option for the prepare
stage. Using similar principle, the attached patch replaces the "XXX" part
with the md5 sum of the contents of all configure options. It does the
same thing on PKG_PREPARED_DEPENDS (The option is not documented, but by
the look of the make file code, it does the same thing).
--
Ticket URL: <https://dev.openwrt.org/ticket/19845>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets