mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
add .travis.yml
This commit is contained in:
9
.travis.yml
Normal file
9
.travis.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
language: cpp
|
||||||
|
|
||||||
|
install: |
|
||||||
|
cd "$TRAVIS_BUILD_DIR"
|
||||||
|
./configure -t
|
||||||
|
|
||||||
|
script: |
|
||||||
|
cd "$TRAVIS_BUILD_DIR"
|
||||||
|
./run -n
|
||||||
18
configure
vendored
Executable file
18
configure
vendored
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
y=''
|
||||||
|
while getopts t OPT; do
|
||||||
|
case "$OPT" in
|
||||||
|
t)
|
||||||
|
y='-y'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
shift $(($OPTIND - 1))
|
||||||
|
sudo apt-get update $y
|
||||||
|
# Building SDL for QEMU in Buildroot was rejected upstream because it adds many dependencies:
|
||||||
|
# https://patchwork.ozlabs.org/patch/770684/
|
||||||
|
# We are just using the host SDL for now, if it causes too much problems we might remove it.
|
||||||
|
# libsdl2-dev needs to be installed separatedly from sudo apt-get build-dep qemu
|
||||||
|
# because Ubuntu 16.04's QEMU uses SDL 1.
|
||||||
|
sudo apt-get install $y build-essential libsdl2-dev
|
||||||
|
sudo apt-get build-dep $y qemu
|
||||||
@@ -46,8 +46,7 @@ Reserve 12Gb of disk:
|
|||||||
|
|
||||||
git clone --recursive https://github.com/cirosantilli/linux-kernel-module-cheat
|
git clone --recursive https://github.com/cirosantilli/linux-kernel-module-cheat
|
||||||
cd linux-kernel-module-cheat
|
cd linux-kernel-module-cheat
|
||||||
sudo apt-get install libsdl2-dev
|
./configure
|
||||||
sudo apt-get build-dep qemu
|
|
||||||
./run
|
./run
|
||||||
|
|
||||||
The first build will take a while ([GCC](https://stackoverflow.com/questions/10833672/buildroot-environment-with-host-toolchain), Linux kernel), e.g.:
|
The first build will take a while ([GCC](https://stackoverflow.com/questions/10833672/buildroot-environment-with-host-toolchain), Linux kernel), e.g.:
|
||||||
|
|||||||
5
run
5
run
@@ -53,11 +53,6 @@ make O="$outdir" olddefconfig
|
|||||||
#
|
#
|
||||||
# Even if were an autotools package, there is no general way currently to pass extra configs to it:
|
# Even if were an autotools package, there is no general way currently to pass extra configs to it:
|
||||||
# https://stackoverflow.com/questions/44341188/how-to-pass-extra-custom-configure-autotools-options-to-a-buildroot-package/44341225#44341225
|
# https://stackoverflow.com/questions/44341188/how-to-pass-extra-custom-configure-autotools-options-to-a-buildroot-package/44341225#44341225
|
||||||
#
|
|
||||||
# SDL support was rejected upstream because it adds many dependencies: https://patchwork.ozlabs.org/patch/770684/
|
|
||||||
# We are just using the host SDL for now, if it causes too much problems we might remove it.
|
|
||||||
# libsdl2-dev needs to be installed separatedly from sudo apt-get build-dep qemu
|
|
||||||
# because Ubuntu 16.04's QEMU uses SDL 1.
|
|
||||||
time \
|
time \
|
||||||
env \
|
env \
|
||||||
-u LD_LIBRARY_PATH \
|
-u LD_LIBRARY_PATH \
|
||||||
|
|||||||
Reference in New Issue
Block a user