[LEDE-DEV] Problem with PKG_CONFIG_DEPENDS and string configs
Florian Fainelli
f.fainelli at gmail.com
Tue Aug 1 14:58:20 PDT 2017
On 08/01/2017 02:00 PM, Rafał Miłecki wrote:
> Packages are allowed to specify dependency configs in their
> PKG_CONFIG_DEPENDS. Any value change for any dependency should result
> in rebuilding the package.
>
> This feature is handled with STAMP_CONFIGURED in package.mk. For every
> package we have something like:
> build_dir/target-*/fstools-*/.configured_yyyyyyyyyy
> build_dir/target-*/ubox-*/.configured_yyyyyyyy
> build_dir/target-*/procd-*/.configured_ynynnnnnyyyyyyyy_8e081b74cf069e1e6800a5bbcbb282f0
>
> The problem I see is this can't work reliably with configs that use
> "string" instead of "bool". In such case package won't be refreshed
> when expected.
>
> Is there any chance someone could look at this and hopefully fix this?
> This Makefile thing is big magic as for me :(
You could use mkhash to calculate a hash over the configured options
that should work for both bool and more complex types in the Kconfig
syntax. See package/libs/openssl/Makefile for an example.
--
Florian
More information about the Lede-dev
mailing list