comparison simple-root-filesystem.sh @ 1676:0f4499211cfa

Move hello.c into /src in the root filesystem so the instructions in the README to try building it aren't wrong.
author Rob Landley <rob@landley.net>
date Sun, 17 Aug 2014 18:12:50 -0500
parents e2f722cc97a6
children b871f0e7b837
comparison
equal deleted inserted replaced
1675:a87931846137 1676:0f4499211cfa
57 build_section toybox 57 build_section toybox
58 58
59 # Put statically and dynamically linked hello world programs on there for 59 # Put statically and dynamically linked hello world programs on there for
60 # test purposes. 60 # test purposes.
61 61
62 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS \ 62 "${ARCH}-cc" "${SOURCES}/root-filesystem/src/hello.c" -Os $CFLAGS \
63 -o "$STAGE_USR/bin/hello-dynamic" || dienow 63 -o "$STAGE_USR/bin/hello-dynamic" || dienow
64 64
65 if [ "$BUILD_STATIC" != none ] 65 if [ "$BUILD_STATIC" != none ]
66 then 66 then
67 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -static \ 67 "${ARCH}-cc" "${SOURCES}/root-filesystem/src/hello.c" -Os $CFLAGS -static \
68 -o "$STAGE_USR/bin/hello-static" || dienow 68 -o "$STAGE_USR/bin/hello-static" || dienow
69 fi 69 fi
70 70
71 # Debug wrapper for use with /usr/src/record-commands.sh 71 # Debug wrapper for use with /usr/src/record-commands.sh
72 72