diff options
author | Rob Landley <rob@landley.net> | 2006-02-28 05:26:13 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-02-28 05:26:13 +0000 |
commit | 8bbee852149faacd89558be2449a69d75c4cb9cf (patch) | |
tree | 401d68ed9110cd405b4b021190aec196c35982c3 | |
parent | 2fe4eac4ea355cfc5e85bc3acf50d26b86146a2c (diff) | |
download | busybox-w32-8bbee852149faacd89558be2449a69d75c4cb9cf.tar.gz busybox-w32-8bbee852149faacd89558be2449a69d75c4cb9cf.tar.bz2 busybox-w32-8bbee852149faacd89558be2449a69d75c4cb9cf.zip |
defconfig shouldn't enable CONFIG_INSTALL_NO_USR, and while we're at it
remove residue of old defconfig and tweak "make with no config" to run
defconfig before bringing up menuconfig.
-rw-r--r-- | Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -37,7 +37,6 @@ SRC_DIRS:=$(patsubst %,$(top_srcdir)/%,$(DIRS)) | |||
37 | _all: | 37 | _all: |
38 | 38 | ||
39 | CONFIG_CONFIG_IN = $(top_srcdir)/Config.in | 39 | CONFIG_CONFIG_IN = $(top_srcdir)/Config.in |
40 | CONFIG_DEFCONFIG = $(top_srcdir)/defconfig | ||
41 | 40 | ||
42 | ifeq ($(KBUILD_SRC),) | 41 | ifeq ($(KBUILD_SRC),) |
43 | 42 | ||
@@ -145,7 +144,7 @@ include $(top_srcdir)/Rules.mak | |||
145 | ifneq ($(strip $(HAVE_DOT_CONFIG)),y) | 144 | ifneq ($(strip $(HAVE_DOT_CONFIG)),y) |
146 | 145 | ||
147 | # Default target if none was requested explicitly | 146 | # Default target if none was requested explicitly |
148 | all: menuconfig | 147 | all: defconfig menuconfig |
149 | 148 | ||
150 | # warn if no configuration exists and we are asked to build a non-config target | 149 | # warn if no configuration exists and we are asked to build a non-config target |
151 | .config: | 150 | .config: |
@@ -161,13 +160,13 @@ all: menuconfig | |||
161 | scripts/config/conf: scripts/config/Makefile | 160 | scripts/config/conf: scripts/config/Makefile |
162 | $(Q)$(MAKE) -C scripts/config conf | 161 | $(Q)$(MAKE) -C scripts/config conf |
163 | -@if [ ! -f .config ] ; then \ | 162 | -@if [ ! -f .config ] ; then \ |
164 | cp $(CONFIG_DEFCONFIG) .config; \ | 163 | touch .config; \ |
165 | fi | 164 | fi |
166 | 165 | ||
167 | scripts/config/mconf: scripts/config/Makefile | 166 | scripts/config/mconf: scripts/config/Makefile |
168 | $(Q)$(MAKE) -C scripts/config ncurses conf mconf | 167 | $(Q)$(MAKE) -C scripts/config ncurses conf mconf |
169 | -@if [ ! -f .config ] ; then \ | 168 | -@if [ ! -f .config ] ; then \ |
170 | cp $(CONFIG_DEFCONFIG) .config; \ | 169 | touch .config; \ |
171 | fi | 170 | fi |
172 | 171 | ||
173 | menuconfig: scripts/config/mconf | 172 | menuconfig: scripts/config/mconf |
@@ -196,7 +195,7 @@ allnoconfig: scripts/config/conf | |||
196 | 195 | ||
197 | defconfig: scripts/config/conf | 196 | defconfig: scripts/config/conf |
198 | @./scripts/config/conf -y $(CONFIG_CONFIG_IN) | 197 | @./scripts/config/conf -y $(CONFIG_CONFIG_IN) |
199 | sed -i -r -e "s/^(USING_CROSS_COMPILER|CONFIG_(DEBUG.*|STATIC|SELINUX|BUILD_(AT_ONCE|LIBBUSYBOX)|FEATURE_(DEVFS|FULL_LIBBUSYBOX|SHARED_BUSYBOX|MTAB_SUPPORT|CLEAN_UP|UDHCP_DEBUG)))=.*/# \1 is not set/" .config | 198 | sed -i -r -e "s/^(USING_CROSS_COMPILER|CONFIG_(DEBUG.*|STATIC|SELINUX|BUILD_(AT_ONCE|LIBBUSYBOX)|FEATURE_(DEVFS|FULL_LIBBUSYBOX|SHARED_BUSYBOX|MTAB_SUPPORT|CLEAN_UP|UDHCP_DEBUG)|INSTALL_NO_USR))=.*/# \1 is not set/" .config |
200 | @./scripts/config/conf -o $(CONFIG_CONFIG_IN) | 199 | @./scripts/config/conf -o $(CONFIG_CONFIG_IN) |
201 | 200 | ||
202 | 201 | ||