Commit c5f3f2cc authored by thiolliere's avatar thiolliere
Browse files

Merge branch 'qemu_static' into 'master'

build qemu statically for linux

See merge request !4
parents 421830db b948cdb6
......@@ -41,8 +41,7 @@ matrix:
addons:
apt:
packages:
qemu
qemu-system-arm
# Some package may not be required
python3-gi
python3-gi-cairo
python3-cairo
......@@ -56,6 +55,7 @@ matrix:
python3-dev
libgdk-pixbuf2.0-dev
script:
- ./make-qemu-static.sh
- pip3 install -r requirements-linux.txt
# note: we use mgautierfr version because it resolves packaging pygobject
- pip3 install https://github.com/mgautierfr/pyinstaller/archive/xlib_hook.zip
......
#!/bin/sh
VERSION=2.9.0
DIR=qemu-$VERSION
ARCHIVE=$DIR.tar.xz
wget http://download.qemu-project.org/$ARCHIVE
tar -xf $ARCHIVE
rm $ARCHIVE
cd $DIR
./configure\
--target-list=arm-softmmu\
--static\
--disable-gtk\
--disable-cocoa\
--disable-libusb\
--disable-glusterfs\
--disable-smartcard\
--disable-usb-redir\
--python=python2\
make
cp arm-softmmu/qemu-system-arm ..
cp qemu-img ..
cd ..
......@@ -5,7 +5,7 @@ block_cipher = None
a = Analysis(['pibox-installer/__main__.py'],
pathex=['.'],
binaries=[('/usr/bin/qemu-system-arm', '.'), ('/usr/bin/qemu-img', '.')],
binaries=[('qemu-system-arm', '.'), ('qemu-img', '.')],
datas=[('ui.glade', '.')],
hiddenimports=[],
hookspath=[],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment