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)
|
# awk: without it, too much stdout (4Mb max)
|
||||||
# If we ignore stdout: Travis kills job because it spent
|
# If we ignore stdout: Travis kills job because it spent
|
||||||
# too long without any new stdout.
|
# 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
|
bash -x ./run -e 'init=/poweroff.out' -n
|
||||||
|
|||||||
8
build
8
build
@@ -2,10 +2,11 @@
|
|||||||
set -e
|
set -e
|
||||||
arch=x86_64
|
arch=x86_64
|
||||||
extra_targets=''
|
extra_targets=''
|
||||||
|
qemu_sdl='--enable-sdl --with-sdlabi=2.0'
|
||||||
j="$(($(nproc) - 2))"
|
j="$(($(nproc) - 2))"
|
||||||
x11=false
|
x11=false
|
||||||
v=0
|
v=0
|
||||||
while getopts 'a:e:j:nt:v' OPT; do
|
while getopts 'a:e:j:nSt:v' OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
a)
|
a)
|
||||||
arch="$OPTARG"
|
arch="$OPTARG"
|
||||||
@@ -13,6 +14,9 @@ while getopts 'a:e:j:nt:v' OPT; do
|
|||||||
j)
|
j)
|
||||||
j="$OPTARG"
|
j="$OPTARG"
|
||||||
;;
|
;;
|
||||||
|
S)
|
||||||
|
qemu_sdl=''
|
||||||
|
;;
|
||||||
t)
|
t)
|
||||||
extra_targets="$extra_args $OPTARG"
|
extra_targets="$extra_args $OPTARG"
|
||||||
;;
|
;;
|
||||||
@@ -67,7 +71,7 @@ time \
|
|||||||
make \
|
make \
|
||||||
O="$outdir" \
|
O="$outdir" \
|
||||||
BR2_JLEVEL="$j" \
|
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" \
|
V="$v" \
|
||||||
kernel_module-rebuild \
|
kernel_module-rebuild \
|
||||||
$extra_targets \
|
$extra_targets \
|
||||||
|
|||||||
6
configure
vendored
6
configure
vendored
@@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -e
|
||||||
|
interactive_pkgs=libsdl2-dev
|
||||||
y=''
|
y=''
|
||||||
while getopts t OPT; do
|
while getopts t OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
t)
|
t)
|
||||||
|
interactive_pkgs=''
|
||||||
y='-y'
|
y='-y'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -21,6 +23,6 @@ sudo apt-get update $y
|
|||||||
sudo apt-get install $y \
|
sudo apt-get install $y \
|
||||||
build-essential \
|
build-essential \
|
||||||
coreutils \
|
coreutils \
|
||||||
libsdl2-dev \
|
$interactive_pkgs \
|
||||||
;
|
;
|
||||||
sudo apt-get build-dep $y qemu
|
sudo apt-get build-dep $y qemu
|
||||||
|
|||||||
Reference in New Issue
Block a user