[Buildroot] Can "make <>_defconfig" rules be restored?

Hans-Christian Egtvedt hcegtvedt at norway.atmel.com
Mon Jun 25 13:20:05 UTC 2007


On Mon, 2007-06-25 at 15:08 +0200, Ulf Samuelsson wrote:
> > >>
> > >>I would like to use "_defconfig" files to save and restore specific 
> > >>defaults
> > >>for several platforms.
> > >>
> > >>The Makefile at one point supported loading of user defined "_defconfig"
> > >>files. In the current Makefile the noconfig_targets part of "_defconfig" 
> > >>is
> > >>commented out.
> > >>
> > >
> > > Yes, the problem with this kind of _defconfig was that in a tree that
> > > had already one or two compiled arches lying around, the find was the
> > > cause for a delay in the order of several minutes on my box.
> > The purpose of this patch is to have several arches lying around.
> > 
> It is not particularily efficient to search the whole tree for config files.

The target/ directory is not that big on my snapshot (although 1 month
old):

: hcegtvedt at hcegtvedt ~/gitwork/buildroot > find target | wc -l
554
: hcegtvedt at hcegtvedt ~/gitwork/buildroot > du -sh target 
6,3M    target


> In my private implementation, I only use the "configs" directory for
> storage of such files.

Where is the configs directory, under target/configs/ ?

> make B=<board> board

Much like the
make <board>_defconfig
make

procedure would do.

> will copy the latest version (they are stored as <board>-<date>.config)
> to .config.

I.e. the save_config makefile target you talked about?

> The implementation is simplistic.
> Copy ALL the files to .confiug, so the latest file will overwrite all other files.

-- 
Mvh
Hans-Christian Egtvedt




More information about the buildroot mailing list