diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/Makefile.in | 7 | ||||
-rw-r--r-- | applets/applets.c | 2 | ||||
-rw-r--r-- | applets/busybox.c | 2 | ||||
-rwxr-xr-x | applets/install.sh | 19 |
4 files changed, 24 insertions, 6 deletions
diff --git a/applets/Makefile.in b/applets/Makefile.in index 511652a93..80b6da0b1 100644 --- a/applets/Makefile.in +++ b/applets/Makefile.in | |||
@@ -10,8 +10,11 @@ APPLETS_DIR:=$(top_builddir)/applets/ | |||
10 | endif | 10 | endif |
11 | srcdir=$(top_srcdir)/applets | 11 | srcdir=$(top_srcdir)/applets |
12 | 12 | ||
13 | APPLET_SRC:=applets.c busybox.c | 13 | APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c) |
14 | APPLET_OBJ:= $(patsubst %.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) | 14 | APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) |
15 | |||
16 | APPLET_SRC-y+=$(APPLET_SRC) | ||
17 | APPLET_SRC-a+=$(APPLET_SRC) | ||
15 | 18 | ||
16 | libraries-y+=$(APPLETS_DIR)$(APPLETS_AR) | 19 | libraries-y+=$(APPLETS_DIR)$(APPLETS_AR) |
17 | 20 | ||
diff --git a/applets/applets.c b/applets/applets.c index dde75f236..de1a871e0 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -265,7 +265,7 @@ static void parse_config_file(void) | |||
265 | } | 265 | } |
266 | 266 | ||
267 | /* Now get the the user/group info. */ | 267 | /* Now get the the user/group info. */ |
268 | 268 | ||
269 | s = (char *) bb_skip_whitespace(e); | 269 | s = (char *) bb_skip_whitespace(e); |
270 | 270 | ||
271 | /* Note: We require whitespace between the mode and the | 271 | /* Note: We require whitespace between the mode and the |
diff --git a/applets/busybox.c b/applets/busybox.c index 90ea2bdce..3d7a0fd0b 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #define setlocale(x,y) | 11 | #define setlocale(x,y) |
12 | #endif | 12 | #endif |
13 | 13 | ||
14 | const char *bb_applet_name; | 14 | const char *bb_applet_name __attribute__((externally_visible)); |
15 | 15 | ||
16 | #ifdef CONFIG_FEATURE_INSTALLER | 16 | #ifdef CONFIG_FEATURE_INSTALLER |
17 | /* | 17 | /* |
diff --git a/applets/install.sh b/applets/install.sh index 2fcd2ae6e..cc6c1fa49 100755 --- a/applets/install.sh +++ b/applets/install.sh | |||
@@ -3,8 +3,8 @@ | |||
3 | export LC_ALL=POSIX | 3 | export LC_ALL=POSIX |
4 | export LC_CTYPE=POSIX | 4 | export LC_CTYPE=POSIX |
5 | 5 | ||
6 | prefix=$1 | 6 | prefix=${1} |
7 | if [ "$prefix" = "" ]; then | 7 | if [ -z "$prefix" ]; then |
8 | echo "No installation directory, aborting." | 8 | echo "No installation directory, aborting." |
9 | exit 1; | 9 | exit 1; |
10 | fi | 10 | fi |
@@ -16,7 +16,22 @@ case "$2" in | |||
16 | *) echo "Unknown install option: $2"; exit 1;; | 16 | *) echo "Unknown install option: $2"; exit 1;; |
17 | esac | 17 | esac |
18 | 18 | ||
19 | if [ "$DO_INSTALL_LIBS" != "n" ]; then | ||
20 | # get the target dir for the libs | ||
21 | # This is an incomplete/incorrect list for now | ||
22 | case $(uname -m) in | ||
23 | x86_64|ppc64*|sparc64*|ia64*|hppa*64*) libdir=/lib64 ;; | ||
24 | *) libdir=/lib ;; | ||
25 | esac | ||
19 | 26 | ||
27 | mkdir -p $prefix/$libdir || exit 1 | ||
28 | for i in $DO_INSTALL_LIBS; do | ||
29 | rm -f $prefix/$libdir/$i || exit 1 | ||
30 | if [ -f $i ]; then | ||
31 | install -m 644 $i $prefix/$libdir/ || exit 1 | ||
32 | fi | ||
33 | done | ||
34 | fi | ||
20 | rm -f $prefix/bin/busybox || exit 1 | 35 | rm -f $prefix/bin/busybox || exit 1 |
21 | mkdir -p $prefix/bin || exit 1 | 36 | mkdir -p $prefix/bin || exit 1 |
22 | install -m 755 busybox $prefix/bin/busybox || exit 1 | 37 | install -m 755 busybox $prefix/bin/busybox || exit 1 |