wok-undigest rev 95
qemu: Add user space emulator support.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon May 03 10:54:31 2010 +0200 (2010-05-03) |
parents | 41e8e31241ad |
children | 9da4d55be7a7 |
files | qemu/receipt |
line diff
1.1 --- a/qemu/receipt Sun May 02 19:28:23 2010 +0200 1.2 +++ b/qemu/receipt Mon May 03 10:54:31 2010 +0200 1.3 @@ -17,16 +17,18 @@ 1.4 { 1.5 cd $src 1.6 1.7 - # From 0.10.0 VirtIO paravirtual device are supported. 1.8 - #[ -f done.virtio.u ] || patch -p1 < ../stuff/virtio.u 1.9 - #touch done.virtio.u 1.10 - 1.11 - #./configure --prefix=/usr --enable-alsa --disable-gfx-check 1.12 - 1.13 - ./configure \ 1.14 + TARGET="i386-softmmu,i386-linux-user, \ 1.15 + x86_64-softmmu,x86_64-linux-user, \ 1.16 + arm-softmmu,arm-linux-user, \ 1.17 + ppc-softmmu,ppc-linux-user" 1.18 + 1.19 + ./configure \ 1.20 --prefix=/usr \ 1.21 --disable-curl \ 1.22 - --target-list="i386-softmmu,x86_64-softmmu,arm-softmmu,ppc-softmmu" && 1.23 + --enable-system \ 1.24 + --enable-user \ 1.25 + --enable-linux-user \ 1.26 + --target-list="$TARGET"&& 1.27 make && 1.28 make DESTDIR=$PWD/_pkg install 1.29 } 1.30 @@ -34,14 +36,9 @@ 1.31 # Rules to gen a SliTaz package suitable for Tazpkg. 1.32 genpkg_rules() 1.33 { 1.34 - cp -a $_pkg/usr $fs 1.35 - 1.36 - # move softmmu to separate packages. 1.37 - rm -f $fs/usr/bin/qemu-system* 1.38 - 1.39 - # Remove unneeded bios binaries 1.40 - rm -f $fs/usr/share/qemu/*ppc* 1.41 - rm -f $fs/usr/share/qemu/*sparc* 1.42 - 1.43 - 1.44 + mkdir -p $fs/usr/bin 1.45 + cp -a $_pkg/usr/bin/qemu $fs/usr/bin 1.46 + cp -a $_pkg/usr/bin/qemu-io $fs/ur/bin 1.47 + cp -a $_pkg/usr/bin/qemu-img $fs/usr/bin 1.48 + cp -a $_pkg/usr/bin/qemu-nbd $fs/usr/bin 1.49 }