Changeset 6eb957dc in mainline for contrib/qfs/qfs.sh


Ignore:
Timestamp:
2014-10-09T03:34:21Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef3da5a
Parents:
fa65df1 (diff), 18cc83c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/qfs/qfs.sh

    rfa65df1 r6eb957dc  
    1 #!/usr/bin/bash
     1#!/bin/bash
     2
    23#
    3 # Copyright (c) 2014 Jakub Jermar 
     4# Copyright (c) 2014 Jakub Jermar
    45# All rights reserved.
    56#
     
    3031VERSION=2.1.1
    3132BASENAME=qemu-${VERSION}
     33BASENAME_MASTER=qemu-master
    3234TARBALL=${BASENAME}.tar.bz2
    3335SOURCEDIR=${BASENAME}
    3436URL=http://wiki.qemu-project.org/download/${TARBALL}
     37REPO=git://git.qemu.org/qemu.git
    3538MD5="78b1b51bfa2eee424e1bfdf3b66daa64"
    3639
    37 if [ ! -f ${TARBALL} ];
    38 then
    39         wget ${URL}
     40if [ "$1" == "--master" ]; then
     41        git clone ${REPO} ${BASENAME_MASTER}
     42        cd ${BASENAME_MASTER}
     43else
     44        if [ ! -f ${TARBALL} ]; then
     45                wget ${URL}
     46        fi
     47       
     48        if [ "`md5sum ${TARBALL} | cut -f 1 -d " "`" != ${MD5} ]; then
     49                echo Wrong MD5 checksum
     50                exit
     51        fi
     52       
     53        tar xvfj ${TARBALL}
     54        cd ${SOURCEDIR}
    4055fi
    4156
    42 if [ `md5sum ${TARBALL} | cut -f 1 -d " "` != ${MD5} ];
    43 then
    44         echo Wrong MD5 checksum
    45         exit
    46 fi
    47 
    48 tar xvfj ${TARBALL}
    49 
    50 cd ${SOURCEDIR}
    51 
    5257./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,ppc-softmmu,sparc-softmmu,sparc64-softmmu,mips-softmmu,mipsel-softmmu --audio-drv-list=pa
    53 
    5458make -j 4
    55 
    5659sudo make install
    57 
Note: See TracChangeset for help on using the changeset viewer.