diff options
| author | Joshua Lock <josh@linux.intel.com> | 2010-09-03 18:34:24 +0100 |
|---|---|---|
| committer | Joshua Lock <josh@linux.intel.com> | 2010-09-07 11:22:54 +0100 |
| commit | 9b800fe261650e4300795ce9762422d93cd31251 (patch) | |
| tree | eee1bd6e1909a46dd5b5656b73a56942fdd2aa94 /scripts/poky-export-rootfs | |
| parent | c97f3a5df4f498ec663d0bde88ed2652dd4db181 (diff) | |
| download | poky-9b800fe261650e4300795ce9762422d93cd31251.tar.gz | |
scripts: use the exported POKY_NATIVE_SYSROOT variable
Rather than trying to determine things through guess-work use the newly
exported variables to determine where the native binaries reside and
whether we are running in a build directory or not.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts/poky-export-rootfs')
| -rwxr-xr-x | scripts/poky-export-rootfs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/poky-export-rootfs b/scripts/poky-export-rootfs index fd9018a9e8..ef527dc058 100755 --- a/scripts/poky-export-rootfs +++ b/scripts/poky-export-rootfs | |||
| @@ -46,10 +46,10 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then | |||
| 46 | fi | 46 | fi |
| 47 | . $SYSROOT_SETUP_SCRIPT | 47 | . $SYSROOT_SETUP_SCRIPT |
| 48 | 48 | ||
| 49 | if [ ! -e "$NATIVE_SYSROOT_DIR/usr/sbin/rpc.mountd" ]; then | 49 | if [ ! -e "$POKY_NATIVE_SYSROOT/usr/sbin/rpc.mountd" ]; then |
| 50 | echo "Error: Unable to find rpc.mountd binary in $NATIVE_SYSROOT_DIR/usr/sbin/" | 50 | echo "Error: Unable to find rpc.mountd binary in $POKY_NATIVE_SYSROOT/usr/sbin/" |
| 51 | 51 | ||
| 52 | if [ "$SYSROOT_MODE" = "in-tree" ]; then | 52 | if [ "x$POKY_DISTRO_VERSION" = "x" ]; then |
| 53 | echo "Have you run 'bitbake unfs-server-native'?" | 53 | echo "Have you run 'bitbake unfs-server-native'?" |
| 54 | else | 54 | else |
| 55 | echo "This shouldn't happen - something is missing from your toolchain installation" | 55 | echo "This shouldn't happen - something is missing from your toolchain installation" |
| @@ -67,7 +67,7 @@ RMTAB=~/.poky-sdk/rmtab$TARGET_VIRT_INSTANCE | |||
| 67 | NFSPID=~/.poky-sdk/nfs$TARGET_VIRT_INSTANCE.pid | 67 | NFSPID=~/.poky-sdk/nfs$TARGET_VIRT_INSTANCE.pid |
| 68 | MOUNTPID=~/.poky-sdk/mount$TARGET_VIRT_INSTANCE.pid | 68 | MOUNTPID=~/.poky-sdk/mount$TARGET_VIRT_INSTANCE.pid |
| 69 | 69 | ||
| 70 | PSEUDO_OPTS="-P $NATIVE_SYSROOT_DIR/usr" | 70 | PSEUDO_OPTS="-P $POKY_NATIVE_SYSROOT/usr" |
| 71 | PSEUDO_LOCALSTATEDIR="$NFS_EXPORT_DIR/var/pseudo" | 71 | PSEUDO_LOCALSTATEDIR="$NFS_EXPORT_DIR/var/pseudo" |
| 72 | export PSEUDO_LOCALSTATEDIR | 72 | export PSEUDO_LOCALSTATEDIR |
| 73 | 73 | ||
| @@ -100,8 +100,8 @@ fi | |||
| 100 | case "$1" in | 100 | case "$1" in |
| 101 | start) | 101 | start) |
| 102 | echo "Starting User Mode rpc.mountd" | 102 | echo "Starting User Mode rpc.mountd" |
| 103 | echo " $PSEUDO $PSEUDO_OPTS $NATIVE_SYSROOT_DIR/usr/sbin/rpc.mountd $MOUNTD_OPTS" | 103 | echo " $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.mountd $MOUNTD_OPTS" |
| 104 | $PSEUDO $PSEUDO_OPTS $NATIVE_SYSROOT_DIR/usr/sbin/rpc.mountd $MOUNTD_OPTS | 104 | $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.mountd $MOUNTD_OPTS |
| 105 | if [ ! $? = 0 ] ; then | 105 | if [ ! $? = 0 ] ; then |
| 106 | echo "=====================" | 106 | echo "=====================" |
| 107 | echo "Error starting MOUNTD" | 107 | echo "Error starting MOUNTD" |
| @@ -123,8 +123,8 @@ case "$1" in | |||
| 123 | exit 1 | 123 | exit 1 |
| 124 | fi | 124 | fi |
| 125 | echo "Starting User Mode nfsd" | 125 | echo "Starting User Mode nfsd" |
| 126 | echo " $PSEUDO $PSEUDO_OPTS $NATIVE_SYSROOT_DIR/usr/sbin/rpc.nfsd $NFSD_OPTS" | 126 | echo " $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.nfsd $NFSD_OPTS" |
| 127 | $PSEUDO $PSEUDO_OPTS $NATIVE_SYSROOT_DIR/usr/sbin/rpc.nfsd $NFSD_OPTS | 127 | $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.nfsd $NFSD_OPTS |
| 128 | if [ ! $? = 0 ] ; then | 128 | if [ ! $? = 0 ] ; then |
| 129 | echo "Error starting nfsd" | 129 | echo "Error starting nfsd" |
| 130 | exit 1 | 130 | exit 1 |
