aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2012-08-10 13:32:16 +0000
committerFathi Boudra <fathi.boudra@linaro.org>2012-12-25 16:58:31 +0200
commit111465fea3aa2452c34a609bdc4318d9a7667bb7 (patch)
tree46a4327b40478712a7668056a257c492ded9406f
parent07d16a97127c9f56263ed5d8c697ff98a748e480 (diff)
Imported Debian patch 1.1.50-2012.08-0ubuntu1~linaro1debian/1.1.50-2012.08-0ubuntu1_linaro1
-rw-r--r--debian/binfmts/qemu-alpha6
-rw-r--r--debian/binfmts/qemu-arm6
-rw-r--r--debian/binfmts/qemu-armeb7
-rw-r--r--debian/binfmts/qemu-cris6
-rw-r--r--debian/binfmts/qemu-i3866
-rw-r--r--debian/binfmts/qemu-m68k7
-rw-r--r--debian/binfmts/qemu-microblaze7
-rw-r--r--debian/binfmts/qemu-mips7
-rw-r--r--debian/binfmts/qemu-mipsel6
-rw-r--r--debian/binfmts/qemu-ppc6
-rw-r--r--debian/binfmts/qemu-ppc646
-rw-r--r--debian/binfmts/qemu-ppc64abi326
-rw-r--r--debian/binfmts/qemu-sh46
-rw-r--r--debian/binfmts/qemu-sh4eb7
-rw-r--r--debian/binfmts/qemu-sparc6
-rw-r--r--debian/binfmts/qemu-sparc32plus6
-rw-r--r--debian/binfmts/qemu-sparc646
-rw-r--r--debian/binfmts/qemu-x86_646
-rw-r--r--debian/changelog429
-rw-r--r--debian/clean2
-rw-r--r--debian/compat1
-rw-r--r--debian/control126
-rw-r--r--debian/copyright209
-rw-r--r--debian/qemu-debootstrap168
-rw-r--r--debian/qemu-keymaps.install1
-rw-r--r--debian/qemu-kvm-spice.install4
-rw-r--r--debian/qemu-kvm-spice.links1
-rwxr-xr-xdebian/qemu-make-debian-root157
-rw-r--r--debian/qemu-make-debian-root.844
-rw-r--r--debian/qemu-system.install16
-rw-r--r--debian/qemu-system.links15
-rw-r--r--debian/qemu-user-static.137
-rw-r--r--debian/qemu-user-static.dirs2
-rw-r--r--debian/qemu-user-static.install19
-rw-r--r--debian/qemu-user-static.links18
-rw-r--r--debian/qemu-user-static.manpages1
-rw-r--r--debian/qemu-user-static.postinst.in11
-rw-r--r--debian/qemu-user-static.preinst28
-rw-r--r--debian/qemu-user-static.prerm.in11
-rw-r--r--debian/qemu-user-static.sysctl1
-rw-r--r--debian/qemu-user-static.sysctl.amd640
-rw-r--r--debian/qemu-user.138
-rw-r--r--debian/qemu-user.install16
-rw-r--r--debian/qemu-user.links16
-rw-r--r--debian/qemu-user.manpages1
-rwxr-xr-xdebian/rules233
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options1
-rw-r--r--debian/watch3
49 files changed, 1723 insertions, 0 deletions
diff --git a/debian/binfmts/qemu-alpha b/debian/binfmts/qemu-alpha
new file mode 100644
index 0000000..d029c0c
--- /dev/null
+++ b/debian/binfmts/qemu-alpha
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-alpha-static
+credentials yes
+offset 0
+magic \x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
diff --git a/debian/binfmts/qemu-arm b/debian/binfmts/qemu-arm
new file mode 100644
index 0000000..59de218
--- /dev/null
+++ b/debian/binfmts/qemu-arm
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-arm-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
diff --git a/debian/binfmts/qemu-armeb b/debian/binfmts/qemu-armeb
new file mode 100644
index 0000000..e5a8047
--- /dev/null
+++ b/debian/binfmts/qemu-armeb
@@ -0,0 +1,7 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-armeb-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
+
diff --git a/debian/binfmts/qemu-cris b/debian/binfmts/qemu-cris
new file mode 100644
index 0000000..99af4de
--- /dev/null
+++ b/debian/binfmts/qemu-cris
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-cris-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x4c\x00
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
diff --git a/debian/binfmts/qemu-i386 b/debian/binfmts/qemu-i386
new file mode 100644
index 0000000..f49a292
--- /dev/null
+++ b/debian/binfmts/qemu-i386
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-i386-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00
+mask \xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
diff --git a/debian/binfmts/qemu-m68k b/debian/binfmts/qemu-m68k
new file mode 100644
index 0000000..f0ef04b
--- /dev/null
+++ b/debian/binfmts/qemu-m68k
@@ -0,0 +1,7 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-m68k-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x04
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
+
diff --git a/debian/binfmts/qemu-microblaze b/debian/binfmts/qemu-microblaze
new file mode 100644
index 0000000..f4eae90
--- /dev/null
+++ b/debian/binfmts/qemu-microblaze
@@ -0,0 +1,7 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-microblaze-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xba\xab
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
+
diff --git a/debian/binfmts/qemu-mips b/debian/binfmts/qemu-mips
new file mode 100644
index 0000000..b6fdd23
--- /dev/null
+++ b/debian/binfmts/qemu-mips
@@ -0,0 +1,7 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-mips-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
+
diff --git a/debian/binfmts/qemu-mipsel b/debian/binfmts/qemu-mipsel
new file mode 100644
index 0000000..8ab9155
--- /dev/null
+++ b/debian/binfmts/qemu-mipsel
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-mipsel-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xfe\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
diff --git a/debian/binfmts/qemu-ppc b/debian/binfmts/qemu-ppc
new file mode 100644
index 0000000..339747e
--- /dev/null
+++ b/debian/binfmts/qemu-ppc
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-ppc-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14
+mask \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
diff --git a/debian/binfmts/qemu-ppc64 b/debian/binfmts/qemu-ppc64
new file mode 100644
index 0000000..cd94216
--- /dev/null
+++ b/debian/binfmts/qemu-ppc64
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-ppc64-static
+credentials yes
+offset 0
+magic \x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15
+mask \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
diff --git a/debian/binfmts/qemu-ppc64abi32 b/debian/binfmts/qemu-ppc64abi32
new file mode 100644
index 0000000..4861408
--- /dev/null
+++ b/debian/binfmts/qemu-ppc64abi32
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-ppc64abi32-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15
+mask \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
diff --git a/debian/binfmts/qemu-sh4 b/debian/binfmts/qemu-sh4
new file mode 100644
index 0000000..e97de2a
--- /dev/null
+++ b/debian/binfmts/qemu-sh4
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-sh4-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
diff --git a/debian/binfmts/qemu-sh4eb b/debian/binfmts/qemu-sh4eb
new file mode 100644
index 0000000..cc36f7d
--- /dev/null
+++ b/debian/binfmts/qemu-sh4eb
@@ -0,0 +1,7 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-sh4eb-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a
+mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
+
diff --git a/debian/binfmts/qemu-sparc b/debian/binfmts/qemu-sparc
new file mode 100644
index 0000000..c412f1e
--- /dev/null
+++ b/debian/binfmts/qemu-sparc
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-sparc-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02
+mask \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
diff --git a/debian/binfmts/qemu-sparc32plus b/debian/binfmts/qemu-sparc32plus
new file mode 100644
index 0000000..8efa3c6
--- /dev/null
+++ b/debian/binfmts/qemu-sparc32plus
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-sparc32plus-static
+credentials yes
+offset 0
+magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x12
+mask \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
diff --git a/debian/binfmts/qemu-sparc64 b/debian/binfmts/qemu-sparc64
new file mode 100644
index 0000000..a9f6612
--- /dev/null
+++ b/debian/binfmts/qemu-sparc64
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-sparc64-static
+credentials yes
+offset 0
+magic \x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2b
+mask \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
diff --git a/debian/binfmts/qemu-x86_64 b/debian/binfmts/qemu-x86_64
new file mode 100644
index 0000000..88c056c
--- /dev/null
+++ b/debian/binfmts/qemu-x86_64
@@ -0,0 +1,6 @@
+package qemu-user-static
+interpreter /usr/bin/qemu-x86_64-static
+credentials yes
+offset 0
+magic \x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00
+mask \xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2ebcf62
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,429 @@
+qemu-linaro (1.1.50-2012.08-0ubuntu1~linaro1) precise; urgency=low
+
+ * New upstream release.
+ - repository: git://git.linaro.org/qemu/qemu-linaro.git
+ - commit: 209b435
+ - build: https://ci.linaro.org/jenkins/job/qemu-linaro/39/
+
+ - debian/ repository: git://git.linaro.org/people/rikuvoipio/qemu-packaging.git
+ - debian/ commit: 56a8e17
+ * Drop define_AT_EMPTY_PATH.patch
+ * Update debian/control:
+ - drop perl build dependency.
+ - add libfdt-dev build dependency.
+ * Update debian/qemu-keymaps.install file.
+ * Update debian/rules:
+ - update QEMU_CPU for ARM architecture: armv4l -> armv7l.
+ - update conf_audio_drv: default to PulseAudio since PA is the default on
+ Ubuntu.
+ - enable KVM on ARM architecture.
+ - enable flat device tree (--enable-fdt).
+
+ -- Fathi Boudra <fathi.boudra@linaro.org> Fri, 10 Aug 2012 13:32:16 +0000
+
+qemu-linaro (1.0.50-2012.03-0ubuntu1~ppa11.10.1) oneiric; urgency=low
+
+ * Upload to the tools ppa
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 15 Mar 2012 23:51:36 -0700
+
+qemu-linaro (1.0.50-2012.03-0ubuntu1) precise; urgency=low
+
+ * Update watch file since launchpad now uses https for the download links.
+ * New upstream release.
+ - Fixes use of deprecated gthread calls when building on arm.
+ LP: #928555.
+ * Drop 0001_linux-user-reserve-4GB-of-vmem-for-32-on-64.patch, included
+ upstream with some follow-on fixes.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 15 Mar 2012 16:18:18 -0700
+
+qemu-linaro (1.0.50-2012.02-0ubuntu1~ppa11.10.1) oneiric; urgency=low
+
+ * Upload to the tools ppa
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 20 Feb 2012 18:42:50 -0800
+
+qemu-linaro (1.0.50-2012.02-0ubuntu1) precise; urgency=low
+
+ * New upstream release.
+ * Pass --enable-uname-release=2.6.32 for the user emulation builds, so that
+ we have a sensible baseline kernel value regardless of what the
+ underlying host kernel is. This makes eglibc happier when running under
+ emulation on a very old kernel for instance (whose host syscall ABI has
+ nothing to do with what emulated syscalls are supported), and probably
+ also lets us steer clear for the moment of code that has problem with
+ the new kernel upstream versioning convention. LP: #921078.
+ * debian/patches/define_AT_EMPTY_PATH.patch: make sure AT_EMPTY_PATH
+ is defined. Thanks to Serge Hallyn <serge.hallyn@ubuntu.com>.
+ Closes LP: #930181.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 20 Feb 2012 17:32:06 -0800
+
+qemu-linaro (1.0.50-2012.01-0ubuntu4) precise; urgency=low
+
+ * New patch, 0001_linux-user-reserve-4GB-of-vmem-for-32-on-64, from
+ http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg01697.html; fixes
+ mmap when running a 32-bits guest on a 64-bits host; LP: #906922.
+
+ -- Loïc Minier <loic.minier@ubuntu.com> Fri, 17 Feb 2012 11:27:00 +0100
+
+qemu-linaro (1.0.50-2012.01-0ubuntu3) precise; urgency=low
+
+ * Don't build the qemu-kvm-spice package on i386, spice is 64-bit-only.
+ LP: #928432.
+ * This means we don't have to disable -Werror on the spice build anymore.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 07 Feb 2012 23:34:36 +0000
+
+qemu-linaro (1.0.50-2012.01-0ubuntu2~ppa11.10.1) oneiric; urgency=low
+
+ * Upload to the tools ppa
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 07 Feb 2012 11:27:37 -0800
+
+qemu-linaro (1.0.50-2012.01-0ubuntu2) precise; urgency=low
+
+ * Turn off -Werror for the spice build: the spice API uses a 64-bit
+ integer type for storing pointers even on 32-bit systems, leading to
+ warnings about wrong casts that we can safely ignore here. LP: #926195.
+ * Pass --disable-spice to the system build, otherwise it ends up having
+ spice enabled as well.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 07 Feb 2012 11:09:14 -0800
+
+qemu-linaro (1.0.50-2012.01-0ubuntu1) precise; urgency=low
+
+ * New upstream release.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 02 Feb 2012 14:25:28 -0800
+
+qemu-linaro (1.0-2011.12-0ubuntu1~ppa11.10.1) oneiric; urgency=low
+
+ * upload to the tools ppa
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 14 Dec 2011 17:13:43 -0800
+
+qemu-linaro (1.0-2011.12-0ubuntu1) precise; urgency=low
+
+ * New upstream release.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 14 Dec 2011 16:58:18 -0800
+
+qemu-linaro (0.15.91-2011.11-0ubuntu1~ppa11.10.1) oneiric; urgency=low
+
+ * upload to the tools ppa
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 06 Dec 2011 09:42:01 -0800
+
+qemu-linaro (0.15.91-2011.11-0ubuntu1) precise; urgency=low
+
+ * New upstream release.
+ - fixes segfaults of aptitude under qemu-arm-static. LP: #898474.
+ * debian/patches/1-tcg-ppc-tcg-target.c-Avoid-set-but-not-used-gcc-warn.patch:
+ drop, addressed upstream.
+ * Drop use of -Wno-error=deprecated-declarations build option, no longer
+ needed for gnutls compatibility.
+
+ [ Serge Hallyn ]
+ * Add qemu-kvm-spice package
+ - debian/control: add libspice-protocol-dev and libspice-server-dev
+ to build-depends, define the qemu-kvm-spice package,
+ remove all other packages, and rename source package to qemu-kvm.
+ - debian/rules:
+ * keep only spice-enabled binaries
+ * rename our binaries to '-spice'
+ - debian/qemu-kvm-spice.links and debian/qemu-kvm-spice.install: install
+ kvm-spice and qemu-system-x86_64-spice
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 06 Dec 2011 09:35:22 -0800
+
+qemu-linaro (0.15.50-2011.10-0ubuntu1~ppa11.10.1) oneiric; urgency=low
+
+ * upload to the tools ppa
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 28 Oct 2011 10:43:40 -0700
+
+qemu-linaro (0.15.50-2011.10-0ubuntu1) precise; urgency=low
+
+ * New upstream release.
+ * debian/patches/6-6-tcg-arm-Make-tcg_out_addi-inline.patch,
+ debian/patches/5-6-tcg-ia64-Fix-typos-in-AREG0-setup-in-prologue..patch,
+ debian/patches/target-cris-opcode-cris.h-rename-REG_PC-SP-to-CRIS_REG_PC-SP.patch,
+ debian/patches/Reorder-default-ram_size-initialization.patch:
+ drop, addressed upstream.
+ * Build with -Wno-error=deprecated-declarations, to work around a build
+ failure due to use of deprecated gnutls functions.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 28 Oct 2011 17:37:30 +0000
+
+qemu-linaro (0.15.50-2011.08-0ubuntu4) oneiric; urgency=low
+
+ * FFe for new upstream version, fixing build failure in oneiric.
+ LP: #832830.
+ * debian/binfmts/*: replace unsupported 'flags: OC' with 'credentials yes',
+ so that suid binaries work under qemu-user. LP: #790971
+ * debian/binfmts/qemu-armeb: point to qemu-armeb-static, not
+ qemu-arm-static. LP: #855365.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 26 Sep 2011 15:07:14 -0700
+
+qemu-linaro (0.15.50-2011.08-0ubuntu3) oneiric; urgency=low
+
+ * debian/patches/0001-tcg-ppc-tcg-target.c-Avoid-set-but-not-used-gcc-
+ warn.patch: updated patch to fix additional warnings.
+ * debian/patches/Reorder-default-ram_size-initialization.patch: patch from
+ trunk, reorder default ram_size initialization, fixing a regression that
+ slows down tcg-based system targets by a factor of 3-4. Thanks to
+ Jan Kiszka <jan.kiszka@web.de>.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 26 Aug 2011 17:00:24 -0700
+
+qemu-linaro (0.15.50-2011.08-0ubuntu2) oneiric; urgency=low
+
+ * debian/patches/6-6-tcg-arm-Make-tcg_out_addi-inline.patch: [6/6]
+ tcg-arm: Make tcg_out_addi inline. Fixes a build failure on armel.
+ * debian/patches/5-6-tcg-ia64-Fix-typos-in-AREG0-setup-in-
+ prologue..patch: [5/6] tcg-ia64: Fix typos in AREG0 setup in
+ prologue. Fixes a build failure on ia64.
+ * debian/patches/0001-tcg-ppc-tcg-target.c-Avoid-set-but-not-used-gcc-
+ warn.patch: Avoid 'set but not used' gcc warnings. Fixes a build failure
+ on powerpc. Thanks to Peter Maydell <peter.maydell@linaro.org>.
+ * debian/patches/target-cris-opcode-cris.h-rename-REG_PC-SP-to-
+ CRIS_REG_PC-SP.patch: target-cris/opcode-cris.h: rename REG_PC/SP to
+ CRIS_REG_PC/SP. Fixes a build failure on sparc. Thanks to
+ Peter Maydell <peter.maydell@linaro.org>.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 19 Aug 2011 21:55:42 -0700
+
+qemu-linaro (0.15.50-2011.08-0ubuntu1) oneiric; urgency=low
+
+ * New upstream release.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 19 Aug 2011 14:39:14 -0700
+
+qemu-linaro (0.14.50-2011.06-0-0ubuntu1) oneiric; urgency=low
+
+ * New upstream release.
+ * debian/rules: drop workaround forcing building with -marm for
+ armel/armhf, upstream code is now reported to work in Thumb-2 mode.
+ LP: #731095.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 16 Jun 2011 09:04:43 -0700
+
+qemu-linaro (0.14.50-2011.04-1-0ubuntu2) oneiric; urgency=low
+
+ * Rework conffile removal:
+ - use old style conffile removal as to not require a pre-depends on dpkg
+ helpers which aren't present in lucid instead of using
+ dpkg-maintscript-helper.
+ - remove the conffile in qemu-user-static.preinst rather than
+ qemu-kvm-extras-static.preinst, .postinst and .postrm as to leave no
+ chance to the conffile to stay behind.
+
+ -- Loïc Minier <loic.minier@linaro.org> Wed, 18 May 2011 18:45:12 +0200
+
+qemu-linaro (0.14.50-2011.04-1-0ubuntu1) oneiric; urgency=low
+
+ * New upstream release.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 04 May 2011 09:19:47 -0700
+
+qemu-linaro (0.14.50-2011.03-1-0ubuntu2) natty; urgency=low
+
+ * debian/rules: include i386 and x86_64 in the list of possible
+ binfmt-misc targets, since qemu-user-static does include
+ qemu-i386-static and qemu-x86_64-static and we want these to work on
+ non-x86 archs by default.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 11 Apr 2011 22:26:38 -0700
+
+qemu-linaro (0.14.50-2011.03-1-0ubuntu1) natty; urgency=low
+
+ * New upstream release for a targeted bugfix.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 08 Mar 2011 10:36:53 -0800
+
+qemu-linaro (0.14.50-2011.03-0-0ubuntu1) natty; urgency=low
+
+ [ Loïc Minier ]
+ * Also pass -fno-var-tracking on armhf.
+
+ [ Steve Langasek ]
+ * New upstream release.
+ * Build with -marm on armel/armhf; Peter Maydell reports that building for
+ Thumb-2 gives an emulator that doesn't work.
+ * Add support for cross-compiling the package.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 07 Mar 2011 22:55:03 -0800
+
+qemu-linaro (0.13.50-2011.02-0-0ubuntu1) natty; urgency=low
+
+ * Expand the debian/watch matching to include all series.
+ * New upstream release.
+ * debian/rules: to work around gcc 4.5 memory usage on armel with -O2 -g,
+ add -fno-var-tracking to CFLAGS.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 07 Feb 2011 12:21:42 -0800
+
+qemu-linaro (0.13.50-2011.02-0~rc2-0ubuntu1) natty; urgency=low
+
+ * New upstream release.
+ - drop all debian/patches, merged upstream.
+ * debian/qemu-user-static.sysctl*: don't override vm.mmap_min_addr at all
+ anymore; per Peter this is obsoleted upstream in
+ <http://git.qemu.org/qemu.git/commit/?id=379f6698>. In the near term we
+ still have sysctl files to use for disabling vdso on non-amd64 systems.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 02 Feb 2011 12:31:07 -0800
+
+qemu-linaro (0.13.50-2011.02-0~rc1+dfsg-0ubuntu2) natty; urgency=low
+
+ * debian/source/options: put all upstream changes in a single debian patch
+ within the package.
+ * hw/slavio_intctl.c: fix an off-by-one error that causes us to walk off
+ the end of the array and results in a FTBFS (though oddly, only on
+ armel).
+ * drop changes to target-arm/helper.c; according to Loïc this is fixed
+ differently upstream.
+ * debian/patches/Detect-and-use-GCC-atomic-builtins-for-locking.patch:
+ Detect and use GCC atomic builtins for locking. Thanks to
+ Loïc Minier <lool@dooz.org>.
+ * Add a Replaces: on qemu-kvm (<< 0.13.0+noroms-0ubuntu13) to take over
+ the qemu-user manpage. (No Breaks: because the package isn't broken
+ without a manpage.)
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 01 Feb 2011 00:35:05 -0800
+
+qemu-linaro (0.13.50-2011.02-0~rc1+dfsg-0ubuntu1) natty; urgency=low
+
+ * New upstream version from https://launchpad.net/qemu-linaro
+ * Rename source package to 'qemu-linaro' to indicate the branch switch
+ * Split binary packages to match Debian naming and rebase (more or less)
+ on the Debian packaging
+ * Pick up qemu-kvm-extras{,-static} as transitional packages depending
+ on our binaries, making this the authoritative source for !x86 qemu
+ emulation in Ubuntu
+ * Don't depend on openbios-ppc, openbios-sparc, or openhackware; these
+ are still needed for proper ppc/sparc system use, but these packages
+ aren't available in Ubuntu so that would just make qemu-system
+ uninstallable.
+ * Add armhf to the list of allowed architectures
+ * debian/qemu-user-static.sysctl*, debian/rules: copy the sysctl rules over
+ from qemu-kvm-extras-static, but bump the vm mmap_min_addr to 32k from 4k
+ since 32k is what armel itself wants and whatever historical reasons for
+ the 4k limit seem to be gone now from qemu.
+ * Repack to strip out the binary-only bios blobs from the pc-bios directory
+ in the upstream tarball; these are asserted to be GPL-licensed but are
+ not accompanied by source, which would make them non-redistributable.
+ * Drop the qemu-utils package (for now); assume that the qemu-kvm binaries
+ will do the job until someone shows otherwise.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 28 Jan 2011 21:06:04 -0800
+
+qemu-maemo (0.0~20100921+871d996-0ubuntu1~linaro1) maverick; urgency=low
+
+ * New snapshot from meego/omap3-rebase branch; remaining changes:
+ - Ignore writes of perf reg (cp15 with crm == 12)
+ * Increase the address where we load the initrd on ARM so as
+ to leave enough room for our piggish vmlinuz + its decompressed
+ counterpart. (This is patch 'arm-higher-initrd-load-addr' from
+ Ubuntu qemu-kvm, thanks to Jason Andrews, Loïc Minier.)
+ * Fix ivshmem build on 32-bit hosts (cherry-pick of upstream qemu
+ commit ad0a4ac1 from Avi Kivity <avi@redhat.com>)
+ * Map NAND devices into OMAP GPMC space; this fixes a failure
+ to boot recent beagleboard kernels; LP: #628471
+ * Fix an out-of-bounds array access causing a compile failure on
+ ARM (cherry-pick of upstream qemu commit 2aa326be from
+ Loïc Minier <loic.minier@linaro.org>)
+
+ -- Peter Maydell <peter.maydell@linaro.org> Tue, 21 Sep 2010 14:22:45 +0100
+
+qemu-maemo (0.0~20100806+d7a5eb1-0ubuntu1~linaro2) lucid; urgency=low
+
+ * Fix a couple of bugs in the OMAP3 FAT code; fixes booting of Ubuntu images
+ and probably of FAT16 images as well; LP: #609706.
+ - Fix logic test to use && in omap3_mmc_fat_boot
+ - Fix use of p after free() in omap3_mmc_fat_boot()
+
+ -- Loïc Minier <loic.minier@linaro.org> Sat, 21 Aug 2010 23:18:11 +0200
+
+qemu-maemo (0.0~20100806+d7a5eb1-0ubuntu1~linaro1) lucid; urgency=low
+
+ * New snapshot with some new qemu-maemo fixes; remaining changes:
+ - Ignore writes of perf reg (cp15 with crm == 12)
+ - Emulate BeagleBoard C4
+ . Add omap2_gpio_in_set() for GPIO input lines
+ . Set GPIO lines 171-173 to emulate revC4
+ - Add missing breaks in omap3_hsusb_tll_write()
+
+ -- Loïc Minier <loic.minier@linaro.org> Wed, 11 Aug 2010 10:28:59 +0200
+
+qemu-maemo (0.0~20100711+677985a-0ubuntu1~linaro1) lucid; urgency=low
+
+ [ Matt Waddel ]
+ * Add missing breaks in omap3_hsusb_tll_write()
+
+ -- Loïc Minier <loic.minier@linaro.org> Tue, 10 Aug 2010 13:46:25 +0200
+
+qemu-maemo (0.0~20100711+677985a-0ubuntu1~dooz3) maverick; urgency=low
+
+ * Emulate BeagleBoard C4; LP: #574875.
+ - Add omap2_gpio_in_set() for GPIO input lines.
+ - Set GPIO lines 171-173 to emulate revC4.
+ * Ignore writes of perf reg (cp15 with crm == 12); LP: #570456.
+
+ -- Loïc Minier <loic.minier@ubuntu.com> Sun, 25 Jul 2010 21:32:35 +0200
+
+qemu-maemo (0.0~20100711+677985a-0ubuntu1~dooz2) maverick; urgency=low
+
+ * twl4030: Add PWMB OFF and ON regs; in twl4030_4a_write() add PWMB OFF and
+ ON regs at 0xf1+0 for ON and +1 for OFF. These are written to while
+ booting some Angstrom images.
+
+ -- Loïc Minier <loic.minier@ubuntu.com> Sun, 11 Jul 2010 21:54:31 +0200
+
+qemu-maemo (0.0~20100711+677985a-0ubuntu1~dooz1) maverick; urgency=low
+
+ * Massage previous changelog entries a bit.
+ * Switch back to building on all architectures, since this package is moving
+ back to regular PPAs (without the non-virtual flag).
+ * New snapshot merging all fixes and including a couple more.
+
+ -- Loïc Minier <loic.minier@ubuntu.com> Sun, 11 Jul 2010 19:18:06 +0200
+
+qemu-maemo (0.0~20100519-0ubuntu1~chessy2) lucid; urgency=low
+
+ * Only build on supported architectures as in the qemu-kvm package.
+
+ -- Matt Waddel <matt.waddel@ubuntu.com> Sat, 22 May 2010 00:03:29 -0600
+
+qemu-maemo (0.0~20100519-0ubuntu1~chessy1) lucid; urgency=low
+
+ * Add support for omap i2c byte reads; handling is similar to the way
+ i2c_write and i2c_writeb work.
+ * Fix infinite loop in byte-wide i2c writes; the STP bit in the status
+ register is not set so the i2c_end_transfer() routine is never being
+ called, even when the data buffer is empty. Moving the i2c_end_transfer()
+ call outside the STP check seems to fix this problem.
+
+ -- Matt Waddel <matt.waddel@ubuntu.com> Wed, 19 May 2010 15:33:31 -0600
+
+qemu-maemo (0.0~20100323+0372af3-0ubuntu1~dooz1) lucid; urgency=low
+
+ * New snapshot merging all fixes and including support for multiple SD
+ devices; no remaining changes.
+ * New version format; update revision parsing logic.
+
+ -- Loïc Minier <loic.minier@ubuntu.com> Tue, 23 Mar 2010 18:25:31 +0100
+
+qemu-maemo (0.0~413abab-0ubuntu1~dooz1) lucid; urgency=low
+
+ * Initial packaging; changes from snapshot:
+ - Revert "add multi-sd support" commit which broke plenty of things.
+ - vl.c: Re-add cursor_allow_grab = 1, missing from commit "make cursor
+ grab optional"
+ - qemu-error.c: add a proper format strings in all cases.
+ * Snapshot to ports-dev PPA.
+
+ -- Loïc Minier <loic.minier@ubuntu.com> Tue, 23 Mar 2010 11:39:02 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..3688ba6
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+debian/qemu-user-static.prerm
+debian/qemu-user-static.postinst
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7df25ab
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,126 @@
+Source: qemu-linaro
+Section: misc
+Priority: optional
+DM-Upload-Allowed: yes
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>
+Uploaders: Aurelien Jarno <aurel32@debian.org>, Riku Voipio <riku.voipio@iki.fi>, Vagrant Cascadian <vagrant@debian.org>
+Build-Depends: debhelper (>= 7.0.50~),
+ zlib1g-dev,
+ libasound2-dev [!kfreebsd-any],
+ libsdl1.2-dev (>> 1.2.1),
+ libx11-dev,
+ libpulse-dev,
+ libncurses5-dev,
+ libbrlapi-dev,
+ libcurl4-gnutls-dev,
+ libgnutls-dev,
+ libsasl2-dev,
+ libspice-protocol-dev [amd64],
+ libspice-server-dev [amd64],
+ uuid-dev,
+ libvdeplug2-dev [!kfreebsd-any],
+ libbluetooth-dev [!kfreebsd-any],
+ texinfo,
+ libfdt-dev
+Build-Conflicts: oss4-dev
+Standards-Version: 3.9.1
+Homepage: https://launchpad.net/qemu-linaro/
+Vcs-Bzr: lp:ubuntu/qemu-linaro
+
+Package: qemu-keymaps
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: qemu (<< 0.11.0-2), qemu-system (<< 0.12.4+dfsg-4)
+Replaces: qemu (<< 0.11.0-2), qemu-system (<< 0.12.4+dfsg-4)
+Description: QEMU keyboard maps
+ QEMU is a fast processor emulator: currently the package supports
+ ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
+ SPARC and x86-64 emulation. By using dynamic translation it achieves
+ reasonable speed while being easy to port on new host CPUs.
+ .
+ This package provides keyboard maps to be used by the qemu-system
+ package or QEMU derivatives.
+
+Package: qemu-system
+Architecture: amd64 arm armel armhf hppa i386 ia64 mips mipsel powerpc sparc sparc64 kfreebsd-i386 kfreebsd-amd64 ppc64
+Depends: ${shlibs:Depends}, ${misc:Depends}, qemu-keymaps (>= ${source:Version}), qemu-common
+Recommends: vde2, qemu-kvm
+Breaks: qemu (<< 0.11.0-2), qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1)
+Replaces: qemu (<< 0.11.0-2), qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1)
+Suggests: samba
+Description: QEMU full system emulation binaries
+ QEMU is a fast processor emulator: currently the package supports
+ ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
+ SPARC and x86-64 emulation. By using dynamic translation it achieves
+ reasonable speed while being easy to port on new host CPUs.
+ .
+ This package provides the full system emulation binaries for targets other
+ than x86 and x86-64. In this mode QEMU emulates a full system, including a
+ processor and various peripherals. It enables easier testing and debugging
+ of system code. It can also be used to provide virtual hosting of several
+ virtual machines on a single server.
+
+Package: qemu-user
+Architecture: amd64 arm armel armhf hppa i386 ia64 mips mipsel powerpc sparc sparc64 ppc64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: qemu (<< 0.11.0-2), qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1)
+Replaces: qemu (<< 0.11.0-2), qemu-kvm-extras (<< 0.13.50-2011.02-0~rc1-0ubuntu1), qemu-kvm (<< 0.13.0+noroms-0ubuntu13)
+Description: QEMU user mode emulation binaries
+ QEMU is a fast processor emulator: currently the package supports
+ ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
+ SPARC and x86-64 emulation. By using dynamic translation it achieves
+ reasonable speed while being easy to port on new host CPUs.
+ .
+ This package provides the user mode emulation binaries for targets other
+ than x86 and x86-64. In this mode QEMU can launch Linux processes compiled
+ for one CPU on another CPU.
+
+Package: qemu-user-static
+Architecture: amd64 arm armel armhf hppa i386 ia64 mips mipsel powerpc sparc sparc64 ppc64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: binfmt-support, debootstrap
+Breaks: qemu-kvm-extras-static (<< 0.13.50-2011.02-0~rc1-0ubuntu1)
+Replaces: qemu-kvm-extras-static (<< 0.13.50-2011.02-0~rc1-0ubuntu1)
+Suggests: sudo
+Description: QEMU user mode emulation binaries (static version)
+ QEMU is a fast processor emulator: currently the package supports
+ ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
+ SPARC and x86-64 emulation. By using dynamic translation it achieves
+ reasonable speed while being easy to port on new host CPUs.
+ .
+ This package provides the user mode emulation binaries, built
+ statically. In this mode QEMU can launch Linux processes compiled for
+ one CPU on another CPU.
+
+Package: qemu-kvm-extras
+Architecture: all
+Depends: qemu-system, qemu-user
+Description: QEMU system and user mode emulation (transitional package)
+ QEMU is a fast processor emulator: currently the package supports
+ ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
+ SPARC and x86-64 emulation. By using dynamic translation it achieves
+ reasonable speed while being easy to port on new host CPUs.
+ .
+ This is a transitional package depending on the system and user mode
+ emulation binaries. You can remove it once the upgrade is complete and
+ nothing depends on it.
+
+Package: qemu-kvm-extras-static
+Architecture: all
+Depends: qemu-user-static
+Description: QEMU static user mode emulation binaries (transitional package)
+ QEMU is a fast processor emulator: currently the package supports
+ ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
+ SPARC and x86-64 emulation. By using dynamic translation it achieves
+ reasonable speed while being easy to port on new host CPUs.
+ .
+ This is a transitional package depending on the static user mode emulation
+ binaries. You can remove it once the upgrade is complete and nothing
+ depends on it.
+
+Package: qemu-kvm-spice
+Architecture: amd64
+Depends: qemu-kvm, ${misc:Depends}, ${shlibs:Depends}, libspice-server1
+Description: Full virtualization on amd64 hardware
+ This adds versions of qemu-kvm which can use SPICE, called qemu-kvm-spice.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7a7698a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,209 @@
+This package was debianized by Loïc Minier <loic.minier@ubuntu.com> on
+Tue, 23 Mar 2010 11:26:50 +0100.
+
+The upstream source was downloaded from:
+
+ <https://launchpad.net/qemu-linaro>
+
+ All the binary blobs without sources contained in the pc-bios/ directory
+ in the original upstream tarball have been removed starting from Debian
+ package version 0.6.0.dfsg.1-1. Those roms which are free can be found
+ in split packages of their own, represented accordingly in the dependecy
+ relationships.
+
+Copyright:
+
+ Copyright (C) 1982, 1986, 1988-1994 The Regents of the University of California
+ Copyright (C) 1986-2007 Free Software Foundation Inc.
+ Copyright (C) 1988-1992 Richard Outerbridge
+ Copyright (C) 1991-1992, 1996 Linus Torvalds
+ Copyright (C) 1992 Graven Imagery
+ Copyright (C) 1995 Danny Gasparovski
+ Copyright (C) 1996-1999 Eduardo Horvath
+ Copyright (C) 1996 Paul Mackerras
+ Copyright (C) 1997-1999, 2001, 2006-2010 Red Hat Inc.
+ Copyright (C) 1998-1999 Philip Blundell
+ Copyright (C) 1998-2001, 2003, 2006 Thomas Sailer <t.sailer@alumni.ethz.ch>
+ Copyright (C) 1998, 2003-2008 Fabrice Bellard
+ Copyright (C) 1998-2004 Samuel Rydh <samuel@ibrium.se>
+ Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>
+ Copyright (C) 1998 The Silver Hammer Group Ltd.
+ Copyright (C) 1999-2000, 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
+ Copyright (C) 1999-2000 Tatsuyuki Satoh
+ Copyright (C) 1999-2006, 2008 Intel Corporation
+ Copyright (C) 1999 AT&T Laboratories Cambridge
+ Copyright (C) 2000-2001 Qualcomm Incorporated
+ Copyright (C) 2000-2002, 2004-2009 Axis Communications AB.
+ Copyright (C) 2000-2003, 2005 Martin Schwidefsky
+ Copyright (C) 2000-2003 David McCullough <davidm@snapgear.com> <davidm@lineo.com>
+ Copyright (C) 2000-2005 All Rights Reserved.
+ Copyright (C) 2000-2005 DENX Software Engineering <wd@denx.de.>
+ Copyright (C) 2000-2005 Silicon Graphics Inc.
+ Copyright (C) 2000-2005 Wolfgang Denk
+ Copyright (C) 2000-2007 Tibor "TS" Schütz
+ Copyright (C) 2001 OKTET Ltd.
+ Copyright (C) 2001 Xilinx Inc.
+ Copyright (C) 2002-2005 Vassili Karpov
+ Copyright (C) 2002-2006 Marcel Holtmann <marcel@holtmann.org>
+ Copyright (C) 2002 Greg Ungerer <gerg@snapgear.com>
+ Copyright (C) 2002 Paul Dale <pauli@snapgear.com>
+ Copyright (C) 2003-2004 James Yonan
+ Copyright (C) 2003-2007 Jocelyn Mayer
+ Copyright (C) 2003 Damion K. Wilson
+ Copyright (C) 2003 Thomas M. Ogrisegg <tom@fnord.at>
+ Copyright (C) 2004-2005 Johannes E. Schindelin
+ Copyright (C) 2004, 2007 Magnus Damm <damm@opensource.se>
+ Copyright (C) 2004 Antony T Curtis
+ Copyright (C) 2004 Gianni Tedesco
+ Copyright (C) 2004 Johannes Schindelin
+ Copyright (C) 2004 Makoto Suzuki
+ Copyright (C) 2005, 2007 Alex Beregszaszi
+ Copyright (C) 2005-2007 Anthony Liguori <aliguori@us.ibm.com> <anthony@codemonkey.ws>
+ Copyright (C) 2005-2008 Andrzej Zaborowski <balrog@zabor.org> <andrew@openedhand.com>
+ Copyright (C) 2005-2009 Paul Brook <paul@codesourcery.com>
+ Copyright (C) 2005 Author(s): Anthony Liguori <aliguori@us.ibm.com>
+ Copyright (C) 2005 Filip Navara
+ Copyright (C) 2005 International Business Machines Corp.
+ Copyright (C) 2005 LLC. Written
+ Copyright (C) 2005 Mike Kronenberg
+ Copyright (C) 2005 Samuel Tardieu
+ Copyright (C) 2006-2007, 2009 Aurelien Jarno <aurelien@aurel32.net>
+ Copyright (C) 2006-2007, 2009 Stefan Weil
+ Copyright (C) 2006-2007 Thiemo Seufer
+ Copyright (C) 2006-2007 Thorsten Zitterell <info@bitmux.org>
+ Copyright (C) 2006-2008 Openedhand Ltd.
+ Copyright (C) 2006-2008 Qumranet Technologies
+ Copyright (C) 2006 Frederick Reeve
+ Copyright (C) 2006 Igor Kovalenko
+ Copyright (C) 2006 InnoTek Systemberatung GmbH
+ Copyright (C) 2006 Joachim Henke
+ Copyright (C) 2006 Lonnie Mendez
+ Copyright (C) 2006 Marius Groeger
+ Copyright (C) 2007-2008 Bull S.A.S.
+ Copyright (C) 2007-2008 IBM Corporation
+ Copyright (C) 2007-2008 Lauro Ramos Venancio <lauro.venancio@indt.org.br>
+ Copyright (C) 2007-2010 Nokia Corporation
+ Copyright (C) 2007-2008 OpenMoko Inc. <andrew@openedhand.com>
+ Copyright (C) 2007, 2009 Alexander Graf <agraf@suse.de>
+ Copyright (C) 2007-2009 Edgar E. Iglesias <edgar.iglesias@gmail.com>
+ Copyright (C) 2007-2009 Herve Poussineau
+ Copyright (C) 2007 Arastra Inc.
+ Copyright (C) 2007 Armin Kuster <akuster@mvista.com>
+ Copyright (C) 2007 Dan Aloni
+ Copyright (C) 2007 Marko Kohtala
+ Copyright (C) 2007 MontaVista Software Inc.
+ Copyright (C) 2007 Robert Reif
+ Copyright (C) 2007 Vladimir Ananiev <vovan888@gmail.com>
+ Copyright (C) 2008-2009 Arnaud Patard <arnaud.patard@rtp-net.org>
+ Copyright (C) 2008-2009 Citrix Systems Inc.
+ Copyright (C) 2008-2009 Gerd Hoffmann <kraxel@redhat.com>
+ Copyright (C) 2008 Dell MessageOne
+ Copyright (C) 2008 Dmitry Baryshkov
+ Copyright (C) 2008 Gleb Natapov
+ Copyright (C) 2008 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ Copyright (C) 2008 Lubomir Rintel
+ Copyright (C) 2008 Max Krasnyansky
+ Copyright (C) 2008 Paul Mundt
+ Copyright (C) 2008 Samuel Thibault <samuel.thibault@ens-lyon.org>
+ Copyright (C) 2008 Shin-ichiro KAWASAKI
+ Copyright (C) 2008 Takashi YOSHII
+ Copyright (C) 2008 TJ <linux@tjworld.net>
+ Copyright (C) 2009 CodeSourcery
+ Copyright (C) 2009 Freescale Semiconductor Inc.
+ Copyright (C) 2009 Hewlett-Packard Development Company
+ Copyright (C) 2009 Isaku Yamahata <yamahata@valinux.co.jp>
+ Copyright (C) 2009 Kevin Wolf <kwolf@redhat.com> <kwolf@suse.de>
+ Copyright (C) 2009 Laurent Vivier <laurent.vivier@bull.net>
+ Copyright (C) 2009 Michael S. Tsirkin <mst@redhat.com>
+ Copyright (C) 2009 Novell Inc.
+ Copyright (C) 2009 Ulrich Hecht <uli@suse.de>
+ Copyright (C) 2009 VA Linux Systems Japan
+ Copyright (C) 2011 Linaro Limited
+
+
+License:
+
+ QEMU as a whole is released under the GNU General Public License version 2.
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in the file /usr/share/common-licenses/GPL-2.
+
+
+ Parts of QEMU have specific licenses which are compatible with the
+ GNU General Public License. Hence each source file contains its own
+ licensing information.
+
+
+ In particular, the QEMU virtual CPU core library (libqemu.a) is
+ released under the GNU Lesser General Public License version 2 or later.
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License can be found in the file /usr/share/common-licenses/LGPL-2.
+
+
+ The BSD emulator is released under the following BSD license:
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+
+ The slirp code is released under the following BSD license:
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+
+ The TCG code and many hardware device emulation sources are released under the
+ following MIT license:
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
diff --git a/debian/qemu-debootstrap b/debian/qemu-debootstrap
new file mode 100644
index 0000000..674d71a
--- /dev/null
+++ b/debian/qemu-debootstrap
@@ -0,0 +1,168 @@
+#!/bin/sh
+# qemu-debootstrap - setup qemu syscall emulation in a debootstrap chroot
+# Copyright (C) 2010 Loïc Minier <lool@dooz.org>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# SOFTWARE IN THE PUBLIC INTEREST, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the author shall not be used
+# in advertising or otherwise to promote the sale, use or other dealings in
+# this Software without prior written authorization from the author.
+#
+# requires: debootstrap
+
+set -e
+
+log() {
+ local format="$1"
+ shift
+ printf -- "$format\n" "$@" >&2
+}
+
+warn() {
+ local format="$1"
+ shift
+ log "W: $format" "$@"
+}
+
+die() {
+ local format="$1"
+ shift
+ log "E: $format" "$@"
+ exit 1
+}
+
+run() {
+ log "I: Running command: %s" "$*"
+ "$@"
+}
+
+escape() {
+ echo "$*" | sed "s/'/'\"'\"'/g; s/.*/'&'/"
+}
+unescape () {
+ eval "echo" "$*"
+}
+
+if ! which debootstrap 2>&1 >/dev/null; then
+ die "debootstrap not found; install the debootstrap package"
+fi
+
+system_arch="$(dpkg --print-architecture)"
+deb_arch="$system_arch"
+
+# backward-compatibility with "build-arm-chroot" script which defaulted to
+# armel
+if [ "`basename "$0"`" = "build-arm-chroot" ]; then
+ deb_arch="armel"
+ log "Setting Debian architecture to armel"
+ log "W:" "$0 is deprecated, please use qemu-debootstrap"
+fi
+
+opts=""
+args=""
+suite=""
+target=""
+mirror=""
+script=""
+while [ $# -gt 0 ]; do
+ case "$1" in
+ --help)
+ die "I'm just a debootstrap wrapper; please see debootstrap --help"
+ ;;
+ --arch|--arch=?*)
+ if [ "$1" = "--arch" -a $# -ge 2 -a -n "$2" ]; then
+ deb_arch="$2"
+ shift 2
+ elif [ "$1" != "${1#--arch=}" ]; then
+ deb_arch="${1#--arch=}"
+ shift
+ else
+ die "option %s requires an argument" "$1"
+ fi
+ ;;
+ --*)
+ opts="$opts $(escape "$1")"
+ shift
+ ;;
+ *)
+ if [ -z "$suite" ]; then stage="suite";
+ elif [ -z "$target" ]; then stage="target";
+ elif [ -z "$mirror" ]; then stage="mirror";
+ elif [ -z "$script" ]; then stage="script";
+ fi
+ if [ -n "$1" ]; then
+ eval $stage=\"\$1\"
+ args="$args $(escape "$1")"
+ else
+ die "option %s may not be empty" "$stage"
+ fi
+ shift
+ ;;
+ esac
+done
+
+needs_qemu="yes"
+if [ "$deb_arch" = "$system_arch" ]; then
+ warn "Target architecture is the same as host architecture; disabling QEMU support"
+ needs_qemu="no"
+fi
+# bi-arch; TODO test whether the running kernel is actually bi-arch capable
+case "$system_arch-$deb_arch" in
+ amd64-i386|amd64-lpia|arm-armel|arm-armhf|armel-arm|armhf-arm|i386-amd64|i386-lpia|lpia-i386|powerpc-ppc64|ppc64-powerpc|sparc-sparc64|sparc64-sparc)
+ warn "Host architecture might allow running target architecture; disabling QEMU support"
+ needs_qemu="no"
+ ;;
+esac
+
+if [ "$needs_qemu" = no ]; then
+ eval run debootstrap --arch "$deb_arch" $opts $args
+ exit 0
+fi
+
+qemu_arch=""
+case "$deb_arch" in
+ alpha|arm|armeb|i386|m68k|mips|mipsel|ppc64|sh4|sh4eb|sparc|sparc64)
+ qemu_arch="$deb_arch"
+ ;;
+ amd64)
+ qemu_arch="x86_64"
+ ;;
+ armel|armhf)
+ qemu_arch="arm"
+ ;;
+ lpia)
+ qemu_arch="i386"
+ ;;
+ powerpc)
+ qemu_arch="ppc"
+ ;;
+ *)
+ die "Sorry, I don't know how to support arch %s" "$arch"
+ ;;
+esac
+
+if ! which "qemu-$qemu_arch-static" >/dev/null 2>&1; then
+ die "Sorry, couldn't find binary %s" "qemu-$qemu_arch-static"
+fi
+
+eval run debootstrap --arch "$deb_arch" --foreign $opts $args
+mkdir -p "$target/usr/bin"
+cp $(which "qemu-$qemu_arch-static") "$target/usr/bin"
+run chroot "$target" /debootstrap/debootstrap --second-stage
+
diff --git a/debian/qemu-keymaps.install b/debian/qemu-keymaps.install
new file mode 100644
index 0000000..81d0030
--- /dev/null
+++ b/debian/qemu-keymaps.install
@@ -0,0 +1 @@
+usr/share/qemu-linaro/qemu/keymaps
diff --git a/debian/qemu-kvm-spice.install b/debian/qemu-kvm-spice.install
new file mode 100644
index 0000000..08439e7
--- /dev/null
+++ b/debian/qemu-kvm-spice.install
@@ -0,0 +1,4 @@
+usr/bin/qemu-spice
+usr/bin/qemu-i386-spice
+usr/bin/qemu-x86_64-spice
+usr/bin/qemu-system-x86_64-spice
diff --git a/debian/qemu-kvm-spice.links b/debian/qemu-kvm-spice.links
new file mode 100644
index 0000000..80b25b8
--- /dev/null
+++ b/debian/qemu-kvm-spice.links
@@ -0,0 +1 @@
+usr/bin/qemu-system-x86_64-spice usr/bin/kvm-spice
diff --git a/debian/qemu-make-debian-root b/debian/qemu-make-debian-root
new file mode 100755
index 0000000..fea4927
--- /dev/null
+++ b/debian/qemu-make-debian-root
@@ -0,0 +1,157 @@
+#! /bin/sh -e
+#
+# $Id: qemu-make-debian-root 353 2008-10-16 20:28:22Z aurel32 $
+#
+# Script to make a debian root image.
+#
+
+set -e
+
+which uudecode >/dev/null || {
+ echo "error: missing sharutils package" >&2
+ exit 1
+}
+
+which debootstrap >/dev/null || {
+ echo "error: missing debootstrap package" >&2
+ exit 1
+}
+
+KEEPFS=0
+if [ "$1" = "-k" ] || [ "$2" = "-k" ]; then
+ KEEPFS=1
+ shift
+fi
+
+SPARSE=0
+if [ "$1" = "-s" ] || [ "$2" = "-s" ]; then
+ SPARSE=1
+ shift
+fi
+
+if [ $# -lt 4 ]; then
+ echo Usage: "$0 [-ks] size-in-MB distrib deburl image [files_to_copy_in_/root]" >&2
+ echo "eg $0 150 sid http://proxy:10000/debian qemu" >&2
+ echo "-k keep file system -s sparse image" >&2
+ echo "$0 is normally run as root." >&2
+ exit 1
+fi
+
+SIZE=$1
+DISTRO=$2
+URL=$3
+IMAGE=$4
+shift 4
+
+# now files to copy are in "$@". We don't put them in a variable
+# because that would coufuse spaces-in-filenames with
+# whitespace-separation.
+
+
+if [ $SIZE -lt 130 ]; then
+ echo 'Size must be at least 130 megabytes (Debian unstable takes 100)' >&2
+ exit 1
+fi
+
+cleanup()
+{
+ echo Cleaning up... >&2
+ umount -d $TMP_DIR || true
+ rm -f $IMAGE.ext2 $IMAGE
+}
+
+trap cleanup EXIT
+
+HEADS=16
+SECTORS=63
+# 512 bytes in a sector: cancel the 512 with one of the 1024s...
+CYLINDERS=$(( $SIZE * 1024 * 2 / ($HEADS * $SECTORS) ))
+
+# Create a filesystem: one track for partition table.
+if [ "$SPARSE" = "1" ]; then
+ dd bs=$(($SECTORS * 512)) if=/dev/zero of=$IMAGE.ext2 count=1 seek=$(($CYLINDERS * $HEADS - 2))
+else
+ dd bs=$(($SECTORS * 512)) if=/dev/zero of=$IMAGE.ext2 count=$(($CYLINDERS * $HEADS - 1))
+fi
+
+mke2fs -q -m1 -F $IMAGE.ext2
+
+TMP_DIR="$(mktemp -d /tmp/mount.XXXXXX)" || \
+ { echo >&2 "Failed to create temporary directory"; exit 1; }
+
+# Mount it.
+mount -o loop $IMAGE.ext2 $TMP_DIR
+
+# Do debian install on it.
+#debootstrap --exclude=syslinux,at,exim,mailx,libstdc++2.10-glibc2.2,mbr,setserial,fdutils,info,ipchains,lilo,pcmcia-cs,ppp,pppoe,pppoeconf,pppconfig $DISTRO $TMP_DIR $URL
+debootstrap --exclude=syslinux,at,exim,mailx,libstdc++2.10-glibc2.2,mbr,setserial,fdutils,info,ipchains,iptables,lilo,pcmcia-cs,ppp,pppoe,pppoeconf,pppconfig,wget,telnet,cron,logrotate,exim4,exim4-base,exim4-config,exim4-daemon-light,pciutils,modconf,tasksel $DISTRO $TMP_DIR $URL
+
+# Final configuration.
+cat > $TMP_DIR/etc/fstab <<EOF
+/dev/hda1 / ext2 errors=remount-ro 0 1
+proc /proc proc defaults 0 0
+EOF
+
+# Console on ttyS0, not tty1, and no other gettys.
+sed 's,1:2345:respawn:/sbin/getty 38400 tty1,1:2345:respawn:/sbin/getty 38400 ttyS0,' < $TMP_DIR/etc/inittab | sed 's,^.:23:respawn.*,,' > $TMP_DIR/etc/inittab.new
+mv $TMP_DIR/etc/inittab.new $TMP_DIR/etc/inittab
+
+# Set hostname to base of image name.
+basename $IMAGE > $TMP_DIR/etc/hostname
+
+# Create /etc/shadow
+chroot $TMP_DIR pwconv
+
+# Set root password to "root"
+sed 's/^root:[^:]*/root:$1$aybpiIGf$cB7iFDNZvViQtQjEZ5HFQ0/' < $TMP_DIR/etc/shadow > $TMP_DIR/etc/shadow.new
+mv $TMP_DIR/etc/shadow.new $TMP_DIR/etc/shadow
+
+# Remove packages we don't need
+chroot $TMP_DIR /usr/bin/dpkg --remove console-common console-tools console-data base-config man-db manpages
+# Try to remove all libraries: some won't be removable.
+chroot $TMP_DIR dpkg --remove `chroot $TMP_DIR dpkg --get-selections | sed -n 's/^\(lib[^ \t]*\)[\t ]*install/\1/p'` 2>/dev/null || true
+
+
+# Copy wanted files to /root if asked to
+if [ $# -gt 0 ]; then
+ cp -a "$@" $TMP_DIR/root/
+fi
+umount -d $TMP_DIR
+
+# Create file with partition table.
+uudecode -o- << "EOF" | gunzip > $IMAGE
+begin 664 partition-table.gz
+M'XL("*_<##\"`W!A<G1I=&EO;BUT86)L90#LT#$-`"`0!,&']D6A`D6XP1T&
+M"%B@))FIMKGF(OA9C;%;EENYZO.Z3P\"````!P``__\:!0````#__QH%````
+M`/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%
+M`````/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#_
+M_QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0``
+M``#__QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:
+M!0````#__QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`````
+M__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`
+M````__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%`````/__
+M&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%````
+M`/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%
+M`````/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#_
+M_QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0``
+M``#__QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:
+M!0````#__QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`````
+M__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%`````/__&@4`
+M````__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%`````/__
+M&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%````
+M`/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#__QH%
+M`````/__&@4`````__\:!0````#__QH%`````/__&@4`````__\:!0````#_
+M_QH%`````/__&@4`````__\:!0````#__QH%`````/__0@``````__\#`%&_
+&<90`?@``
+`
+end
+EOF
+dd if=$IMAGE.ext2 of=$IMAGE seek=$((`stat -c%s $IMAGE` / 512)) bs=512
+rm $IMAGE.ext2
+
+# Repartition so one partition covers entire disk.
+echo '63,' | sfdisk -uS -H$HEADS -S$SECTORS -C$CYLINDERS $IMAGE
+
+trap "" EXIT
+
+echo Done.
diff --git a/debian/qemu-make-debian-root.8 b/debian/qemu-make-debian-root.8
new file mode 100644
index 0000000..77a8758
--- /dev/null
+++ b/debian/qemu-make-debian-root.8
@@ -0,0 +1,44 @@
+.\" $Id: qemu-make-debian-root.8 266 2008-01-06 20:29:04Z aurel32 $
+.TH qemu\-make\-debian\-root 8 2006-05-28 "0.0" Debian
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+qemu\-make\-debian\-root \- Create a debian root image for qemu
+.SH SYNOPSIS
+.B qemu\-make\-debian\-root
+.RI [ -k "] "
+.RI [ -s "] "
+.I size-in-MiB distrib deburl image
+.RI [ files-to-copy-in-/root ]
+.SH DESCRIPTION
+.B qemu\-make\-debian\-root
+is a command to ease the creation of a debian root image for qemu.
+The generated image is not bootable by itself, and an external kernel
+is needed. It can be run with a command like:
+.IP
+.nf
+.B qemu disk.img -kernel /boot/vmlinuz
+.fi
+.PP
+.SH OPTIONS
+.TP
+.BR \-k
+Keep file system.
+.TP
+.BR \-s
+Create a sparse image.
+.SH SEE ALSO
+.BR qemu (1),
+.BR qemu\-img (1).
+.SH AUTHOR
+This manual page was written by Guillem Jover <guillem@debian.org>.
diff --git a/debian/qemu-system.install b/debian/qemu-system.install
new file mode 100644
index 0000000..b8a46b4
--- /dev/null
+++ b/debian/qemu-system.install
@@ -0,0 +1,16 @@
+usr/bin/qemu-system-arm
+usr/bin/qemu-system-cris
+usr/bin/qemu-system-m68k
+usr/bin/qemu-system-microblaze
+usr/bin/qemu-system-mips
+usr/bin/qemu-system-mips64
+usr/bin/qemu-system-mips64el
+usr/bin/qemu-system-mipsel
+usr/bin/qemu-system-ppc
+usr/bin/qemu-system-ppc64
+usr/bin/qemu-system-ppcemb
+usr/bin/qemu-system-sh4
+usr/bin/qemu-system-sh4eb
+usr/bin/qemu-system-sparc
+usr/bin/qemu-system-sparc64
+usr/share/man/man1/qemu-system.1
diff --git a/debian/qemu-system.links b/debian/qemu-system.links
new file mode 100644
index 0000000..0e29290
--- /dev/null
+++ b/debian/qemu-system.links
@@ -0,0 +1,15 @@
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-arm.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-cris.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-m68k.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-microblaze.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-mips.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-mips64.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-mips64el.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-mipsel.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-ppc.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-ppc64.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-ppcemb.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-sh4.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-sh4eb.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-sparc.1
+usr/share/man/man1/qemu-system.1 usr/share/man/man1/qemu-system-sparc64.1
diff --git a/debian/qemu-user-static.1 b/debian/qemu-user-static.1
new file mode 100644
index 0000000..aefa4b1
--- /dev/null
+++ b/debian/qemu-user-static.1
@@ -0,0 +1,37 @@
+.TH qemu\-user\-static 1 2007-02-08 "0.9.0" Debian
+.SH NAME
+qemu\-user\-static \- QEMU User Emulator (static version)
+.SH SYNOPSIS
+.B qemu\-user\-static
+.RI [ options ]
+.I program
+.RI [ program-arguments... ]
+.SH DESCRIPTION
+The
+.B qemu\-user\-static
+emulator can run binaries for other architectures but with the same operating
+system as the current one.
+.SH OPTIONS
+.TP
+.BR \-h
+Print this help.
+.TP
+.BR \-g
+Wait gdb connection to port 1234.
+.TP
+.BR \-L " \fI<path>\fP"
+Set the elf interpreter prefix (default=\fI/usr/gnemul/qemu\-arm\fP).
+.TP
+.BR \-s " \fI<size>\fP"
+Set the stack size in bytes (default=\fI524288\fP).
+.TP
+.BR \-d " \fI<options>\fP"
+Activate log (logfile=\fI/tmp/qemu.log\fP)
+.TP
+.BR \-p " \fI<pagesize>\fP"
+Set the host page size to 'pagesize'.
+.SH SEE ALSO
+.BR qemu (1),
+.BR qemu\-img (1).
+.SH AUTHOR
+This manual page was written by Guillem Jover <guillem@debian.org>.
diff --git a/debian/qemu-user-static.dirs b/debian/qemu-user-static.dirs
new file mode 100644
index 0000000..e7b68b4
--- /dev/null
+++ b/debian/qemu-user-static.dirs
@@ -0,0 +1,2 @@
+usr/share/binfmts
+etc/sysctl.d
diff --git a/debian/qemu-user-static.install b/debian/qemu-user-static.install
new file mode 100644
index 0000000..7bc1961
--- /dev/null
+++ b/debian/qemu-user-static.install
@@ -0,0 +1,19 @@
+usr/bin/qemu-alpha-static
+usr/bin/qemu-armeb-static
+usr/bin/qemu-arm-static
+usr/bin/qemu-cris-static
+usr/bin/qemu-i386-static
+usr/bin/qemu-m68k-static
+usr/bin/qemu-microblaze-static
+usr/bin/qemu-mipsel-static
+usr/bin/qemu-mips-static
+usr/bin/qemu-ppc64abi32-static
+usr/bin/qemu-ppc64-static
+usr/bin/qemu-ppc-static
+usr/bin/qemu-sh4eb-static
+usr/bin/qemu-sh4-static
+usr/bin/qemu-sparc32plus-static
+usr/bin/qemu-sparc64-static
+usr/bin/qemu-sparc-static
+usr/bin/qemu-x86_64-static
+debian/qemu-debootstrap usr/sbin
diff --git a/debian/qemu-user-static.links b/debian/qemu-user-static.links
new file mode 100644
index 0000000..2a38d58
--- /dev/null
+++ b/debian/qemu-user-static.links
@@ -0,0 +1,18 @@
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-alpha-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-cris-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-arm-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-armeb-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-i386-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-m68k-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-microblaze-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-mips-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-mipsel-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-ppc-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-ppc64-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-ppc64abi32-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-sh4-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-sh4eb-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-sparc-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-sparc32plus-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-sparc64-static.1
+usr/share/man/man1/qemu-user-static.1 usr/share/man/man1/qemu-x86_64-static.1
diff --git a/debian/qemu-user-static.manpages b/debian/qemu-user-static.manpages
new file mode 100644
index 0000000..ec39160
--- /dev/null
+++ b/debian/qemu-user-static.manpages
@@ -0,0 +1 @@
+debian/qemu-user-static.1
diff --git a/debian/qemu-user-static.postinst.in b/debian/qemu-user-static.postinst.in
new file mode 100644
index 0000000..86fb450
--- /dev/null
+++ b/debian/qemu-user-static.postinst.in
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+BINFMT_TARGETS= # list of architectures is autogenerated from debian/rules
+
+if [ configure = "$1" ] && [ -x /usr/sbin/update-binfmts ]; then
+ for target in $BINFMT_TARGETS ; do
+ update-binfmts --import qemu-$target
+ done
+fi
+
+#DEBHELPER#
diff --git a/debian/qemu-user-static.preinst b/debian/qemu-user-static.preinst
new file mode 100644
index 0000000..9528d82
--- /dev/null
+++ b/debian/qemu-user-static.preinst
@@ -0,0 +1,28 @@
+#!/bin/sh -e
+
+# Remove a no-longer used conffile
+rm_conffile() {
+ local PKGNAME="$1"
+ local CONFFILE="$2"
+
+ [ -e "$CONFFILE" ] || return 0
+
+ local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')"
+ local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \
+ sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")"
+ if [ "$md5sum" != "$old_md5sum" ]; then
+ echo "Obsolete conffile $CONFFILE has been modified by you."
+ echo "Saving as $CONFFILE.dpkg-bak ..."
+ mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
+ else
+ echo "Removing obsolete conffile $CONFFILE ..."
+ rm -f "$CONFFILE"
+ fi
+}
+
+if dpkg --compare-versions "$2" le 0.13.0+noroms-0ubuntu12; then
+ rm_conffile qemu-kvm-extras-static \
+ /etc/sysctl.d/30-qemu-kvm-extras-static.conf
+fi
+
+#DEBHELPER#
diff --git a/debian/qemu-user-static.prerm.in b/debian/qemu-user-static.prerm.in
new file mode 100644
index 0000000..7e4863b
--- /dev/null
+++ b/debian/qemu-user-static.prerm.in
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+BINFMT_TARGETS= # list of architectures is autogenerated from debian/rules
+
+if [ "$1" = remove ] && [ -x /usr/sbin/update-binfmts ]; then
+ for target in $BINFMT_TARGETS ; do
+ update-binfmts --package qemu-user-static --remove qemu-$target /usr/bin/qemu-$target-static
+ done
+fi
+
+#DEBHELPER#
diff --git a/debian/qemu-user-static.sysctl b/debian/qemu-user-static.sysctl
new file mode 100644
index 0000000..2cb3e41
--- /dev/null
+++ b/debian/qemu-user-static.sysctl
@@ -0,0 +1 @@
+vm.vdso_enabled = 0
diff --git a/debian/qemu-user-static.sysctl.amd64 b/debian/qemu-user-static.sysctl.amd64
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/qemu-user-static.sysctl.amd64
diff --git a/debian/qemu-user.1 b/debian/qemu-user.1
new file mode 100644
index 0000000..84c07aa
--- /dev/null
+++ b/debian/qemu-user.1
@@ -0,0 +1,38 @@
+.\" $Id: qemu-user.1 234 2007-02-07 22:57:18Z guillem $
+.TH qemu\-user 1 2007-02-08 "0.9.0" Debian
+.SH NAME
+qemu\-user \- QEMU User Emulator
+.SH SYNOPSIS
+.B qemu\-user
+.RI [ options ]
+.I program
+.RI [ program-arguments... ]
+.SH DESCRIPTION
+The
+.B qemu\-user
+emulator can run binaries for other architectures but with the same operating
+system as the current one.
+.SH OPTIONS
+.TP
+.BR \-h
+Print this help.
+.TP
+.BR \-g
+Wait gdb connection to port 1234.
+.TP
+.BR \-L " \fI<path>\fP"
+Set the elf interpreter prefix (default=\fI/usr/gnemul/qemu\-arm\fP).
+.TP
+.BR \-s " \fI<size>\fP"
+Set the stack size in bytes (default=\fI524288\fP).
+.TP
+.BR \-d " \fI<options>\fP"
+Activate log (logfile=\fI/tmp/qemu.log\fP)
+.TP
+.BR \-p " \fI<pagesize>\fP"
+Set the host page size to 'pagesize'.
+.SH SEE ALSO
+.BR qemu (1),
+.BR qemu\-img (1).
+.SH AUTHOR
+This manual page was written by Guillem Jover <guillem@debian.org>.
diff --git a/debian/qemu-user.install b/debian/qemu-user.install
new file mode 100644
index 0000000..3fdc525
--- /dev/null
+++ b/debian/qemu-user.install
@@ -0,0 +1,16 @@
+usr/bin/qemu-alpha
+usr/bin/qemu-armeb
+usr/bin/qemu-arm
+usr/bin/qemu-cris
+usr/bin/qemu-m68k
+usr/bin/qemu-microblaze
+usr/bin/qemu-mipsel
+usr/bin/qemu-mips
+usr/bin/qemu-ppc64abi32
+usr/bin/qemu-ppc64
+usr/bin/qemu-ppc
+usr/bin/qemu-sh4eb
+usr/bin/qemu-sh4
+usr/bin/qemu-sparc32plus
+usr/bin/qemu-sparc64
+usr/bin/qemu-sparc
diff --git a/debian/qemu-user.links b/debian/qemu-user.links
new file mode 100644
index 0000000..cadf0a4
--- /dev/null
+++ b/debian/qemu-user.links
@@ -0,0 +1,16 @@
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-alpha.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-cris.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-arm.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-armeb.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-m68k.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-microblaze.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-mips.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-mipsel.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-ppc.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-ppc64.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-ppc64abi32.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-sh4.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-sh4eb.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-sparc.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-sparc32plus.1
+usr/share/man/man1/qemu-user.1 usr/share/man/man1/qemu-sparc64.1
diff --git a/debian/qemu-user.manpages b/debian/qemu-user.manpages
new file mode 100644
index 0000000..7d177e3
--- /dev/null
+++ b/debian/qemu-user.manpages
@@ -0,0 +1 @@
+debian/qemu-user.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3037a48
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,233 @@
+#!/usr/bin/make -f
+
+deb_source := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+deb_version := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+upstream_version := $(shell echo '$(deb_version)' | sed 's/.*://; s/-[^-]*$$//')
+git_rev := $(shell echo '$(upstream_version)' | sed 's/.*+//')
+
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+DEB_HOST_ARCH_CPU = $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+DEB_HOST_GNU_CPU = $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
+DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+QEMU_CPU = $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
+ifeq ($(QEMU_CPU),powerpc)
+ QEMU_CPU = ppc
+endif
+ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf))
+ QEMU_CPU = armv7l
+endif
+
+ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+ conf_arch += --cross-prefix=$(DEB_HOST_GNU_TYPE)- --cpu=$(QEMU_CPU)
+endif
+
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+# Note: We differ from Debian here by favoring the pulseaudio driver, since that's default in Ubuntu.
+# Users override this when calling qemu by exporting the environment variable QEMU_AUDIO_DRV.
+ conf_audio_drv += --audio-drv-list=pa,alsa,sdl,oss
+endif
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+ conf_audio_drv += --audio-drv-list=oss,sdl,pa
+endif
+# KVM on PowerPC needs at least 2.6.33 kernel headers
+ifeq ($(DEB_HOST_ARCH_CPU),powerpc)
+ conf_arch += --disable-kvm
+endif
+
+ifeq ($(DEB_HOST_ARCH_CPU),arm)
+ conf_arch += --enable-kvm
+endif
+
+
+# binfmt support
+ALL_BINFMT_TARGETS=alpha arm armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64
+ifeq ($(DEB_HOST_ARCH),amd64)
+BINFMT_TARGETS=$(filter-out i386 x86_64, $(ALL_BINFMT_TARGETS))
+endif
+ifneq (,$(findstring $(DEB_HOST_ARCH), arm armel armhf))
+BINFMT_TARGETS=$(filter-out arm, $(ALL_BINFMT_TARGETS))
+endif
+ifeq ($(DEB_HOST_ARCH),i386)
+BINFMT_TARGETS=$(filter-out i386, $(ALL_BINFMT_TARGETS))
+endif
+ifeq ($(DEB_HOST_ARCH),powerpc)
+BINFMT_TARGETS=$(filter-out ppc, $(ALL_BINFMT_TARGETS))
+endif
+ifeq ($(DEB_HOST_ARCH),ppc64)
+BINFMT_TARGETS=$(filter-out ppc ppc64 ppc64abi32 , $(ALL_BINFMT_TARGETS))
+endif
+ifeq ($(DEB_HOST_ARCH),sparc)
+BINFMT_TARGETS=$(filter-out sparc sparc32plus sparc64, $(ALL_BINFMT_TARGETS))
+endif
+ifeq ($(DEB_HOST_ARCH),sparc64)
+BINFMT_TARGETS=$(filter-out sparc sparc32plus sparc64, $(ALL_BINFMT_TARGETS))
+endif
+ifeq ($(BINFMT_TARGETS),)
+BINFMT_TARGETS=$(ALL_BINFMT_TARGETS)
+endif
+
+# namespace to use for data files
+NAMESPACE := linaro
+
+# basedir in which to install BIOSes and keymaps below prefix
+DATASUBDIR := share/qemu-$(NAMESPACE)
+DATADIR := /usr/$(DATASUBDIR)
+# XXX doesn't work because it's #defined in the source should send an upstream
+# patch to allow ./configuring that
+#CFLAGS += -DSHARE_SUFFIX="$(DATASUBDIR)"
+
+# Workaround for var tracking blowing up the memory requirements more than
+# tenfold on armel; we'll keep -g enabled but disable this particular feature
+ifneq (,$(findstring $(DEB_HOST_ARCH), armel armhf))
+CFLAGS += -fno-var-tracking
+endif
+
+# XXX for some reason, --remote doesn't work with gitorious so this needs to be
+# run from a local checkout
+# --remote=git://gitorious.org/qemu-maemo/qemu-maemo.git
+get-orig-source:
+ git archive \
+ --format=tar \
+ --prefix=$(deb_source)-$(upstream_version)/ \
+ $(git_rev) \
+ | gzip >$(deb_source)_$(upstream_version).orig.tar.gz
+
+override_dh_auto_configure:
+ # system build
+ mkdir -p $(CURDIR)/system-build
+ cd $(CURDIR)/system-build && \
+ ../configure \
+ --with-pkgversion="Debian $(deb_version)" \
+ --extra-cflags="$(CFLAGS)" \
+ --extra-ldflags="$(LDFLAGS)" \
+ --prefix=/usr \
+ --datadir=$(DATADIR) \
+ --interp-prefix=/etc/qemu-binfmt/%M \
+ --disable-blobs \
+ --disable-strip \
+ --disable-linux-user \
+ --disable-bsd-user \
+ --disable-spice \
+ --enable-fdt \
+ $(conf_arch) $(conf_audio_drv)
+
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+ # user build
+ mkdir -p $(CURDIR)/user-build
+ cd $(CURDIR)/user-build && \
+ ../configure \
+ --with-pkgversion="Debian $(deb_version)" \
+ --extra-cflags="$(CFLAGS)" \
+ --extra-ldflags="$(LDFLAGS)" \
+ --prefix=/usr \
+ --datadir=$(DATADIR) \
+ --interp-prefix=/etc/qemu-binfmt/%M \
+ --disable-blobs \
+ --disable-strip \
+ --disable-system \
+ --enable-uname-release=2.6.32 \
+ $(conf_arch)
+
+ # static user build
+ mkdir -p $(CURDIR)/user-static-build
+ cd $(CURDIR)/user-static-build && \
+ ../configure \
+ --with-pkgversion="Debian $(deb_version)" \
+ --extra-cflags="$(CFLAGS)" \
+ --extra-ldflags="$(LDFLAGS)" \
+ --prefix=/usr \
+ --datadir=$(DATADIR) \
+ --interp-prefix=/etc/qemu-binfmt/%M \
+ --disable-blobs \
+ --disable-strip \
+ --disable-system \
+ --static \
+ --enable-uname-release=2.6.32 \
+ $(conf_arch)
+
+ifeq ($(DEB_HOST_ARCH),amd64)
+ # spice build
+ mkdir -p $(CURDIR)/spice-build
+ cd $(CURDIR)/spice-build && \
+ ../configure \
+ --with-pkgversion="Debian $(deb_version)" \
+ --extra-cflags="$(CFLAGS)" \
+ --extra-ldflags="$(LDFLAGS)" \
+ --prefix=/usr \
+ --interp-prefix=/etc/qemu-binfmt/%M \
+ --disable-blobs \
+ --disable-strip \
+ --disable-system \
+ --target-list="x86_64-softmmu i386-softmmu x86_64-linux-user i386-linux-user" \
+ --enable-spice \
+ $(conf_arch)
+endif
+endif
+
+override_dh_auto_build:
+ # system build
+ dh_auto_build -B system-build --parallel
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+ # user build
+ dh_auto_build -B user-build --parallel
+
+ # static user build
+ dh_auto_build -B user-static-build --parallel
+
+ifeq ($(DEB_HOST_ARCH),amd64)
+ # spice build
+ dh_auto_build -B spice-build --parallel
+endif
+endif
+
+override_dh_auto_install:
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+ dh_auto_install -B user-static-build --destdir=$(CURDIR)/debian/tmp
+ for script in prerm postinst; do \
+ sed -e 's/^BINFMT_TARGETS=.*/BINFMT_TARGETS=\"$(BINFMT_TARGETS)\"/g' \
+ $(CURDIR)/debian/qemu-user-static.$$script.in \
+ > $(CURDIR)/debian/qemu-user-static.$$script; \
+ done
+ for target in $(CURDIR)/debian/tmp/usr/bin/qemu-*; do \
+ install -m 755 $$target $(CURDIR)/debian/tmp/usr/bin/$$(basename $$target)-static; \
+ done
+ dh_auto_install -B user-build --destdir=$(CURDIR)/debian/tmp
+ for target in $(BINFMT_TARGETS) ; do \
+ install -m 644 $(CURDIR)/debian/binfmts/qemu-$$target \
+ $(CURDIR)/debian/qemu-user-static/usr/share/binfmts ; \
+ done
+ f=debian/qemu-user-static.sysctl; [ -f debian/qemu-user-static.sysctl.$(DEB_BUILD_ARCH) ] && f=debian/qemu-user-static.sysctl.$(DEB_BUILD_ARCH); cp $$f debian/qemu-user-static/etc/sysctl.d/30-qemu-user-static.conf
+ifeq ($(DEB_HOST_ARCH),amd64)
+ dh_auto_install -B spice-build --destdir=$(CURDIR)/debian/spice-tmp
+ for target in qemu-i386 qemu-x86_64 qemu-system-x86_64; do \
+ mv $(CURDIR)/debian/spice-tmp/usr/bin/$$target \
+ $(CURDIR)/debian/spice-tmp/usr/bin/$$target-spice; \
+ done
+ mv $(CURDIR)/debian/spice-tmp/usr/bin/qemu-system-i386 \
+ $(CURDIR)/debian/spice-tmp/usr/bin/qemu-spice
+endif
+endif
+ dh_auto_install -B system-build --destdir=$(CURDIR)/debian/tmp
+ mv $(CURDIR)/debian/tmp/usr/share/man/man1/qemu.1 \
+ $(CURDIR)/debian/tmp/usr/share/man/man1/qemu-system.1
+
+override_dh_install:
+ifeq ($(DEB_HOST_ARCH),amd64)
+ dh_install -pqemu-kvm-spice --sourcedir=$(CURDIR)/debian/spice-tmp
+endif
+ dh_install -Nqemu-kvm-spice
+
+override_dh_auto_clean:
+ rm -rf user-static-build user-build system-build spice-build
+
+override_dh_auto_test:
+ # tests are broken ATM
+
+%:
+ dh $@
+
+.PHONY: get-orig-source
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..7423a2d
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+single-debian-patch
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..401a17b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/-rc/~rc/,dversionmangle=s/\+dfsg\d*$// \
+https://launchpad.net/qemu-linaro/+download https://launchpad.net/qemu-linaro/.*/.*/\+download/qemu-linaro-(.+).tar.gz