diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 4 | ||||
-rwxr-xr-x | applets/busybox.mkll | 3 | ||||
-rwxr-xr-x | applets/busybox.sh | 11 |
3 files changed, 11 insertions, 7 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index 7582647d5..ee745e73e 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -4,10 +4,6 @@ | |||
4 | #include <string.h> | 4 | #include <string.h> |
5 | #include <errno.h> | 5 | #include <errno.h> |
6 | 6 | ||
7 | #ifndef BB_INIT | ||
8 | #undef BB_FEATURE_LINUXRC | ||
9 | #endif | ||
10 | |||
11 | static int been_there_done_that = 0; | 7 | static int been_there_done_that = 0; |
12 | 8 | ||
13 | /* It has been alledged that doing such things can | 9 | /* It has been alledged that doing such things can |
diff --git a/applets/busybox.mkll b/applets/busybox.mkll index fa1bff209..90f28e8b7 100755 --- a/applets/busybox.mkll +++ b/applets/busybox.mkll | |||
@@ -4,7 +4,8 @@ | |||
4 | DF="busybox.def.h" | 4 | DF="busybox.def.h" |
5 | MF="busybox.c" | 5 | MF="busybox.c" |
6 | 6 | ||
7 | LIST="$(sed -n '/^#define/{s/^#define BB_FEATURE_.*//g;s/^#define //p;}' $DF)" | 7 | #LIST="$(sed -n '/^#define/{s/^#define BB_FEATURE_.*//g;s/^#define //p;}' $DF)" |
8 | LIST="$(cpp $DF -dM | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1/gp;' | sort)" | ||
8 | 9 | ||
9 | for def in ${LIST}; do | 10 | for def in ${LIST}; do |
10 | i=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*\(_BB_DIR_[A-Z_]*\).*$/\2\/\1/gp; }' $MF` | 11 | i=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*\(_BB_DIR_[A-Z_]*\).*$/\2\/\1/gp; }' $MF` |
diff --git a/applets/busybox.sh b/applets/busybox.sh index 304ac87e7..c4e241f84 100755 --- a/applets/busybox.sh +++ b/applets/busybox.sh | |||
@@ -1,3 +1,10 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | sed -n -e 's/^#define.*BB_FEATURE.*$//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;' \ | 2 | |
3 | -e '/^#define/{s/.*bb_//;s/$/.o/p;}' busybox.def.h | 3 | # I added in the extra "ls" so only source files that |
4 | # actually exist will show up in the compile list. | ||
5 | ls -1 ` \ | ||
6 | cpp busybox.def.h -dM | \ | ||
7 | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ | ||
8 | | tr [:upper:] [:lower:] | sort | ||
9 | ` 2>/dev/null | sed -e 's/\.c$/\.o/g' | ||
10 | |||