mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
build without sdl for travis
This commit is contained in:
@@ -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
8
build
@@ -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
6
configure
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user