aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/Makefile.in7
-rw-r--r--applets/applets.c2
-rw-r--r--applets/busybox.c2
-rwxr-xr-xapplets/install.sh19
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/
10endif 10endif
11srcdir=$(top_srcdir)/applets 11srcdir=$(top_srcdir)/applets
12 12
13APPLET_SRC:=applets.c busybox.c 13APPLET_SRC:= $(patsubst %,$(srcdir)/%,applets.c busybox.c)
14APPLET_OBJ:= $(patsubst %.c,$(APPLETS_DIR)%.o, $(APPLET_SRC)) 14APPLET_OBJ:= $(patsubst $(srcdir)/%.c,$(APPLETS_DIR)%.o, $(APPLET_SRC))
15
16APPLET_SRC-y+=$(APPLET_SRC)
17APPLET_SRC-a+=$(APPLET_SRC)
15 18
16libraries-y+=$(APPLETS_DIR)$(APPLETS_AR) 19libraries-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
14const char *bb_applet_name; 14const 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 @@
3export LC_ALL=POSIX 3export LC_ALL=POSIX
4export LC_CTYPE=POSIX 4export LC_CTYPE=POSIX
5 5
6prefix=$1 6prefix=${1}
7if [ "$prefix" = "" ]; then 7if [ -z "$prefix" ]; then
8 echo "No installation directory, aborting." 8 echo "No installation directory, aborting."
9 exit 1; 9 exit 1;
10fi 10fi
@@ -16,7 +16,22 @@ case "$2" in
16 *) echo "Unknown install option: $2"; exit 1;; 16 *) echo "Unknown install option: $2"; exit 1;;
17esac 17esac
18 18
19if [ "$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
34fi
20rm -f $prefix/bin/busybox || exit 1 35rm -f $prefix/bin/busybox || exit 1
21mkdir -p $prefix/bin || exit 1 36mkdir -p $prefix/bin || exit 1
22install -m 755 busybox $prefix/bin/busybox || exit 1 37install -m 755 busybox $prefix/bin/busybox || exit 1