build system: (try to) get rid of bb_config.h hack
This commit is contained in:
parent
9fa9950784
commit
b79b87a30f
@ -5,7 +5,7 @@
|
|||||||
%.bflt: %_unstripped
|
%.bflt: %_unstripped
|
||||||
$(CROSS_COMPILE)elf2flt $(ELF2FLTFLAGS) $< -o $@
|
$(CROSS_COMPILE)elf2flt $(ELF2FLTFLAGS) $< -o $@
|
||||||
|
|
||||||
busybox.links: $(srctree)/applets/busybox.mkll include/bb_config.h $(srctree)/include/applets.h
|
busybox.links: $(srctree)/applets/busybox.mkll $(srctree)/include/applets.h
|
||||||
$(Q)-$(SHELL) $^ >$@
|
$(Q)-$(SHELL) $^ >$@
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
@ -9,7 +9,7 @@ const char *applet_name;
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "bb_config.h"
|
//Ok to remove? #include "bb_config.h"
|
||||||
#include "usage.h"
|
#include "usage.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
@ -1,151 +0,0 @@
|
|||||||
/* Hack. kbuild will not define needed macros for config symbols
|
|
||||||
* which depend on other symbols, which themself are off.
|
|
||||||
* Provide them here by hand. Need a better idea. */
|
|
||||||
|
|
||||||
/* This is especially bad because it forces rebuild of
|
|
||||||
* everything whenever any of these options change */
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_GUNZIP_UNCOMPRESS
|
|
||||||
#define ENABLE_FEATURE_GUNZIP_UNCOMPRESS 0
|
|
||||||
#define USE_FEATURE_GUNZIP_UNCOMPRESS(...)
|
|
||||||
#define SKIP_FEATURE_GUNZIP_UNCOMPRESS(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_KILLALL5
|
|
||||||
#define ENABLE_KILLALL5 0
|
|
||||||
#define USE_KILLALL5(...)
|
|
||||||
#define SKIP_KILLALL5(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_QUERY_MODULE_INTERFACE
|
|
||||||
#define ENABLE_FEATURE_QUERY_MODULE_INTERFACE 0
|
|
||||||
#define USE_FEATURE_QUERY_MODULE_INTERFACE(...)
|
|
||||||
#define SKIP_FEATURE_QUERY_MODULE_INTERFACE(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_CLEAN_UP
|
|
||||||
#define ENABLE_FEATURE_CLEAN_UP 0
|
|
||||||
#define USE_FEATURE_CLEAN_UP(...)
|
|
||||||
#define SKIP_FEATURE_CLEAN_UP(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_SH_STANDALONE_SHELL
|
|
||||||
#define ENABLE_FEATURE_SH_STANDALONE_SHELL 0
|
|
||||||
#define USE_FEATURE_SH_STANDALONE_SHELL(...)
|
|
||||||
#define SKIP_FEATURE_SH_STANDALONE_SHELL(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_MTAB_SUPPORT
|
|
||||||
#define ENABLE_FEATURE_MTAB_SUPPORT 0
|
|
||||||
#define USE_FEATURE_MTAB_SUPPORT(...)
|
|
||||||
#define SKIP_FEATURE_MTAB_SUPPORT(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_PRESERVE_HARDLINKS
|
|
||||||
#define ENABLE_FEATURE_PRESERVE_HARDLINKS 0
|
|
||||||
#define USE_FEATURE_PRESERVE_HARDLINKS(...)
|
|
||||||
#define SKIP_FEATURE_PRESERVE_HARDLINKS(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_AUTOWIDTH
|
|
||||||
#define ENABLE_FEATURE_AUTOWIDTH 0
|
|
||||||
#define USE_FEATURE_AUTOWIDTH(...)
|
|
||||||
#define SKIP_FEATURE_AUTOWIDTH(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_SUID_CONFIG
|
|
||||||
#define ENABLE_FEATURE_SUID_CONFIG 0
|
|
||||||
#define USE_FEATURE_SUID_CONFIG(...)
|
|
||||||
#define SKIP_FEATURE_SUID_CONFIG(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_APP_DUMPLEASES
|
|
||||||
#define ENABLE_APP_DUMPLEASES 0
|
|
||||||
#define USE_APP_DUMPLEASES(...)
|
|
||||||
#define SKIP_APP_DUMPLEASES(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_E2LABEL
|
|
||||||
#define ENABLE_E2LABEL 0
|
|
||||||
#define USE_E2LABEL(...)
|
|
||||||
#define SKIP_E2LABEL(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_GREP_EGREP_ALIAS
|
|
||||||
#define ENABLE_FEATURE_GREP_EGREP_ALIAS 0
|
|
||||||
#define USE_FEATURE_GREP_EGREP_ALIAS(...)
|
|
||||||
#define SKIP_FEATURE_GREP_EGREP_ALIAS(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_GREP_FGREP_ALIAS
|
|
||||||
#define ENABLE_FEATURE_GREP_FGREP_ALIAS 0
|
|
||||||
#define USE_FEATURE_GREP_FGREP_ALIAS(...)
|
|
||||||
#define SKIP_FEATURE_GREP_FGREP_ALIAS(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FINDFS
|
|
||||||
#define ENABLE_FINDFS 0
|
|
||||||
#define USE_FINDFS(...)
|
|
||||||
#define SKIP_FINDFS(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_IPADDR
|
|
||||||
#define ENABLE_IPADDR 0
|
|
||||||
#define USE_IPADDR(...)
|
|
||||||
#define SKIP_IPADDR(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_IPLINK
|
|
||||||
#define ENABLE_IPLINK 0
|
|
||||||
#define USE_IPLINK(...)
|
|
||||||
#define SKIP_IPLINK(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_IPROUTE
|
|
||||||
|
|
||||||
#define ENABLE_IPROUTE 0
|
|
||||||
#define USE_IPROUTE(...)
|
|
||||||
#define SKIP_IPROUTE(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_IPTUNNEL
|
|
||||||
#define ENABLE_IPTUNNEL 0
|
|
||||||
#define USE_IPTUNNEL(...)
|
|
||||||
#define SKIP_IPTUNNEL(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_KILLALL
|
|
||||||
#define ENABLE_KILLALL 0
|
|
||||||
#define USE_KILLALL(...)
|
|
||||||
#define SKIP_KILLALL(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_KLOGD
|
|
||||||
#define ENABLE_KLOGD 0
|
|
||||||
#define USE_KLOGD(...)
|
|
||||||
#define SKIP_KLOGD(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_FEATURE_INITRD
|
|
||||||
#define ENABLE_FEATURE_INITRD 0
|
|
||||||
#define USE_FEATURE_INITRD(...)
|
|
||||||
#define SKIP_FEATURE_INITRD(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_LOGREAD
|
|
||||||
#define ENABLE_LOGREAD 0
|
|
||||||
#define USE_LOGREAD(...)
|
|
||||||
#define SKIP_LOGREAD(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_PING6
|
|
||||||
#define ENABLE_PING6 0
|
|
||||||
#define USE_PING6(...)
|
|
||||||
#define SKIP_PING6(...) __VA_ARGS__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ENABLE_UNIX2DOS
|
|
||||||
#define ENABLE_UNIX2DOS 0
|
|
||||||
#define USE_UNIX2DOS(...)
|
|
||||||
#define SKIP_UNIX2DOS(...) __VA_ARGS__
|
|
||||||
#endif
|
|
@ -10,7 +10,7 @@
|
|||||||
#ifndef __LIBBUSYBOX_H__
|
#ifndef __LIBBUSYBOX_H__
|
||||||
#define __LIBBUSYBOX_H__ 1
|
#define __LIBBUSYBOX_H__ 1
|
||||||
|
|
||||||
#include "bb_config.h"
|
//Ok to remove? #include "bb_config.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
1788
scripts/bb_mkdep.c
1788
scripts/bb_mkdep.c
File diff suppressed because it is too large
Load Diff
@ -428,8 +428,10 @@ int conf_write(const char *name)
|
|||||||
" */\n", str);
|
" */\n", str);
|
||||||
} else if (!(sym->flags & SYMBOL_CHOICE)) {
|
} else if (!(sym->flags & SYMBOL_CHOICE)) {
|
||||||
sym_calc_value(sym);
|
sym_calc_value(sym);
|
||||||
|
/* bbox: we want to all syms
|
||||||
if (!(sym->flags & SYMBOL_WRITE))
|
if (!(sym->flags & SYMBOL_WRITE))
|
||||||
goto next;
|
goto next;
|
||||||
|
*/
|
||||||
sym->flags &= ~SYMBOL_WRITE;
|
sym->flags &= ~SYMBOL_WRITE;
|
||||||
type = sym->type;
|
type = sym->type;
|
||||||
if (type == S_TRISTATE) {
|
if (type == S_TRISTATE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user