mirror of
https://github.com/avatartwo/avatar2.git
synced 2026-10-12 02:11:18 +00:00
23 lines
537 B
Bash
Executable File
23 lines
537 B
Bash
Executable File
#!/bin/bash
|
|
distr=`cat /etc/issue`
|
|
ci_distr="Ubuntu 16.04.2 LTS \n \l"
|
|
|
|
if [[ "$distr" == "$ci_distr" ]]
|
|
then
|
|
echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial-security main restricted" >> /etc/apt/sources.list
|
|
apt-get update
|
|
apt-get build-dep -y qemu
|
|
fi
|
|
|
|
cd `dirname "$BASH_SOURCE"`/src/
|
|
git submodule update --init avatar-panda
|
|
|
|
cd avatar-panda
|
|
git submodule update --init dtc
|
|
|
|
mkdir -p ../../build/panda/panda
|
|
cd ../../build/panda/panda
|
|
../../../src/avatar-panda/configure --disable-sdl --target-list=arm-softmmu
|
|
make -j4
|
|
|