[Git][NTPsec/ntpsec][21E17-cross-armhf] CI: Add cross-armhf docker image related jobs r1

James Browning (@jamesb_fe80) gitlab at mg.gitlab.com
Sun May 23 00:03:14 UTC 2021



James Browning pushed to branch 21E17-cross-armhf at NTPsec / ntpsec


Commits:
65ac45a5 by James Browning at 2021-05-22T17:02:30-07:00
CI: Add cross-armhf docker image related jobs r1

- - - - -


4 changed files:

- + .dockerfiles/cross-armhf.dockerfile
- + .dockerfiles/cross-armhf.sh
- .gitlab-ci-docker-images.yml
- .gitlab-ci.yml


Changes:

=====================================
.dockerfiles/cross-armhf.dockerfile
=====================================
@@ -0,0 +1,4 @@
+FROM ubuntu:latest
+
+COPY .dockerfiles/cross-armhf.sh .
+run ./cross-armhf.sh


=====================================
.dockerfiles/cross-armhf.sh
=====================================
@@ -0,0 +1,32 @@
+DEBIAN_FRONTEND="noninteractive"
+PYVER=3.9.5
+OSSLVER=1.1.1k
+apt-get update
+apt-get install -y bison gcc gcc-arm-linux-gnueabihf git make netbase pps-tools python3.9 python-is-python2 wget
+wget -nv \
+	https://www.python.org/ftp/python/${PYVER}/Python-${PYVER}.tar.xz \
+	https://artfiles.org/openssl.org/source/openssl-${OSSLVER}.tar.gz
+tar -zxpf openssl-${OSSLVER}.tar.gz
+cd openssl-${OSSLVER}
+sed "s| -- | |g" -i Configurations/unix-Makefile.tmpl
+./Configure linux-armv4 \
+	--cross-compile-prefix=arm-linux-gnueabihf- \
+	--prefix=/srv/armhf --openssldir=/srv/armhf \
+	--api=1.0.0 \
+	--debug \
+	--strict-warnings \
+    &&make install
+cd ..
+tar -Jxpf Python-${PYVER}.tar.xz
+cd Python-${PYVER}
+./configure --prefix=/srv/armhf \
+	--with-openssl=/srv/armhf \
+	--build=amd64-pc-linux-gnu \
+	--host=arm-linux-gnueabihf \
+	--target=arm-linux-gnueabihf \
+	--disable-ipv6 \
+	ac_cv_file__dev_ptmx=no \
+	ac_cv_file__dev_ptc=no \
+    &&make install -k
+cd ..
+rm -rf Python* openssl*


=====================================
.gitlab-ci-docker-images.yml
=====================================
@@ -82,3 +82,6 @@ build-ubuntu-latest:
 
 build-ubuntu-rolling:
   <<: *build_definition
+
+build-cross-armhf:
+  <<: *build_definition


=====================================
.gitlab-ci.yml
=====================================
@@ -379,6 +379,14 @@ cross-build:
   rules:
     - if: '$CI_COMMIT_BRANCH && $CI_PROJECT_PATH == "NTPsec/ntpsec"'
 
+cross-armhf-build:
+  <<: *job_definition_allow_failure
+  image: $CI_REGISTRY/ntpsec/ntpsec/cross-armhf
+  script:
+    - PYTHON_VERSION=3.9 PYTAG=cpython39 pyext_PATTERN="%s.so" PYTHON_LDFLAGS='-lpthread -ldl' ./waf configure --disable-doc --disable-manpage --disable-nts --cross-compiler=arm-linux-gnueabihf-gcc --cross-cflags '-I/srv/armhf/include -I/srv/armhf/include/python3.9' --cross-ldflags '-L/srv/armhf/lib' --pythondir=/srv/armhf/lib/python2.7/dist-packages --pythonarchdir=/srv/armhf/lib/python2.7/dist-packages build -k --enable-pylib ext
+    - PYTHON_VERSION=3.9 PYTAG=cpython39 pyext_PATTERN="%s.so" PYTHON_LDFLAGS='-lpthread -ldl' ./waf configure --disable-doc --disable-manpage --disable-nts --cross-compiler=arm-linux-gnueabihf-gcc --cross-cflags '-I/srv/armhf/include -I/srv/armhf/include/python3.9' --cross-ldflags '-L/srv/armhf/lib' --pythondir=/srv/armhf/lib/python2.7/dist-packages --pythonarchdir=/srv/armhf/lib/python2.7/dist-packages build -k
+  tags:
+
 gentoo-basic:
   <<: *job_definition
   image: $CI_REGISTRY/ntpsec/ntpsec/gentoo



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/65ac45a59bb886746977a46db64c410a7a5f6d43

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/65ac45a59bb886746977a46db64c410a7a5f6d43
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20210523/f4b09657/attachment-0001.htm>


More information about the vc mailing list