| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright 2012 The Native Client Authors. All rights reserved. | 2 # Copyright 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
| 5 # | 5 # |
| 6 #@ This script creates the mips trusted SDK. | 6 #@ This script creates the mips trusted SDK. |
| 7 #@ It must be run from the native_client directory. | 7 #@ It must be run from the native_client directory. |
| 8 | 8 |
| 9 # This script is intended to build a mipsel-linux-gnu cross compilation | 9 # This script is intended to build a mipsel-linux-gnu cross compilation |
| 10 # toolchain that runs on x86 linux and generates code for a little-endian, | 10 # toolchain that runs on x86 linux and generates code for a little-endian, |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 | 560 |
| 561 Banner "Building qemu in ${tmpdir}" | 561 Banner "Building qemu in ${tmpdir}" |
| 562 | 562 |
| 563 rm -rf ${tmpdir} | 563 rm -rf ${tmpdir} |
| 564 mkdir ${tmpdir} | 564 mkdir ${tmpdir} |
| 565 cd ${tmpdir} | 565 cd ${tmpdir} |
| 566 | 566 |
| 567 SubBanner "Downloading" | 567 SubBanner "Downloading" |
| 568 wget -c ${DOWNLOAD_QEMU_URL} | 568 wget -c ${DOWNLOAD_QEMU_URL} |
| 569 | 569 |
| 570 SubBanner "Untaring" | 570 SubBanner "Untarring" |
| 571 tar zxf ${tarball} | 571 tar zxf ${tarball} |
| 572 cd qemu-0.12.5 | 572 cd qemu-0.12.5 |
| 573 | 573 SubBanner "Patching" |
| 574 if [ -f "${PATCH_MIPS32}" ]; then | 574 patch -p1 < ${PATCH_MIPS32} |
| 575 SubBanner "Patching" | |
| 576 patch -p1 < ${PATCH_MIPS32} | |
| 577 fi | |
| 578 | 575 |
| 579 echo | 576 echo |
| 580 echo "NOTE: on 64 bit systems you will need to the following 32bit libs:" | 577 echo "NOTE: on 64 bit systems you will need to the following 32bit libs:" |
| 581 echo "lib32z1-dev" | 578 echo "lib32z1-dev" |
| 582 echo | 579 echo |
| 583 | 580 |
| 584 SubBanner "Configuring" | 581 SubBanner "Configuring" |
| 585 env -i PATH=/usr/bin/:/bin \ | 582 env -i PATH=/usr/bin/:/bin \ |
| 586 ./configure \ | 583 ./configure \ |
| 587 --cc=${CC32} \ | 584 --cc=${CC32} \ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 InstallTrustedLinkerScript | 623 InstallTrustedLinkerScript |
| 627 BuildAndInstallQemu | 624 BuildAndInstallQemu |
| 628 CreateTarBall $1 | 625 CreateTarBall $1 |
| 629 | 626 |
| 630 else | 627 else |
| 631 Usage | 628 Usage |
| 632 exit -1 | 629 exit -1 |
| 633 | 630 |
| 634 fi | 631 fi |
| 635 | 632 |
| OLD | NEW |