Mercurial > hg > aboriginal
view sources/sections/toybox.build @ 1133:1ad777637d2d
Migrate oneit out of toybox into sources/toys as a standalone program, and fix it so pid 1 has / as its working directory so we can umount /home if necessary.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 20 Jun 2010 20:32:59 -0500 |
parents | cb4dbdb7f2cd |
children |
line wrap: on
line source
# Build toybox yes "" | make defconfig && CFLAGS="$CFLAGS $STATIC_FLAGS" make $DO_CROSS || dienow # Install into bin subdirectory if it exists [ -d "$STAGE_DIR/bin" ] && INSTDIR="$STAGE_DIR/bin" || INSTDIR="$STAGE_DIR" if [ -z "$USE_TOYBOX" ] then ln -sf toybox "$INSTDIR/patch" && ln -sf toybox "$INSTDIR/netcat" || dienow else make install_flat PREFIX="$INSTDIR" || dienow fi mv toybox${SKIP_STRIP:+_unstripped} "$INSTDIR/toybox"