Changeset 15d0046 in mainline for contrib/qfs/qfs.sh


Ignore:
Timestamp:
2014-09-12T13:22:33Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • contrib/qfs/qfs.sh

    • Property mode changed from 100644 to 100755
    r8db09e4 r15d0046  
     1#!/usr/bin/bash
    12#
    2 # Copyright (c) 2011 Jiri Zarevucky
     3# Copyright (c) 2014 Jakub Jermar
    34# All rights reserved.
    45#
     
    2728#
    2829
    29 USPACE_PREFIX = ../../../..
    30 MIPDIR = ../../mip
    31 ARCHDIR = ../../arch/$(PLATFORM)
    32 EXTRA_CFLAGS = -I$(MIPDIR) -I$(ARCHDIR) -w
    33 DEFS = -DCPP_DEBUG -Dfree=free -DCPPBUF=16384
    34 BINARY = cpp
     30VERSION=2.1.1
     31BASENAME=qemu-${VERSION}
     32TARBALL=${BASENAME}.tar.bz2
     33SOURCEDIR=${BASENAME}
     34URL=http://wiki.qemu-project.org/download/${TARBALL}
     35MD5="78b1b51bfa2eee424e1bfdf3b66daa64"
    3536
    36 PRE_DEPEND = compat.c
    37 EXTRA_CLEAN = compat.c y.tab.c y.tab.h
     37if [ ! -f ${TARBALL} ];
     38then
     39        wget ${URL}
     40fi
    3841
    39 POSIX_COMPAT = y
     42if [ `md5sum ${TARBALL} | cut -f 1 -d " "` != ${MD5} ];
     43then
     44        echo Wrong MD5 checksum
     45        exit
     46fi
    4047
    41 YACC = yacc
     48tar xvfj ${TARBALL}
    4249
    43 SOURCES = \
    44         y.tab.c \
    45         cpp.c \
    46         token.c \
    47         compat.c
     50cd ${SOURCEDIR}
    4851
    49 include $(USPACE_PREFIX)/Makefile.common
     52./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,ppc-softmmu,sparc-softmmu,sparc64-softmmu,mips-softmmu,mipsel-softmmu --audio-drv-list=pa
    5053
    51 y.tab.c:
    52         $(YACC) -d cpy.y
     54make -j 4
    5355
    54 compat.c: $(MIPDIR)/compat.c
    55         ln -s -f $^ $@
     56sudo make install
    5657
Note: See TracChangeset for help on using the changeset viewer.