summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2019-02-13 15:14:28 +0200
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-02-13 16:20:48 +0200
commite55d439a9ba744227fb4c9d727338276b78871d4 (patch)
tree3d84a08013695f2d3566357cb57fb5e4f3ab7c66
parentc551087d967643b9983057a2bf0813205f433120 (diff)
gitlab-CI: add armhf
Add CI for armhf environment. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
-rw-r--r--.gitlab-ci.yml28
-rw-r--r--Dockerfile.debian-armhf46
-rw-r--r--meson-cross-armhf.txt12
3 files changed, 86 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4bd4130f..ad938979 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,6 +58,17 @@ build:tests-debian-meson:
paths:
- meson-test-list.txt
+build:tests-debian-meson-armhf:
+ image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf:latest
+ stage: build
+ script:
+ - export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/
+ - meson --cross-file meson-cross-armhf.txt build
+ - ninja -C build
+ artifacts:
+ paths:
+ - build
+
build:tests-debian-meson-arm64:
image: $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64:latest
stage: build
@@ -143,6 +154,23 @@ containers:igt-debian:
- docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian -f Dockerfile.debian .
- docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian
+containers:igt-debian-armhf:
+ stage: containers
+ image: docker:stable
+ only:
+ changes:
+ - Dockerfile.debian-armhf
+ - .gitlab-ci.yml
+ services:
+ - docker:dind
+ variables:
+ DOCKER_HOST: tcp://docker:2375
+ DOCKER_DRIVER: overlay2
+ script:
+ - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+ - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf -f Dockerfile.debian-armhf .
+ - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf
+
containers:igt-debian-arm64:
stage: containers
image: docker:stable
diff --git a/Dockerfile.debian-armhf b/Dockerfile.debian-armhf
new file mode 100644
index 00000000..81ad5c61
--- /dev/null
+++ b/Dockerfile.debian-armhf
@@ -0,0 +1,46 @@
+FROM debian:stretch-backports
+
+RUN apt-get update
+RUN apt-get install -y \
+ flex \
+ bison \
+ pkg-config \
+ x11proto-dri2-dev \
+ python-docutils \
+ valgrind \
+ peg
+
+RUN dpkg --add-architecture armhf
+RUN apt-get update
+RUN apt-get install -y \
+ gcc-arm-linux-gnueabihf \
+ libpciaccess-dev:armhf \
+ libkmod-dev:armhf \
+ libprocps-dev:armhf \
+ libunwind-dev:armhf \
+ libdw-dev:armhf \
+ zlib1g-dev:armhf \
+ liblzma-dev:armhf \
+ libcairo-dev:armhf \
+ libpixman-1-dev:armhf \
+ libudev-dev:armhf \
+ libgsl-dev:armhf \
+ libasound2-dev:armhf \
+ libjson-c-dev:armhf \
+ libcurl4-openssl-dev:armhf \
+ libxrandr-dev:armhf \
+ libxv-dev:armhf
+
+RUN apt-get install -t stretch-backports -y \
+ meson \
+ libdrm-dev:armhf \
+ qemu-user \
+ qemu-user-static
+
+# autotools build deps
+RUN apt-get install -y \
+ autoconf \
+ automake \
+ xutils-dev \
+ libtool \
+ make
diff --git a/meson-cross-armhf.txt b/meson-cross-armhf.txt
new file mode 100644
index 00000000..36260faa
--- /dev/null
+++ b/meson-cross-armhf.txt
@@ -0,0 +1,12 @@
+[binaries]
+c = '/usr/bin/arm-linux-gnueabihf-gcc'
+ar = '/usr/bin/arm-linux-gnueabihf-gcc-ar'
+strip = '/usr/bin/arm-linux-gnueabihf-strip'
+pkgconfig = 'pkg-config'
+exe_wrapper = 'qemu-arm'
+
+[host_machine]
+system = 'linux'
+cpu_family = 'arm'
+cpu = 'armv7'
+endian = 'little'