Ignore:
File:
1 edited

Legend:

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

    raba2d04 r051349b  
    2929#
    3030
    31 VERSION=9.1.0
     31VERSION=6.0.0
    3232BASENAME=qemu-${VERSION}
    3333BASENAME_MASTER=qemu-master
     
    3535SOURCEDIR=${BASENAME}
    3636URL=https://download.qemu.org/${TARBALL}
    37 REPO=git@github.com:qemu/qemu.git
     37REPO=git://git.qemu.org/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"
    44 INSTALL_PREFIX="$HOME/.local"
    4544
    4645echo "==== Downloading OpenSPARC archive ===="
     
    7877echo "==== Installing OpenSPARC binaries ===="
    7978
    80 install -d "$INSTALL_PREFIX/opensparc/image"
    81 install -m 0444 binaries/* "$INSTALL_PREFIX/opensparc/image"
     79sudo install -d /usr/local/opensparc/image
     80sudo install -m 0444 binaries/* /usr/local/opensparc/image
    8281
    8382echo "==== Obtaining QEMU sources ===="
     
    9594        fi
    9695
    97         gpg --auto-key-retrieve --verify ${TARBALL}.sig ${TARBALL}
     96        gpg --verify ${TARBALL}.sig ${TARBALL}
    9897        if [ $? -ne 0 ]; then
    9998                echo Unable to verify the signature
     
    101100        fi
    102101
    103         echo "==== Decompressing QEMU sources ===="
    104         tar xfj ${TARBALL}
     102        tar xvfj ${TARBALL}
    105103        cd ${SOURCEDIR}
    106104fi
     
    108106echo "==== Configuring QEMU ===="
    109107
    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
     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
    111109
    112110echo "==== Building QEMU ===="
    113111
    114 make -j`nproc` || exit 1
     112make -j 4
    115113
    116114echo "==== Installing QEMU ===="
    117115
    118 make install
     116sudo make install
     117
Note: See TracChangeset for help on using the changeset viewer.