Changeset 61b208f in mainline
- Timestamp:
- 2017-01-22T13:22:55Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4170d5
- Parents:
- 9185e42
- Location:
- contrib
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/qemu/build-from-scratch.sh
r9185e42 r61b208f 38 38 MD5="17940dce063b6ce450a12e719a6c9c43" 39 39 40 OPENSPARC_TARBALL="OpenSPARCT1_Arch.1.5.tar.bz2" 41 OPENSPARC_URL="http://download.oracle.com/technetwork/systems/opensparc/${OPENSPARC_TARBALL}" 42 43 ARCHIVE_PREFIX="./S10image" 44 BINARIES="1up-hv.bin 1up-md.bin nvram1 openboot.bin q.bin reset.bin" 45 46 echo "==== Downloading OpenSPARC archive ====" 47 48 if [ ! -f ${OPENSPARC_TARBALL} ] 49 then 50 wget ${OPENSPARC_URL} 51 else 52 echo "===== OpenSPARC archive already exists, skipping. =====" 53 fi 54 55 echo "==== Extracting OpenSPARC binaries ====" 56 ( 57 mkdir -p binaries; 58 59 BINLIST="" 60 for b in ${BINARIES}; 61 do 62 if [ ! -f binaries/$b ]; 63 then 64 BINLIST+=${ARCHIVE_PREFIX}/$b" " 65 else 66 echo "===== $b seems to be already extracted, skipping. =====" 67 fi 68 done 69 70 cd binaries 71 72 if [ "${BINLIST}x" != "x" ]; 73 then 74 tar --strip-components=2 -xjf ../${OPENSPARC_TARBALL} ${BINLIST} 75 fi 76 ) 77 78 echo "==== Installing OpenSPARC binaries ====" 79 80 sudo install -d /usr/local/opensparc/image 81 sudo install -m 0444 binaries/* /usr/local/opensparc/image 82 83 echo "==== Obtaining QEMU sources ====" 84 40 85 if [ "$1" == "--master" ]; then 41 86 git clone ${REPO} ${BASENAME_MASTER} … … 55 100 fi 56 101 102 echo "==== Configuring QEMU ====" 103 57 104 ./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,ppc-softmmu,sparc64-softmmu,mips-softmmu,mipsel-softmmu --audio-drv-list=pa 105 106 echo "==== Building QEMU ====" 107 58 108 make -j 4 109 110 echo "==== Installing QEMU ====" 111 59 112 sudo make install 113
Note:
See TracChangeset
for help on using the changeset viewer.