Mercurial > hg > aboriginal
comparison simple-root-filesystem.sh @ 1544:e2f722cc97a6
Make busybox build by default, switch override knob to BUSYBOX=1 to use defconfig busybox, always use toybox for oneit, cleanup/fix record-commands logic.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 06 Sep 2012 05:11:25 -0500 |
parents | e59de35d8437 |
children | 0f4499211cfa |
comparison
equal
deleted
inserted
replaced
1543:ff7f43a0bee0 | 1544:e2f722cc97a6 |
---|---|
52 | 52 |
53 # Build busybox | 53 # Build busybox |
54 | 54 |
55 STAGE_DIR="$STAGE_USR" build_section busybox | 55 STAGE_DIR="$STAGE_USR" build_section busybox |
56 cp "$WORK"/config-busybox "$STAGE_USR"/src || dienow | 56 cp "$WORK"/config-busybox "$STAGE_USR"/src || dienow |
57 | 57 build_section toybox |
58 if [ "$TOYBOX" == toybox ] | |
59 then | |
60 build_section toybox | |
61 fi | |
62 | |
63 # Build the world's simplest init program: spawns one task with a controlling | |
64 # TTY, waits (reaping zombies) until it exits, then shuts down the system. | |
65 | |
66 TEMP= | |
67 [ "$BUILD_STATIC" == all ] && TEMP=--static | |
68 ${ARCH}-cc "$SOURCES/toys/oneit.c" -Os $CFLAGS $TEMP \ | |
69 -o "$STAGE_USR/sbin/oneit" || dienow | |
70 | 58 |
71 # Put statically and dynamically linked hello world programs on there for | 59 # Put statically and dynamically linked hello world programs on there for |
72 # test purposes. | 60 # test purposes. |
73 | 61 |
74 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS \ | 62 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS \ |