build without sdl for travis

This commit is contained in:
Ciro Santilli
2017-11-18 19:05:40 +00:00
parent 959ecac538
commit 2f82f78589
3 changed files with 16 additions and 5 deletions

View File

@@ -20,5 +20,10 @@ script: |
# awk: without it, too much stdout (4Mb max)
# If we ignore stdout: Travis kills job because it spent
# too long without any new stdout.
bash -x ./build -j 16 |& awk 'NR % 1000 == 0'
#
# -S otherwise apt-get instlal fails with:
# The following packages have unmet dependencies:
# libsdl2-dev : Depends: libegl1-mesa-dev
# Depends: libgles2-mesa-dev
bash -x ./build -j 16 -S |& awk 'NR % 1000 == 0'
bash -x ./run -e 'init=/poweroff.out' -n

8
build
View File

@@ -2,10 +2,11 @@
set -e
arch=x86_64
extra_targets=''
qemu_sdl='--enable-sdl --with-sdlabi=2.0'
j="$(($(nproc) - 2))"
x11=false
v=0
while getopts 'a:e:j:nt:v' OPT; do
while getopts 'a:e:j:nSt:v' OPT; do
case "$OPT" in
a)
arch="$OPTARG"
@@ -13,6 +14,9 @@ while getopts 'a:e:j:nt:v' OPT; do
j)
j="$OPTARG"
;;
S)
qemu_sdl=''
;;
t)
extra_targets="$extra_args $OPTARG"
;;
@@ -67,7 +71,7 @@ time \
make \
O="$outdir" \
BR2_JLEVEL="$j" \
HOST_QEMU_OPTS="--enable-debug --enable-sdl --extra-cflags='-DDEBUG_PL061=1' --with-sdlabi=2.0 --enable-trace-backends=simple" \
HOST_QEMU_OPTS="--enable-debug --extra-cflags='-DDEBUG_PL061=1' --enable-trace-backends=simple $qemu_sdl" \
V="$v" \
kernel_module-rebuild \
$extra_targets \

6
configure vendored
View File

@@ -1,9 +1,11 @@
#!/usr/bin/env bash
set -ex
set -e
interactive_pkgs=libsdl2-dev
y=''
while getopts t OPT; do
case "$OPT" in
t)
interactive_pkgs=''
y='-y'
;;
esac
@@ -21,6 +23,6 @@ sudo apt-get update $y
sudo apt-get install $y \
build-essential \
coreutils \
libsdl2-dev \
$interactive_pkgs \
;
sudo apt-get build-dep $y qemu