From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Mon, 4 Aug 2014 19:37:01 +0200 Subject: [Buildroot] [PATCH 2/2] infra/pkg-kconfig: do not rebuild kconfig packages again and again In-Reply-To: <9846dd33-c6e6-4753-b275-e10d957f0e23@email.android.com> References: <9846dd33-c6e6-4753-b275-e10d957f0e23@email.android.com> Message-ID: <20140804173701.GB3875@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Thomas, All, On 2014-08-04 19:32 +0200, Thomas De Schampheleire spake thusly: > "Yann E. MORIN" schreef: > >When a kconfig-based package executes its confiigure step, it may > configure > > >overwrite it .config file. Thus, the .config file is more recent than > its > > >our stamp file .stamp_kconfig_fixup_done. On a subsequent build, out > our > > >dependency rules would kick in, and run the config fixup again, thus > >kikcing in the package's configure, build and isntall steps yet once > kicking > install OK, fixed. > >more, that, ad libitum. > You mean 'ad infinitum' ? Yep, that fits better, indeed. Ad nauseam fits, too... :-] Will change, thanks. > >Fix that by introducing a post-configure hook that re-touches our stamp > >file, so it is always more recent than the .config. > > Could you share an example of which package does what type of change to the .config? Yep. Busybox. It calls 'make oldconfig' in its configure commands, thus overwritting its .config. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'