[Buildroot] svn commit: trunk/buildroot

Peter Korsgaard jacmet at uclibc.org
Mon Jan 26 12:21:42 UTC 2009


>>>>> "Ulf" == Ulf Samuelsson <ulf.samuelsson at atmel.com> writes:

Hi,

 ulf> Flush configuration cache, needed if config has changed
 >> 
 >> It would be good if we could get the system to automatically detect
 >> this instead of using a manual make target.
 >> 
 >> What is the use case for this? If someone changes the toolchain
 >> config, or is it simply adding/removing packages?

 Ulf> If you build crashes, and you add /delete targets, then
 Ulf> several packages will fail to build because the current
 Ulf> configuration is different from the contents of the cache.

So shouldn't we have something like:

$(PROJECT_BUILD_DIR)/tgt-config.cache: .config
        mkdir -p $(@D)
        rm -f $@
        touch $@

Probably in an ifdef BR2_CONFIG_CACHE.

Totally untested, but wouldn't that work?

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list