diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-09 19:47:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-09 19:47:38 +0000 |
commit | da8f43fd34d59a83ee8314dae5850db95ac1bdad (patch) | |
tree | fb6e0cd8e8b8fd7341b9a3ceb3970580eed0867c /Makefile.custom | |
parent | ca3c981c07ade7f8fd50ba4bb452a2fadaddc326 (diff) | |
download | busybox-w32-da8f43fd34d59a83ee8314dae5850db95ac1bdad.tar.gz busybox-w32-da8f43fd34d59a83ee8314dae5850db95ac1bdad.tar.bz2 busybox-w32-da8f43fd34d59a83ee8314dae5850db95ac1bdad.zip |
build system: fix for non-i386 builds
Diffstat (limited to 'Makefile.custom')
-rw-r--r-- | Makefile.custom | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/Makefile.custom b/Makefile.custom index c0984e17a..1733232e0 100644 --- a/Makefile.custom +++ b/Makefile.custom | |||
@@ -1,30 +1,6 @@ | |||
1 | ### # defconfig is allyesconfig minus any features that are specialized enough | 1 | # ========================================================================== |
2 | ### # or cause enough behavior change that the user really should switch them on | 2 | # Build system |
3 | ### # manually if that's what they want. Sort of "maximum sane config". | 3 | # ========================================================================== |
4 | |||
5 | ### defconfig: scripts/config/conf | ||
6 | ### @./scripts/config/conf -y $(CONFIG_CONFIG_IN) > /dev/null | ||
7 | ### @$(SED) -i -r -e "s/^(CONFIG_(DEBUG.*|STATIC|SELINUX|NITPICK|BUILD_(AT_ONCE|LIBBUSYBOX)|FEATURE_(DEVFS|FULL_LIBBUSYBOX|SHARED_BUSYBOX|MTAB_SUPPORT|CLEAN_UP|UDHCP_DEBUG)|INSTALL_NO_USR))=.*/# \1 is not set/" .config | ||
8 | ### @./scripts/config/conf -o $(CONFIG_CONFIG_IN) > /dev/null | ||
9 | |||
10 | ### allbareconfig: scripts/config/conf | ||
11 | ### @./scripts/config/conf -y $(CONFIG_CONFIG_IN) > /dev/null | ||
12 | ### @$(SED) -i -r -e "s/^(CONFIG_(DEBUG|STATIC|SELINUX|DEVFSD|NC_GAPING_SECURITY_HOLE|BUILD_AT_ONCE)).*/# \1 is not set/" .config | ||
13 | ### @$(SED) -i -e "/FEATURE/s/=.*//;/^[^#]/s/.*FEATURE.*/# \0 is not set/;" .config | ||
14 | ### @echo "CONFIG_FEATURE_BUFFERS_GO_ON_STACK=y" >> .config | ||
15 | ### @yes n | ./scripts/config/conf -o $(CONFIG_CONFIG_IN) > /dev/null | ||
16 | |||
17 | ### hosttools: | ||
18 | ### $(Q)cp .config .config.bak || noold=yea | ||
19 | ### $(Q)$(MAKE) CC="$(HOSTCC)" CFLAGS="$(HOSTCFLAGS) $(INCS)" allnoconfig | ||
20 | ### $(Q)mv .config .config.in | ||
21 | ### $(Q)(grep -v CONFIG_SED .config.in ; \ | ||
22 | ### echo "CONFIG_SED=y" ; ) > .config | ||
23 | ### $(Q)$(MAKE) CC="$(HOSTCC)" CFLAGS="$(HOSTCFLAGS) $(INCS)" oldconfig include/bb_config.h | ||
24 | ### $(Q)$(MAKE) CC="$(HOSTCC)" CFLAGS="$(HOSTCFLAGS) $(INCS)" busybox | ||
25 | ### $(Q)[ -f .config.bak ] && mv .config.bak .config || rm .config | ||
26 | ### mv busybox sed | ||
27 | ### @echo "Now do: $(MAKE) SED=$(objtree)/sed <target>" | ||
28 | 4 | ||
29 | %.bflt: %_unstripped | 5 | %.bflt: %_unstripped |
30 | $(CROSS_COMPILE)elf2flt $(ELF2FLTFLAGS) $< -o $@ | 6 | $(CROSS_COMPILE)elf2flt $(ELF2FLTFLAGS) $< -o $@ |