Commit 75d5c84b authored by Jan Kiszka's avatar Jan Kiszka

ci: Add userspace build

This also builds the Xenomai userspace as part of CI.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent f8590d97
...@@ -5,7 +5,9 @@ addons: ...@@ -5,7 +5,9 @@ addons:
apt: apt:
packages: packages:
- gcc-aarch64-linux-gnu - gcc-aarch64-linux-gnu
- libc6-dev-arm64-cross
- gcc-arm-linux-gnueabihf - gcc-arm-linux-gnueabihf
- libc6-dev-armhf-cross
- patch - patch
- quilt - quilt
- wget - wget
...@@ -25,11 +27,17 @@ install: ...@@ -25,11 +27,17 @@ install:
before_script: before_script:
- case "${ARCH}" in - case "${ARCH}" in
"arm64") export CROSS_COMPILE=aarch64-linux-gnu- "arm64")
export CROSS_COMPILE=aarch64-linux-gnu-
export CONFIGURE_OPTS="--host=aarch64-linux-gnu --with-cc=aarch64-linux-gnu-gcc"
;; ;;
"arm" ) export CROSS_COMPILE=arm-linux-gnueabihf- "arm" )
export CROSS_COMPILE=arm-linux-gnueabihf-
export CONFIGURE_OPTS="--host=arm-linux-gnueabihf --with-cc=arm-linux-gnueabihf-gcc"
;; ;;
"x86" ) export CROSS_COMPILE= "x86" )
export CROSS_COMPILE=
export CONFIGURE_OPTS="--enable-dlopen-libs --enable-lazy-setsched"
;; ;;
esac esac
- pushd ${KDIR} - pushd ${KDIR}
...@@ -70,10 +78,15 @@ before_script: ...@@ -70,10 +78,15 @@ before_script:
- popd - popd
script: script:
- ./scripts/prepare-kernel.sh --ipipe=/tmp/ipipe.patch --arch=${ARCH} --linux=${KDIR} - scripts/prepare-kernel.sh --ipipe=/tmp/ipipe.patch --arch=${ARCH} --linux=${KDIR}
- cd ${KDIR} - pushd ${KDIR}
- make -j $(nproc) olddefconfig - make -j $(nproc) olddefconfig
- make -j $(nproc) all - make -j $(nproc) all
- popd
- scripts/bootstrap
- ./configure --enable-smp ${CONFIGURE_OPTS}
- make -j $(nproc)
matrix: matrix:
include: include:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment