diff options
author | Daniel Fandrich <dan@coneharvesters.com> | 2011-07-08 07:59:16 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-07-08 07:59:16 +0200 |
commit | 126f2b2853502a7e74e73c11b86a25510a76b9c0 (patch) | |
tree | de4070d6095b1aa9ad96c228e55ec1c21a043a11 | |
parent | 319b8bb3558ec4149f8653c1ff147d4ca8ba0217 (diff) | |
download | busybox-w32-126f2b2853502a7e74e73c11b86a25510a76b9c0.tar.gz busybox-w32-126f2b2853502a7e74e73c11b86a25510a76b9c0.tar.bz2 busybox-w32-126f2b2853502a7e74e73c11b86a25510a76b9c0.zip |
Support configuring Busybox from _defconfig files
The existing test .config files are moved to configs/ and renamed
to *_defconfig. 'make xyz_defconfig' will enable the
configuration in that specific file.
Signed-off-by: Daniel Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | INSTALL | 4 | ||||
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | Makefile.help | 4 | ||||
-rw-r--r-- | configs/TEST_config_nommu (renamed from TEST_config_nommu) | 0 | ||||
-rw-r--r-- | configs/TEST_config_noprintf (renamed from TEST_config_noprintf) | 0 | ||||
-rw-r--r-- | configs/TEST_config_rh9 (renamed from TEST_config_rh9) | 0 | ||||
-rw-r--r-- | scripts/kconfig/Makefile | 2 |
7 files changed, 9 insertions, 12 deletions
@@ -70,7 +70,9 @@ create a known starting point. | |||
70 | Other starting configurations (mostly used for testing purposes) include | 70 | Other starting configurations (mostly used for testing purposes) include |
71 | "make allbareconfig" (enables all applets but disables all optional features), | 71 | "make allbareconfig" (enables all applets but disables all optional features), |
72 | "make allyesconfig" (enables absolutely everything including debug features), | 72 | "make allyesconfig" (enables absolutely everything including debug features), |
73 | and "make randconfig" (produce a random configuration). | 73 | and "make randconfig" (produce a random configuration). The configs/ directory |
74 | contains a number of additional configuration files ending in _defconfig which | ||
75 | are useful in specific cases. "make help" will list them. | ||
74 | 76 | ||
75 | Configuring BusyBox produces a file ".config", which can be saved for future | 77 | Configuring BusyBox produces a file ".config", which can be saved for future |
76 | use. Run "make oldconfig" to bring a .config file from an older version of | 78 | use. Run "make oldconfig" to bring a .config file from an older version of |
@@ -1042,7 +1042,7 @@ rpm: FORCE | |||
1042 | # Brief documentation of the typical targets used | 1042 | # Brief documentation of the typical targets used |
1043 | # --------------------------------------------------------------------------- | 1043 | # --------------------------------------------------------------------------- |
1044 | 1044 | ||
1045 | boards := $(wildcard $(srctree)/arch/$(ARCH)/configs/*_defconfig) | 1045 | boards := $(wildcard $(srctree)/configs/*_defconfig) |
1046 | boards := $(notdir $(boards)) | 1046 | boards := $(notdir $(boards)) |
1047 | 1047 | ||
1048 | -include $(srctree)/Makefile.help | 1048 | -include $(srctree)/Makefile.help |
@@ -1131,15 +1131,6 @@ clean: $(clean-dirs) | |||
1131 | -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ | 1131 | -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ |
1132 | -type f -print | xargs rm -f | 1132 | -type f -print | xargs rm -f |
1133 | 1133 | ||
1134 | help: | ||
1135 | @echo ' Building external modules.' | ||
1136 | @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target' | ||
1137 | @echo '' | ||
1138 | @echo ' modules - default target, build the module(s)' | ||
1139 | @echo ' modules_install - install the module' | ||
1140 | @echo ' clean - remove generated files in module directory only' | ||
1141 | @echo '' | ||
1142 | |||
1143 | # Dummies... | 1134 | # Dummies... |
1144 | PHONY += prepare scripts | 1135 | PHONY += prepare scripts |
1145 | prepare: ; | 1136 | prepare: ; |
diff --git a/Makefile.help b/Makefile.help index 999d0298e..119dd6f89 100644 --- a/Makefile.help +++ b/Makefile.help | |||
@@ -25,6 +25,10 @@ help: | |||
25 | @echo ' You can use these commands if the commands on the host' | 25 | @echo ' You can use these commands if the commands on the host' |
26 | @echo ' is unusable. Afterwards use it like:' | 26 | @echo ' is unusable. Afterwards use it like:' |
27 | @echo ' make SED="$(objtree)/sed"' | 27 | @echo ' make SED="$(objtree)/sed"' |
28 | @$(if $(boards), \ | ||
29 | $(foreach b, $(boards), \ | ||
30 | printf " %-21s - Build for %s\\n" $(b) $(subst _defconfig,,$(b));) \ | ||
31 | echo '') | ||
28 | @echo | 32 | @echo |
29 | @echo 'Installation:' | 33 | @echo 'Installation:' |
30 | @echo ' install - install busybox into CONFIG_PREFIX' | 34 | @echo ' install - install busybox into CONFIG_PREFIX' |
diff --git a/TEST_config_nommu b/configs/TEST_config_nommu index 905f65296..905f65296 100644 --- a/TEST_config_nommu +++ b/configs/TEST_config_nommu | |||
diff --git a/TEST_config_noprintf b/configs/TEST_config_noprintf index b72e12856..b72e12856 100644 --- a/TEST_config_noprintf +++ b/configs/TEST_config_noprintf | |||
diff --git a/TEST_config_rh9 b/configs/TEST_config_rh9 index 23094e391..23094e391 100644 --- a/TEST_config_rh9 +++ b/configs/TEST_config_rh9 | |||
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index b5708e2e4..1651390a6 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -87,7 +87,7 @@ endif | |||
87 | $(MTIME_IS_COARSE) && sleep 1 | 87 | $(MTIME_IS_COARSE) && sleep 1 |
88 | 88 | ||
89 | %_defconfig: $(obj)/conf | 89 | %_defconfig: $(obj)/conf |
90 | $(Q)$< -D $@ Config.in | 90 | $(Q)$< -D configs/$@ Config.in |
91 | $(MTIME_IS_COARSE) && sleep 1 | 91 | $(MTIME_IS_COARSE) && sleep 1 |
92 | 92 | ||
93 | # Help text used by make help | 93 | # Help text used by make help |