Mercurial > hg > aboriginal
annotate more/native-build-from-build.sh @ 1524:60ef4cdee782
Oops, forgot to check in patch removed by busybox upgrade.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 12 May 2012 21:35:58 -0500 |
parents | 6173bb6f3b2c |
children | b89324905ca2 |
rev | line source |
---|---|
1193
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Run native build out of build directory, using host-tools.sh if |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 # available. |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 PATH="$(pwd)/build/host:$PATH" |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 X=$(readlink -f "$2" 2>/dev/null) |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 if [ -z "$X" ] |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 then |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 echo "No control image $2" >&2 |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 exit 1 |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 fi |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 |
6173bb6f3b2c
Three convenience scripts to bounce off build/system-image-$ARCH and run stuff
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 cd build/system-image-"$1" && ./native-build.sh "$X" |