Mercurial > hg > aboriginal
comparison sources/sections/busybox.build @ 1036:e021bba5e22e
Yank ugly STAGE_DIR adjustment and instead teach busybox/toybox bilds to auto-detect "bin" directory on install. (And while we're at it, don't build hello-dynamic on static-only system.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 12 Apr 2010 00:04:11 -0500 |
parents | fc134a13357e |
children | cb4dbdb7f2cd |
comparison
equal
deleted
inserted
replaced
1035:a3716680a825 | 1036:e021bba5e22e |
---|---|
1 # Build busybox statically by default, but don't statically link against | 1 # Build busybox statically by default, but don't statically link against |
2 # glibc because glibc is buggy and can't combine --static with --gc-sections. | 2 # glibc (during host_tools) build because glibc is buggy and can't combine |
3 # --static with --gc-sections. | |
3 | 4 |
4 # Build busybox | 5 # Build busybox |
5 | 6 |
6 make allyesconfig KCONFIG_ALLCONFIG="${SOURCES}/trimconfig-busybox" && | 7 make allyesconfig KCONFIG_ALLCONFIG="${SOURCES}/trimconfig-busybox" && |
7 cp .config "$WORK"/config-busybox && | 8 cp .config "$WORK"/config-busybox && |
8 LDFLAGS="$LDFLAGS $STATIC_DEFAULT_FLAGS" make -j $CPUS $VERBOSITY $DO_CROSS && | 9 LDFLAGS="$LDFLAGS $STATIC_DEFAULT_FLAGS" make -j $CPUS $VERBOSITY $DO_CROSS && |
9 make busybox.links && | 10 make busybox.links || dienow |
10 cp busybox${SKIP_STRIP:+_unstripped} "${STAGE_DIR}/busybox" || dienow | 11 |
12 [ -d "$STAGE_DIR/bin" ] && INSTDIR="$STAGE_DIR/bin" || INSTDIR="$STAGE_DIR" | |
13 | |
14 cp busybox${SKIP_STRIP:+_unstripped} "$INSTDIR/busybox" || dienow | |
11 | 15 |
12 for i in $(sed 's@.*/@@' busybox.links) | 16 for i in $(sed 's@.*/@@' busybox.links) |
13 do | 17 do |
14 [ ! -f "${STAGE_DIR}/$i" ] && | 18 [ ! -f "INSTDIR/$i" ] && (ln -sf busybox "$INSTDIR/$i" || dienow) |
15 (ln -sf busybox "${STAGE_DIR}/$i" || dienow) | |
16 done | 19 done |