diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/poky-export-rootfs | 14 | ||||
-rwxr-xr-x | scripts/poky-extract-sdk | 2 | ||||
-rwxr-xr-x | scripts/poky-find-native-sysroot | 14 | ||||
-rwxr-xr-x | scripts/poky-setup-rpmrepo | 8 | ||||
-rwxr-xr-x | scripts/runqemu | 8 | ||||
-rwxr-xr-x | scripts/runqemu-internal | 8 |
6 files changed, 27 insertions, 27 deletions
diff --git a/scripts/poky-export-rootfs b/scripts/poky-export-rootfs index 3ab0597c9a..764d19a823 100755 --- a/scripts/poky-export-rootfs +++ b/scripts/poky-export-rootfs | |||
@@ -46,8 +46,8 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then | |||
46 | fi | 46 | fi |
47 | . $SYSROOT_SETUP_SCRIPT | 47 | . $SYSROOT_SETUP_SCRIPT |
48 | 48 | ||
49 | if [ ! -e "$POKY_NATIVE_SYSROOT/usr/sbin/rpc.mountd" ]; then | 49 | if [ ! -e "$OECORE_NATIVE_SYSROOT/usr/sbin/rpc.mountd" ]; then |
50 | echo "Error: Unable to find rpc.mountd binary in $POKY_NATIVE_SYSROOT/usr/sbin/" | 50 | echo "Error: Unable to find rpc.mountd binary in $OECORE_NATIVE_SYSROOT/usr/sbin/" |
51 | 51 | ||
52 | if [ "x$POKY_DISTRO_VERSION" = "x" ]; then | 52 | if [ "x$POKY_DISTRO_VERSION" = "x" ]; then |
53 | echo "Have you run 'bitbake meta-ide-support'?" | 53 | echo "Have you run 'bitbake meta-ide-support'?" |
@@ -67,7 +67,7 @@ RMTAB=~/.poky-sdk/rmtab$NFS_INSTANCE | |||
67 | NFSPID=~/.poky-sdk/nfs$NFS_INSTANCE.pid | 67 | NFSPID=~/.poky-sdk/nfs$NFS_INSTANCE.pid |
68 | MOUNTPID=~/.poky-sdk/mount$NFS_INSTANCE.pid | 68 | MOUNTPID=~/.poky-sdk/mount$NFS_INSTANCE.pid |
69 | 69 | ||
70 | PSEUDO_OPTS="-P $POKY_NATIVE_SYSROOT/usr" | 70 | PSEUDO_OPTS="-P $OECORE_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 | ||
@@ -99,8 +99,8 @@ fi | |||
99 | case "$1" in | 99 | case "$1" in |
100 | start) | 100 | start) |
101 | echo "Starting User Mode rpc.mountd" | 101 | echo "Starting User Mode rpc.mountd" |
102 | echo " $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.mountd $MOUNTD_OPTS" | 102 | echo " $PSEUDO $PSEUDO_OPTS $OECORE_NATIVE_SYSROOT/usr/sbin/rpc.mountd $MOUNTD_OPTS" |
103 | $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.mountd $MOUNTD_OPTS | 103 | $PSEUDO $PSEUDO_OPTS $OECORE_NATIVE_SYSROOT/usr/sbin/rpc.mountd $MOUNTD_OPTS |
104 | if [ ! $? = 0 ]; then | 104 | if [ ! $? = 0 ]; then |
105 | echo "=====================" | 105 | echo "=====================" |
106 | echo "Error starting MOUNTD" | 106 | echo "Error starting MOUNTD" |
@@ -122,8 +122,8 @@ case "$1" in | |||
122 | exit 1 | 122 | exit 1 |
123 | fi | 123 | fi |
124 | echo "Starting User Mode nfsd" | 124 | echo "Starting User Mode nfsd" |
125 | echo " $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.nfsd $NFSD_OPTS" | 125 | echo " $PSEUDO $PSEUDO_OPTS $OECORE_NATIVE_SYSROOT/usr/sbin/rpc.nfsd $NFSD_OPTS" |
126 | $PSEUDO $PSEUDO_OPTS $POKY_NATIVE_SYSROOT/usr/sbin/rpc.nfsd $NFSD_OPTS | 126 | $PSEUDO $PSEUDO_OPTS $OECORE_NATIVE_SYSROOT/usr/sbin/rpc.nfsd $NFSD_OPTS |
127 | if [ ! $? = 0 ]; then | 127 | if [ ! $? = 0 ]; then |
128 | echo "Error starting nfsd" | 128 | echo "Error starting nfsd" |
129 | exit 1 | 129 | exit 1 |
diff --git a/scripts/poky-extract-sdk b/scripts/poky-extract-sdk index a36d79d31c..ee2682e74a 100755 --- a/scripts/poky-extract-sdk +++ b/scripts/poky-extract-sdk | |||
@@ -36,7 +36,7 @@ if [ -z "$SYSROOT_SETUP_SCRIPT" ]; then | |||
36 | exit 1 | 36 | exit 1 |
37 | fi | 37 | fi |
38 | . $SYSROOT_SETUP_SCRIPT | 38 | . $SYSROOT_SETUP_SCRIPT |
39 | PSEUDO_OPTS="-P $POKY_NATIVE_SYSROOT/usr" | 39 | PSEUDO_OPTS="-P $OECORE_NATIVE_SYSROOT/usr" |
40 | 40 | ||
41 | ROOTFS_TARBALL=$1 | 41 | ROOTFS_TARBALL=$1 |
42 | SDK_ROOTFS_DIR=$2 | 42 | SDK_ROOTFS_DIR=$2 |
diff --git a/scripts/poky-find-native-sysroot b/scripts/poky-find-native-sysroot index 226229421c..d44fd9536e 100755 --- a/scripts/poky-find-native-sysroot +++ b/scripts/poky-find-native-sysroot | |||
@@ -2,7 +2,7 @@ | |||
2 | # | 2 | # |
3 | # Find a native sysroot to use - either from an in-tree Poky build or | 3 | # Find a native sysroot to use - either from an in-tree Poky build or |
4 | # from a toolchain installation. It then ensures the variable | 4 | # from a toolchain installation. It then ensures the variable |
5 | # $POKY_NATIVE_SYSROOT is set to the sysroot's base directory, and sets | 5 | # $OECORE_NATIVE_SYSROOT is set to the sysroot's base directory, and sets |
6 | # $PSEUDO to the path of the pseudo binary. | 6 | # $PSEUDO to the path of the pseudo binary. |
7 | # | 7 | # |
8 | # This script is intended to be run within other scripts by source'ing | 8 | # This script is intended to be run within other scripts by source'ing |
@@ -30,7 +30,7 @@ | |||
30 | # with this program; if not, write to the Free Software Foundation, Inc., | 30 | # with this program; if not, write to the Free Software Foundation, Inc., |
31 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 31 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
32 | 32 | ||
33 | if [ -z "$POKY_NATIVE_SYSROOT" ]; then | 33 | if [ -z "$OECORE_NATIVE_SYSROOT" ]; then |
34 | BITBAKE=`which bitbake` | 34 | BITBAKE=`which bitbake` |
35 | if [ "x$BITBAKE" != "x" ]; then | 35 | if [ "x$BITBAKE" != "x" ]; then |
36 | if [ "$UID" = "0" ]; then | 36 | if [ "$UID" = "0" ]; then |
@@ -40,10 +40,10 @@ if [ -z "$POKY_NATIVE_SYSROOT" ]; then | |||
40 | exit 1 | 40 | exit 1 |
41 | fi | 41 | fi |
42 | touch conf/sanity.conf | 42 | touch conf/sanity.conf |
43 | POKY_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '=' -f2 | cut -d '"' -f2` | 43 | OECORE_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '=' -f2 | cut -d '"' -f2` |
44 | rm -f conf/sanity.conf | 44 | rm -f conf/sanity.conf |
45 | else | 45 | else |
46 | POKY_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '=' -f2 | cut -d '"' -f2` | 46 | OECORE_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '=' -f2 | cut -d '"' -f2` |
47 | fi | 47 | fi |
48 | else | 48 | else |
49 | echo "Error: Unable to locate your native sysroot." | 49 | echo "Error: Unable to locate your native sysroot." |
@@ -56,8 +56,8 @@ if [ -z "$POKY_NATIVE_SYSROOT" ]; then | |||
56 | fi | 56 | fi |
57 | 57 | ||
58 | # Set up pseudo command | 58 | # Set up pseudo command |
59 | if [ ! -e "$POKY_NATIVE_SYSROOT/usr/bin/pseudo" ]; then | 59 | if [ ! -e "$OECORE_NATIVE_SYSROOT/usr/bin/pseudo" ]; then |
60 | echo "Error: Unable to find pseudo binary in $POKY_NATIVE_SYSROOT/usr/bin/" | 60 | echo "Error: Unable to find pseudo binary in $OECORE_NATIVE_SYSROOT/usr/bin/" |
61 | 61 | ||
62 | if [ "x$POKY_DISTRO_VERSION" = "x" ]; then | 62 | if [ "x$POKY_DISTRO_VERSION" = "x" ]; then |
63 | echo "Have you run 'bitbake meta-ide-support'?" | 63 | echo "Have you run 'bitbake meta-ide-support'?" |
@@ -69,4 +69,4 @@ if [ ! -e "$POKY_NATIVE_SYSROOT/usr/bin/pseudo" ]; then | |||
69 | exit 1 | 69 | exit 1 |
70 | fi | 70 | fi |
71 | fi | 71 | fi |
72 | PSEUDO="$POKY_NATIVE_SYSROOT/usr/bin/pseudo" | 72 | PSEUDO="$OECORE_NATIVE_SYSROOT/usr/bin/pseudo" |
diff --git a/scripts/poky-setup-rpmrepo b/scripts/poky-setup-rpmrepo index 0e84ca9ee5..03372b6199 100755 --- a/scripts/poky-setup-rpmrepo +++ b/scripts/poky-setup-rpmrepo | |||
@@ -47,17 +47,17 @@ setup_tmpdir() { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | setup_sysroot() { | 49 | setup_sysroot() { |
50 | # Toolchain installs set up $POKY_NATIVE_SYSROOT in their | 50 | # Toolchain installs set up $OECORE_NATIVE_SYSROOT in their |
51 | # environment script. If that variable isn't set, we're | 51 | # environment script. If that variable isn't set, we're |
52 | # either in an in-tree poky scenario or the environment | 52 | # either in an in-tree poky scenario or the environment |
53 | # script wasn't source'd. | 53 | # script wasn't source'd. |
54 | if [ -z "$POKY_NATIVE_SYSROOT" ]; then | 54 | if [ -z "$OECORE_NATIVE_SYSROOT" ]; then |
55 | setup_tmpdir | 55 | setup_tmpdir |
56 | BUILD_ARCH=`uname -m` | 56 | BUILD_ARCH=`uname -m` |
57 | BUILD_OS=`uname | tr '[A-Z]' '[a-z]'` | 57 | BUILD_OS=`uname | tr '[A-Z]' '[a-z]'` |
58 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" | 58 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" |
59 | 59 | ||
60 | POKY_NATIVE_SYSROOT=$TMPDIR/sysroots/$BUILD_SYS | 60 | OECORE_NATIVE_SYSROOT=$TMPDIR/sysroots/$BUILD_SYS |
61 | fi | 61 | fi |
62 | } | 62 | } |
63 | 63 | ||
@@ -76,7 +76,7 @@ if [ ! -d "$RPM_DIR" ]; then | |||
76 | exit 1 | 76 | exit 1 |
77 | fi | 77 | fi |
78 | 78 | ||
79 | CREATEREPO=$POKY_NATIVE_SYSROOT/usr/bin/createrepo | 79 | CREATEREPO=$OECORE_NATIVE_SYSROOT/usr/bin/createrepo |
80 | if [ ! -e "$CREATEREPO" ]; then | 80 | if [ ! -e "$CREATEREPO" ]; then |
81 | echo "Error: can't find createrepo binary" | 81 | echo "Error: can't find createrepo binary" |
82 | echo "please run bitbake createrepo-native first" | 82 | echo "please run bitbake createrepo-native first" |
diff --git a/scripts/runqemu b/scripts/runqemu index 894a296e1c..11b8c6e45c 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -280,17 +280,17 @@ setup_tmpdir() { | |||
280 | } | 280 | } |
281 | 281 | ||
282 | setup_sysroot() { | 282 | setup_sysroot() { |
283 | # Toolchain installs set up $POKY_NATIVE_SYSROOT in their | 283 | # Toolchain installs set up $OECORE_NATIVE_SYSROOT in their |
284 | # environment script. If that variable isn't set, we're | 284 | # environment script. If that variable isn't set, we're |
285 | # either in an in-tree poky scenario or the environment | 285 | # either in an in-tree poky scenario or the environment |
286 | # script wasn't source'd. | 286 | # script wasn't source'd. |
287 | if [ -z "$POKY_NATIVE_SYSROOT" ]; then | 287 | if [ -z "$OECORE_NATIVE_SYSROOT" ]; then |
288 | setup_tmpdir | 288 | setup_tmpdir |
289 | BUILD_ARCH=`uname -m` | 289 | BUILD_ARCH=`uname -m` |
290 | BUILD_OS=`uname | tr '[A-Z]' '[a-z]'` | 290 | BUILD_OS=`uname | tr '[A-Z]' '[a-z]'` |
291 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" | 291 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" |
292 | 292 | ||
293 | POKY_NATIVE_SYSROOT=$TMPDIR/sysroots/$BUILD_SYS | 293 | OECORE_NATIVE_SYSROOT=$TMPDIR/sysroots/$BUILD_SYS |
294 | fi | 294 | fi |
295 | } | 295 | } |
296 | 296 | ||
@@ -380,7 +380,7 @@ echo "ROOTFS: [$ROOTFS]" | |||
380 | echo "FSTYPE: [$FSTYPE]" | 380 | echo "FSTYPE: [$FSTYPE]" |
381 | 381 | ||
382 | setup_sysroot | 382 | setup_sysroot |
383 | # POKY_NATIVE_SYSROOT is now set for all cases | 383 | # OECORE_NATIVE_SYSROOT is now set for all cases |
384 | 384 | ||
385 | # We can't run without a libGL.so | 385 | # We can't run without a libGL.so |
386 | libgl='no' | 386 | libgl='no' |
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 206e1cfe8a..64374f2076 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -161,10 +161,10 @@ if [ "$TAP" = "" ]; then | |||
161 | 161 | ||
162 | GROUPID=`id -g` | 162 | GROUPID=`id -g` |
163 | echo "Setting up tap interface under sudo" | 163 | echo "Setting up tap interface under sudo" |
164 | tap=`sudo $QEMUIFUP $GROUPID $POKY_NATIVE_SYSROOT` | 164 | tap=`sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT` |
165 | if [ $? -ne 0 ]; then | 165 | if [ $? -ne 0 ]; then |
166 | # Re-run standalone to see verbose errors | 166 | # Re-run standalone to see verbose errors |
167 | sudo $QEMUIFUP $GROUPID $POKY_NATIVE_SYSROOT | 167 | sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT |
168 | return | 168 | return |
169 | fi | 169 | fi |
170 | LOCKFILE="$LOCKDIR/$tap" | 170 | LOCKFILE="$LOCKDIR/$tap" |
@@ -179,7 +179,7 @@ fi | |||
179 | 179 | ||
180 | cleanup() { | 180 | cleanup() { |
181 | if [ ! -e "$NOSUDO_FLAG" ]; then | 181 | if [ ! -e "$NOSUDO_FLAG" ]; then |
182 | sudo $QEMUIFDOWN $TAP $POKY_NATIVE_SYSROOT | 182 | sudo $QEMUIFDOWN $TAP $OECORE_NATIVE_SYSROOT |
183 | fi | 183 | fi |
184 | echo "Releasing lockfile of preconfigured tap device '$TAP'" | 184 | echo "Releasing lockfile of preconfigured tap device '$TAP'" |
185 | release_lock $LOCKFILE | 185 | release_lock $LOCKFILE |
@@ -416,7 +416,7 @@ if [ "x$QEMUOPTIONS" = "x" ]; then | |||
416 | return | 416 | return |
417 | fi | 417 | fi |
418 | 418 | ||
419 | PATH=$CROSSPATH:$POKY_NATIVE_SYSROOT/usr/bin:$PATH | 419 | PATH=$CROSSPATH:$OECORE_NATIVE_SYSROOT/usr/bin:$PATH |
420 | 420 | ||
421 | QEMUBIN=`which $QEMU` | 421 | QEMUBIN=`which $QEMU` |
422 | if [ ! -x "$QEMUBIN" ]; then | 422 | if [ ! -x "$QEMUBIN" ]; then |