Mercurial > hg > aboriginal
view root-image.sh @ 1677:c11a357ea92d
Second attempt: make dynamic linker match libc in ccwrap.
Building uClibc requires the wrapper, so we can't have the wrapper look for
and _existing_ dynamic linker, so the wrapper script has to check the config.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 24 Aug 2014 22:23:05 -0500 |
parents | 941d2bf65620 |
children |
line wrap: on
line source
#!/bin/bash # Package a root filesystem directory into a filesystem image file source sources/include.sh || exit 1 # Parse sources/targets/$1 load_target "$1" check_for_base_arch || exit 0 # Which directory do we package up? if [ -z "$NATIVE_ROOT" ] then [ -z "$NO_NATIVE_COMPILER" ] && NATIVE_ROOT="$BUILD/root-filesystem-$ARCH" [ -e "$NATIVE_ROOT" ] || NATIVE_ROOT="$BUILD/simple-root-filesystem-$ARCH" fi if [ ! -d "$NATIVE_ROOT" ] then [ -z "$FAIL_QUIET" ] && echo No "$NATIVE_ROOT" >&2 exit 1 fi [ -z "$SYSIMAGE_TYPE" ] && SYSIMAGE_TYPE=squashfs echo "Generating $SYSIMAGE_TYPE root filesystem from $NATIVE_ROOT." SYSIMAGE_TYPE="$SYSIMAGE_TYPE" image_filesystem "$NATIVE_ROOT" "$STAGE_DIR/hda" create_stage_tarball echo Image generation complete.