Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Can "make <>_defconfig" rules be restored?
@ 2007-06-22 22:04 Rick Foos
  2007-06-23  9:39 ` Bernhard Fischer
  0 siblings, 1 reply; 10+ messages in thread
From: Rick Foos @ 2007-06-22 22:04 UTC (permalink / raw)
  To: buildroot

Hi All,

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.

Is there a problem with restoring "_defconfig" file loading?

I searched the list archives on defconfig, but could not find any decision 
on this.

The following patch, restores "_defconfig" file loading limited to files at 
a maxdepth of 4.

This allows "_defconfig" files in packages and tools while avoiding the 
_defconfig files in the linux source directories.

The patch also fixes the find syntax, and allows "_defconfig" files to be in 
the same directory as make.

I'd like to propose that this patch be added, or let me know a better way to 
manage multiple default configurations.

Thanks,
Rick Foos

Index: Makefile
===================================================================
--- Makefile    (revision 9)
+++ Makefile    (working copy)
@@ -28,10 +28,9 @@

 noconfig_targets := menuconfig config oldconfig randconfig \
        defconfig allyesconfig allnoconfig release tags    \
-       source-check
+       source-check \
+       $(shell find $(TOPDIR) -mindepth 2 -maxdepth 4 -name \*_defconfig | 
sed
's|.*\/||')

-#      $(shell find . -name *_defconfig |sed 's/.*\///')
-
 # Pull in the user's configuration file
 ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
 -include $(TOPDIR).config

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-25 14:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22 22:04 [Buildroot] Can "make <>_defconfig" rules be restored? Rick Foos
2007-06-23  9:39 ` Bernhard Fischer
2007-06-24  2:12   ` Rick Foos
2007-06-25 13:08     ` Ulf Samuelsson
2007-06-25 13:20       ` Hans-Christian Egtvedt
2007-06-25 13:40         ` Bernhard Fischer
2007-06-25 13:43           ` Bernhard Fischer
2007-06-25 14:29             ` Rick Foos
2007-06-25 14:42           ` Ulf Samuelsson
2007-06-25 14:02         ` Ulf Samuelsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox