blob: bb9e6b7eb0864db04a8cd3dd4d4d58e3233ac440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpatch/dpatch.make
unexport LDFLAGS
build: build-stamp
build-stamp: patch-stamp
dh_testdir
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib64 \
--libexecdir=/usr/lib \
--localstatedir=/var \
--docdir=/usr/share/doc/packages \
--firmwarepath=/usr/share/qemu-arm-static \
--python=/usr/bin/python3 \
--extra-cflags="$(CFLAGS) $(CPPFLAGS)" \
--target-list="arm-linux-user,aarch64-linux-user,riscv32-linux-user,riscv64-linux-user" \
--disable-fuzzing \
--disable-stack-protector \
--disable-strip \
--without-default-devices \
--disable-system \
--enable-linux-user \
--disable-tools \
--disable-guest-agent \
--static \
--disable-modules \
--disable-pie \
--disable-docs \
--audio-drv-list="" \
--disable-blobs \
--disable-bochs \
--disable-capstone \
--disable-cloop \
--enable-coroutine-pool \
--disable-dmg \
--disable-fdt \
--disable-iconv \
--disable-kvm \
--disable-libdaxctl \
--disable-linux-io-uring \
--disable-malloc-trim \
--disable-membarrier \
--disable-parallels \
--disable-plugins \
--disable-qcow1 \
--disable-qed \
--disable-replication \
--disable-sheepdog \
--disable-safe-stack \
--disable-slirp \
--disable-tpm \
--disable-vdi \
--disable-vhost-crypto \
--disable-vhost-kernel \
--disable-vhost-net \
--disable-vhost-scsi \
--disable-vhost-user \
--disable-vhost-user-blk-server \
--disable-vhost-user-fs \
--disable-vhost-vsock \
--disable-vnc \
--disable-vvfat \
--disable-xkbcommon
dh_auto_build
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
make DESTDIR=$(CURDIR)/debian/qemu-arm-static install
mkdir -p $(CURDIR)/debian/qemu-arm-static/usr/sbin/
install -m755 scripts/qemu-binfmt-conf.sh $(CURDIR)/debian/qemu-arm-static/usr/sbin/
mv $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-arm $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-arm-static
mv $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-aarch64 $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-arm64-static
mv $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-riscv32 $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-riscv32-static
mv $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-riscv64 $(CURDIR)/debian/qemu-arm-static/usr/bin/qemu-riscv64-static
rm -rf $(CURDIR)/debian/qemu-arm-static/usr/share
rm -rf $(CURDIR)/debian/qemu-arm-static/usr/etc
rm -rf $(CURDIR)/debian/qemu-arm-static/etc
rm -rf $(CURDIR)/debian/qemu-arm-static/usr/libexec/
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_install
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_install
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|