diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-07-21 14:55:39 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-21 15:39:53 +0100 |
commit | 971907567cff64e74f21d349d6751dadc8c09827 (patch) | |
tree | e0cfd7ee0ba3091272eca5c5f1b90edffc3653aa /scripts | |
parent | 50629b3746c149b22bdd8664842a4c69abb2b989 (diff) | |
download | poky-971907567cff64e74f21d349d6751dadc8c09827.tar.gz |
Enable build dir outside of the poky directory
You need to first set up the build directory by sourcing the poky build script,
after that builds can be run in that directory so long as bitbake is in $PATH
removing the need to source the init script for each build.
i.e:
$ . poky-init-build-env ~/my-build
$ bitbake some-image
<<later, in a different shell>>
$ cd ~/my-build
$ export PATH=/path/to/bitbake/bin:$PATH
$ bitbake an-image
This patch also removes use of OEROOT in recipes, etc.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/poky-env-internal | 49 | ||||
-rwxr-xr-x | scripts/pstage-scanner | 19 | ||||
-rwxr-xr-x | scripts/qemuimage-tests/sanity/boot | 3 | ||||
-rwxr-xr-x | scripts/qemuimage-tests/sanity/ssh | 2 | ||||
-rwxr-xr-x | scripts/runqemu | 50 |
5 files changed, 78 insertions, 45 deletions
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal index 54b6ee8964..862ce7aec2 100755 --- a/scripts/poky-env-internal +++ b/scripts/poky-env-internal | |||
@@ -19,19 +19,30 @@ | |||
19 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | 20 | ||
21 | 21 | ||
22 | # Change this to the location of this file. | 22 | # scripts/ is a sub-directory of OEROOT, we use readlink to get the full path |
23 | # Also update the locations at the top of conf/local.conf | 23 | SCRIPTPATH=`readlink -f "$BASH_SOURCE"` |
24 | OEROOT="`dirname $SCRIPTPATH`/../" | ||
24 | 25 | ||
25 | OEROOT=`pwd` | ||
26 | if [ "x$BDIR" = "x" ]; then | 26 | if [ "x$BDIR" = "x" ]; then |
27 | if [ "x$1" = "x" ]; then | 27 | if [ "x$1" = "x" ]; then |
28 | BDIR="build" | 28 | BDIR="build" |
29 | else | 29 | else |
30 | BDIR="$1" | 30 | BDIR=`readlink -f "$1"` |
31 | fi | 31 | fi |
32 | fi | ||
33 | if [[ "$BDIR" = /* ]] ; then | ||
34 | BUILDDIR="$BDIR" | ||
35 | else | ||
36 | BUILDDIR="`pwd`/$BDIR" | ||
32 | fi | 37 | fi |
33 | BUILDDIR="$OEROOT/$BDIR/" | ||
34 | unset BDIR | 38 | unset BDIR |
39 | |||
40 | mkdir -p $BUILDDIR/conf | ||
41 | if ! (test -w "$BUILDDIR"); then | ||
42 | echo >&2 "Error: Cannot write to $BUILDDIR, perhaps try sourcing with a writable path? i.e. . poky-init-build-env ~/my-build" | ||
43 | return | ||
44 | fi | ||
45 | |||
35 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" | 46 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" |
36 | PKGDIR="$OEROOT/meta/" | 47 | PKGDIR="$OEROOT/meta/" |
37 | BBPATH="$BITBAKEDIR $PKGDIR" | 48 | BBPATH="$BITBAKEDIR $PKGDIR" |
@@ -51,9 +62,8 @@ do | |||
51 | continue | 62 | continue |
52 | fi | 63 | fi |
53 | if [ -e $OEROOT/$repo/poky-extra-environment ]; then | 64 | if [ -e $OEROOT/$repo/poky-extra-environment ]; then |
54 | . $OEROOT/$repo/poky-extra-environment | 65 | . $OEROOT/$repo/poky-extra-environment |
55 | fi | 66 | fi |
56 | BBPATH=" $BBPATH $OEROOT/$repo" | ||
57 | done | 67 | done |
58 | 68 | ||
59 | BBPATH="$BBPATH $HOME/.oe $HOME/.poky $BUILDDIR" | 69 | BBPATH="$BBPATH $HOME/.oe $HOME/.poky $BUILDDIR" |
@@ -78,12 +88,13 @@ BUILD_SYS="$BUILD_ARCH-$BUILD_OS" | |||
78 | 88 | ||
79 | PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH" | 89 | PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH" |
80 | 90 | ||
81 | cd "$BUILDDIR" | ||
82 | |||
83 | # Remove any symlinks from paths | 91 | # Remove any symlinks from paths |
84 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` | 92 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` |
85 | PKGDIR=`readlink -f "$PKGDIR"` | 93 | PKGDIR=`readlink -f "$PKGDIR"` |
86 | BUILDDIR=`readlink -f "$BUILDDIR"` | 94 | BUILDDIR=`readlink -f "$BUILDDIR"` |
95 | OEROOT=`readlink -f "$OEROOT"` | ||
96 | |||
97 | cd "$BUILDDIR" | ||
87 | 98 | ||
88 | if ! (test -d "$BITBAKEDIR" && test -d "$PKGDIR" && test -d "$BUILDDIR"); then | 99 | if ! (test -d "$BITBAKEDIR" && test -d "$PKGDIR" && test -d "$BUILDDIR"); then |
89 | echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?" | 100 | echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?" |
@@ -91,7 +102,7 @@ if ! (test -d "$BITBAKEDIR" && test -d "$PKGDIR" && test -d "$BUILDDIR"); then | |||
91 | fi | 102 | fi |
92 | 103 | ||
93 | if [ "x" = "x$POKYLOCALCONF" ]; then | 104 | if [ "x" = "x$POKYLOCALCONF" ]; then |
94 | POKYLOCALCONF="$BUILDDIR/conf/local.conf.sample" | 105 | POKYLOCALCONF="$OEROOT/build/conf/local.conf.sample" |
95 | fi | 106 | fi |
96 | if ! (test -r "$BUILDDIR/conf/local.conf"); then | 107 | if ! (test -r "$BUILDDIR/conf/local.conf"); then |
97 | echo "You had no conf/local.conf file. Poky has created this configuration file for you" | 108 | echo "You had no conf/local.conf file. Poky has created this configuration file for you" |
@@ -105,17 +116,19 @@ if ! (test -r "$BUILDDIR/conf/local.conf"); then | |||
105 | fi | 116 | fi |
106 | 117 | ||
107 | if [ "x" = "x$POKYLAYERCONF" ]; then | 118 | if [ "x" = "x$POKYLAYERCONF" ]; then |
108 | POKYLAYERCONF="$BUILDDIR/conf/bblayers.conf.sample" | 119 | POKYLAYERCONF="$OEROOT/build/conf/bblayers.conf.sample" |
109 | fi | 120 | fi |
110 | if ! (test -r "$BUILDDIR/conf/bblayers.conf"); then | 121 | if ! (test -r "$BUILDDIR/conf/bblayers.conf"); then |
111 | cp -f $POKYLAYERCONF $BUILDDIR/conf/bblayers.conf | 122 | # Put the abosolute path to the layers in bblayers.conf so we can run |
123 | # bitbake without the init script after the first run | ||
124 | sed "s|##POKYBASE##|$OEROOT|g" $POKYLAYERCONF > $BUILDDIR/conf/bblayers.conf | ||
112 | fi | 125 | fi |
113 | 126 | ||
114 | # Prevent disturbing a new GIT clone in same console | 127 | # Prevent disturbing a new GIT clone in same console |
115 | unset POKYLOCALCONF | 128 | unset POKYLOCALCONF |
116 | unset POKYLAYERCONF | 129 | unset POKYLAYERCONF |
117 | 130 | ||
118 | export BBPATH OEROOT BUILD_SYS BUILDDIR | 131 | export BBPATH BUILD_SYS BUILDDIR |
119 | 132 | ||
120 | # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make | 133 | # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make |
121 | # install' if set | 134 | # install' if set |
@@ -141,4 +154,4 @@ echo "Common targets are poky-image-minimal, poky-image-sato, meta-toolchain or | |||
141 | echo | 154 | echo |
142 | echo "You can also run generated qemu images with a command like 'runqemu qemux86'" | 155 | echo "You can also run generated qemu images with a command like 'runqemu qemux86'" |
143 | 156 | ||
144 | export BB_ENV_EXTRAWHITE="MACHINE DISTRO POKYMODE POKYLIBC OEROOT http_proxy ftp_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS" | 157 | export BB_ENV_EXTRAWHITE="MACHINE DISTRO POKYMODE POKYLIBC http_proxy ftp_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS" |
diff --git a/scripts/pstage-scanner b/scripts/pstage-scanner index 9234912581..4a27aa5d26 100755 --- a/scripts/pstage-scanner +++ b/scripts/pstage-scanner | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
2 | 2 | ||
3 | ## | 3 | ## |
4 | ## This script will scan all of the packages in ${OEROOT}/pstage (or argv[1]) | 4 | ## This script will scan all of the packages in PSTAGE_DIR (or argv[1]) |
5 | ## in search of packages which install files outside of their native sysroot | 5 | ## in search of packages which install files outside of their native sysroot |
6 | ## | 6 | ## |
7 | 7 | ||
@@ -16,15 +16,24 @@ def main(): | |||
16 | """Generate a list of pstage packages and scan them for badness""" | 16 | """Generate a list of pstage packages and scan them for badness""" |
17 | package_list = [] | 17 | package_list = [] |
18 | 18 | ||
19 | ## First we walk the pstage directory, let's assume we're running from | ||
20 | ## a sibling of pstage (i.e. scripts) if no path defined | ||
21 | try: | 19 | try: |
22 | path = sysv.arg[1] | 20 | path = sysv.arg[1] |
23 | except: | 21 | except: |
24 | path = os.path.join(os.environ.get("OEROOT"), "pstage") | 22 | # Assume pstage is a child of tmp, Poky's default |
23 | tmpdir = None | ||
24 | sub.Popen(["bitbake", "-e"], stdout=sub.PIPE,stderr=sub.PIPE) | ||
25 | err, out = p.communicate() | ||
26 | if (!out): | ||
27 | print("bitbake not in your environment, try pstage-scanner /some/path/to/pstage") | ||
28 | exit | ||
29 | for line in out: | ||
30 | if line.find("PSTAGE_DIR=") != -1: | ||
31 | tmpdir = line.partition("=")[2].strip("\"") | ||
32 | break | ||
25 | 33 | ||
26 | if len(path) < 1 or not os.path.exists(path): | 34 | if len(path) < 1 or not os.path.exists(path): |
27 | path = os.path.join(os.environ.get("OEROOT"), "pstage") | 35 | print ("No path defined and bitbake not in your environment, try pstage-scanner /some/path/to/pstage") |
36 | exit | ||
28 | 37 | ||
29 | global logf | 38 | global logf |
30 | try: | 39 | try: |
diff --git a/scripts/qemuimage-tests/sanity/boot b/scripts/qemuimage-tests/sanity/boot index b4c0094f25..57b204b170 100755 --- a/scripts/qemuimage-tests/sanity/boot +++ b/scripts/qemuimage-tests/sanity/boot | |||
@@ -9,8 +9,7 @@ | |||
9 | # This file is licensed under the GNU General Public License, | 9 | # This file is licensed under the GNU General Public License, |
10 | # Version 2. | 10 | # Version 2. |
11 | # | 11 | # |
12 | 12 | . $POKYBASE/scripts/qemuimage-testlib | |
13 | . $OEROOT/scripts/qemuimage-testlib | ||
14 | 13 | ||
15 | TIMEOUT=120 | 14 | TIMEOUT=120 |
16 | QEMU_IPADDR="192.168.7.2" | 15 | QEMU_IPADDR="192.168.7.2" |
diff --git a/scripts/qemuimage-tests/sanity/ssh b/scripts/qemuimage-tests/sanity/ssh index 7dd895951c..3c7638cc2e 100755 --- a/scripts/qemuimage-tests/sanity/ssh +++ b/scripts/qemuimage-tests/sanity/ssh | |||
@@ -9,7 +9,7 @@ | |||
9 | # Version 2. | 9 | # Version 2. |
10 | # | 10 | # |
11 | 11 | ||
12 | . $OEROOT/scripts/qemuimage-testlib | 12 | . $POKYBASE/scripts/qemuimage-testlib |
13 | 13 | ||
14 | TIMEOUT=360 | 14 | TIMEOUT=360 |
15 | QEMU_IPADDR="192.168.7.2" | 15 | QEMU_IPADDR="192.168.7.2" |
diff --git a/scripts/runqemu b/scripts/runqemu index c7c51ec77a..bb26f8b633 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -19,11 +19,23 @@ | |||
19 | 19 | ||
20 | 20 | ||
21 | if [ "x$BUILDDIR" = "x" ]; then | 21 | if [ "x$BUILDDIR" = "x" ]; then |
22 | echo "You need to source poky-init-build-env before running this script" | 22 | # BUILDDIR unset, try and get TMPDIR from bitbake |
23 | exit 1 | 23 | type -P bitbake &>/dev/null || { |
24 | echo "You either need bitbake in your PATH or to source poky-init-build-env before running this script" >&2; exit 1; } | ||
25 | |||
26 | # we have bitbake in PATH, get TMPDIR from the environment | ||
27 | TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2` | ||
28 | else | ||
29 | TMPDIR=$BUILDDIR/tmp | ||
30 | fi | ||
31 | |||
32 | if ! (test -d "$TMPDIR"); then | ||
33 | echo >&2 "Error: no $TMPDIR directory, please re-run the script from the Poky build directory." | ||
34 | return | ||
24 | fi | 35 | fi |
25 | 36 | ||
26 | INTERNAL_SCRIPT=`which poky-qemu-internal` | 37 | SCRIPTSDIR=`dirname "$0"` |
38 | INTERNAL_SCRIPT=SCRIPTSDIR/poky-qemu-internal` | ||
27 | 39 | ||
28 | if [ "x$1" = "x" ]; then | 40 | if [ "x$1" = "x" ]; then |
29 | echo | 41 | echo |
@@ -67,9 +79,9 @@ fi | |||
67 | 79 | ||
68 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then | 80 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then |
69 | if [ "x$ZIMAGE" = "x" ]; then | 81 | if [ "x$ZIMAGE" = "x" ]; then |
70 | ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin | 82 | ZIMAGE=$TMPDIR/deploy/images/zImage-$MACHINE.bin |
71 | fi | 83 | fi |
72 | CROSSPATH=$BUILDDIR/sysroots/$BUILD_SYS/arm-poky-linux-gnueabi/bin | 84 | CROSSPATH=$TMPDIR/sysroots/$BUILD_SYS/arm-poky-linux-gnueabi/bin |
73 | fi | 85 | fi |
74 | 86 | ||
75 | function findimage { | 87 | function findimage { |
@@ -96,7 +108,7 @@ function findimage { | |||
96 | if [ "$MACHINE" = "qemuarm" ]; then | 108 | if [ "$MACHINE" = "qemuarm" ]; then |
97 | if [ "$TYPE" = "ext3" ]; then | 109 | if [ "$TYPE" = "ext3" ]; then |
98 | if [ "x$HDIMAGE" = "x" ]; then | 110 | if [ "x$HDIMAGE" = "x" ]; then |
99 | T=$BUILDDIR/tmp/deploy/images | 111 | T=$TMPDIR/deploy/images |
100 | findimage $T qemuarm ext3 "poky-image-sdk poky-image-sato poky-image-minimal" | 112 | findimage $T qemuarm ext3 "poky-image-sdk poky-image-sato poky-image-minimal" |
101 | fi | 113 | fi |
102 | fi | 114 | fi |
@@ -104,34 +116,34 @@ fi | |||
104 | 116 | ||
105 | if [ "$MACHINE" = "qemumips" ]; then | 117 | if [ "$MACHINE" = "qemumips" ]; then |
106 | if [ "x$ZIMAGE" = "x" ]; then | 118 | if [ "x$ZIMAGE" = "x" ]; then |
107 | ZIMAGE=$BUILDDIR/tmp/deploy/images/vmlinux-$MACHINE.bin | 119 | ZIMAGE=$TMPDIR/tmp/deploy/images/vmlinux-$MACHINE.bin |
108 | fi | 120 | fi |
109 | if [ "$TYPE" = "ext3" ]; then | 121 | if [ "$TYPE" = "ext3" ]; then |
110 | if [ "x$HDIMAGE" = "x" ]; then | 122 | if [ "x$HDIMAGE" = "x" ]; then |
111 | T=$BUILDDIR/tmp/deploy/images | 123 | T=$TMPDIR/tmp/deploy/images |
112 | findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" | 124 | findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" |
113 | fi | 125 | fi |
114 | fi | 126 | fi |
115 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr | 127 | CROSSPATH=$TMPDIR/tmp/sysroots/$BUILD_SYS/usr |
116 | fi | 128 | fi |
117 | 129 | ||
118 | if [ "$MACHINE" = "qemuppc" ]; then | 130 | if [ "$MACHINE" = "qemuppc" ]; then |
119 | if [ "x$ZIMAGE" = "x" ]; then | 131 | if [ "x$ZIMAGE" = "x" ]; then |
120 | ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin | 132 | ZIMAGE=$TMPDIR/tmp/deploy/images/zImage-$MACHINE.bin |
121 | fi | 133 | fi |
122 | if [ "$TYPE" = "ext3" ]; then | 134 | if [ "$TYPE" = "ext3" ]; then |
123 | if [ "x$HDIMAGE" = "x" ]; then | 135 | if [ "x$HDIMAGE" = "x" ]; then |
124 | T=$BUILDDIR/tmp/deploy/images | 136 | T=$TMPDIR/tmp/deploy/images |
125 | findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" | 137 | findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" |
126 | fi | 138 | fi |
127 | fi | 139 | fi |
128 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr | 140 | CROSSPATH=$TMPDIR/tmp/sysroots/$BUILD_SYS/usr |
129 | fi | 141 | fi |
130 | 142 | ||
131 | if [ "$MACHINE" = "spitz" ]; then | 143 | if [ "$MACHINE" = "spitz" ]; then |
132 | if [ "$TYPE" = "ext3" ]; then | 144 | if [ "$TYPE" = "ext3" ]; then |
133 | if [ "x$HDIMAGE" = "x" ]; then | 145 | if [ "x$HDIMAGE" = "x" ]; then |
134 | HDIMAGE=$BUILDDIR/tmp/deploy/images/poky-image-sato-spitz.ext3 | 146 | HDIMAGE=$TMPDIR/tmp/deploy/images/poky-image-sato-spitz.ext3 |
135 | fi | 147 | fi |
136 | fi | 148 | fi |
137 | fi | 149 | fi |
@@ -139,7 +151,7 @@ fi | |||
139 | if [ "$MACHINE" = "akita" ]; then | 151 | if [ "$MACHINE" = "akita" ]; then |
140 | if [ "$TYPE" = "jffs2" ]; then | 152 | if [ "$TYPE" = "jffs2" ]; then |
141 | if [ "x$HDIMAGE" = "x" ]; then | 153 | if [ "x$HDIMAGE" = "x" ]; then |
142 | HDIMAGE=$BUILDDIR/tmp/deploy/images/poky-image-sato-akita.jffs2 | 154 | HDIMAGE=$TMPDIR/tmp/deploy/images/poky-image-sato-akita.jffs2 |
143 | fi | 155 | fi |
144 | fi | 156 | fi |
145 | fi | 157 | fi |
@@ -147,7 +159,7 @@ fi | |||
147 | if [ "$MACHINE" = "nokia800" ]; then | 159 | if [ "$MACHINE" = "nokia800" ]; then |
148 | if [ "$TYPE" = "jffs2" ]; then | 160 | if [ "$TYPE" = "jffs2" ]; then |
149 | if [ "x$HDIMAGE" = "x" ]; then | 161 | if [ "x$HDIMAGE" = "x" ]; then |
150 | HDIMAGE=$BUILDDIR/tmp/deploy/images/poky-image-sato-nokia800.jffs2 | 162 | HDIMAGE=$TMPDIR/tmp/deploy/images/poky-image-sato-nokia800.jffs2 |
151 | fi | 163 | fi |
152 | fi | 164 | fi |
153 | fi | 165 | fi |
@@ -155,15 +167,15 @@ fi | |||
155 | 167 | ||
156 | if [ "$MACHINE" = "qemux86" ]; then | 168 | if [ "$MACHINE" = "qemux86" ]; then |
157 | if [ "x$ZIMAGE" = "x" ]; then | 169 | if [ "x$ZIMAGE" = "x" ]; then |
158 | ZIMAGE=$BUILDDIR/tmp/deploy/images/bzImage-$MACHINE.bin | 170 | ZIMAGE=$TMPDIR/tmp/deploy/images/bzImage-$MACHINE.bin |
159 | fi | 171 | fi |
160 | if [ "$TYPE" = "ext3" ]; then | 172 | if [ "$TYPE" = "ext3" ]; then |
161 | if [ "x$HDIMAGE" = "x" ]; then | 173 | if [ "x$HDIMAGE" = "x" ]; then |
162 | T=$BUILDDIR/tmp/deploy/images | 174 | T=$TMPDIR/tmp/deploy/images |
163 | findimage $T qemux86 ext3 "moblin-image-sdk moblin-image-netbook poky-image-sdk poky-image-sato poky-image-minimal" | 175 | findimage $T qemux86 ext3 "moblin-image-sdk moblin-image-netbook poky-image-sdk poky-image-sato poky-image-minimal" |
164 | fi | 176 | fi |
165 | fi | 177 | fi |
166 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr | 178 | CROSSPATH=$TMPDIR/tmp/sysroots/$BUILD_SYS/usr |
167 | fi | 179 | fi |
168 | 180 | ||
169 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then | 181 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then |
@@ -182,6 +194,6 @@ if [ ! -e $CROSSPATH/$TARGET_SYS/bin/gcc ]; then | |||
182 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/gcc | 194 | ln -s $CROSSPATH/bin/$TARGET_SYS-gcc $CROSSPATH/$TARGET_SYS/bin/gcc |
183 | fi | 195 | fi |
184 | 196 | ||
185 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$BUILDDIR/tmp/cross/bin | 197 | CROSSPATH=$TMPDIR/tmp/sysroots/$BUILD_SYS/usr/bin:$CROSSPATH:$TMPDIR/tmp/cross/bin |
186 | 198 | ||
187 | . $INTERNAL_SCRIPT | 199 | . $INTERNAL_SCRIPT |