Ignore:
File:
1 edited

Legend:

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

    r051349b r972c428c  
    2929#
    3030
    31 VERSION=6.0.0
     31VERSION=8.0.0
    3232BASENAME=qemu-${VERSION}
    3333BASENAME_MASTER=qemu-master
     
    3535SOURCEDIR=${BASENAME}
    3636URL=https://download.qemu.org/${TARBALL}
    37 REPO=git://git.qemu.org/qemu.git
     37REPO=git@github.com:qemu/qemu.git
    3838
    3939OPENSPARC_TARBALL="OpenSPARCT1_Arch.1.5.tar.bz2"
     
    4242ARCHIVE_PREFIX="./S10image"
    4343BINARIES="1up-hv.bin 1up-md.bin nvram1 openboot.bin q.bin reset.bin"
     44INSTALL_PREFIX="$HOME/.local"
    4445
    4546echo "==== Downloading OpenSPARC archive ===="
     
    7778echo "==== Installing OpenSPARC binaries ===="
    7879
    79 sudo install -d /usr/local/opensparc/image
    80 sudo install -m 0444 binaries/* /usr/local/opensparc/image
     80install -d "$INSTALL_PREFIX/opensparc/image"
     81install -m 0444 binaries/* "$INSTALL_PREFIX/opensparc/image"
    8182
    8283echo "==== Obtaining QEMU sources ===="
     
    9495        fi
    9596
    96         gpg --verify ${TARBALL}.sig ${TARBALL}
     97        gpg --auto-key-retrieve --verify ${TARBALL}.sig ${TARBALL}
    9798        if [ $? -ne 0 ]; then
    9899                echo Unable to verify the signature
     
    100101        fi
    101102
    102         tar xvfj ${TARBALL}
     103        echo "==== Decompressing QEMU sources ===="
     104        tar xfj ${TARBALL}
    103105        cd ${SOURCEDIR}
    104106fi
     
    106108echo "==== Configuring QEMU ===="
    107109
    108 ./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,aarch64-softmmu,ppc-softmmu,sparc64-softmmu,mips-softmmu,mipsel-softmmu --audio-drv-list=pa
     110./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,aarch64-softmmu,ppc-softmmu,sparc64-softmmu,mips-softmmu,mipsel-softmmu --enable-gtk --enable-vte --enable-kvm --enable-curses --enable-opengl --enable-slirp --enable-pa --audio-drv-list=pa --prefix="$INSTALL_PREFIX" || exit 1
    109111
    110112echo "==== Building QEMU ===="
    111113
    112 make -j 4
     114make -j`nproc` || exit 1
    113115
    114116echo "==== Installing QEMU ===="
    115117
    116 sudo make install
    117 
     118make install
Note: See TracChangeset for help on using the changeset viewer.