Changeset 5c79fb5 in mainline for contrib/qfs/qfs.sh


Ignore:
Timestamp:
2014-09-16T11:05:29Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
380e23a3
Parents:
c072a29
Message:

add support for building QEMU mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/qfs/qfs.sh

    rc072a29 r5c79fb5  
    11#!/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.