Changeset 61b208f in mainline


Ignore:
Timestamp:
2017-01-22T13:22:55Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a4170d5
Parents:
9185e42
Message:

Drop support for building gem5

  • Move code for downloading the OpenSPARC binaries to

qemu/build-from-scratch.sh.

  • Install the OpenSPARC binaries under /usr/local/opensparc/image

when building QEMU

Location:
contrib
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/qemu/build-from-scratch.sh

    r9185e42 r61b208f  
    3838MD5="17940dce063b6ce450a12e719a6c9c43"
    3939
     40OPENSPARC_TARBALL="OpenSPARCT1_Arch.1.5.tar.bz2"
     41OPENSPARC_URL="http://download.oracle.com/technetwork/systems/opensparc/${OPENSPARC_TARBALL}"
     42
     43ARCHIVE_PREFIX="./S10image"
     44BINARIES="1up-hv.bin 1up-md.bin nvram1 openboot.bin q.bin reset.bin"
     45
     46echo "==== Downloading OpenSPARC archive ===="
     47
     48if [ ! -f ${OPENSPARC_TARBALL} ]
     49then
     50    wget ${OPENSPARC_URL}
     51else
     52    echo "===== OpenSPARC archive already exists, skipping. ====="
     53fi
     54
     55echo "==== 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
     78echo "==== Installing OpenSPARC binaries ===="
     79
     80sudo install -d /usr/local/opensparc/image
     81sudo install -m 0444 binaries/* /usr/local/opensparc/image
     82
     83echo "==== Obtaining QEMU sources ===="
     84
    4085if [ "$1" == "--master" ]; then
    4186        git clone ${REPO} ${BASENAME_MASTER}
     
    55100fi
    56101
     102echo "==== Configuring QEMU ===="
     103
    57104./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,ppc-softmmu,sparc64-softmmu,mips-softmmu,mipsel-softmmu --audio-drv-list=pa
     105
     106echo "==== Building QEMU ===="
     107
    58108make -j 4
     109
     110echo "==== Installing QEMU ===="
     111
    59112sudo make install
     113
Note: See TracChangeset for help on using the changeset viewer.