[gnome-build-meta/lle-bout/ppc64le: 8/8] Add CI for ppc64le
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/lle-bout/ppc64le: 8/8] Add CI for ppc64le
- Date: Tue, 21 Jul 2020 13:25:44 +0000 (UTC)
commit 7d657532ad3eac0a335e83f2f7e05385b27ba9b5
Author: Leo Le Bouter <lle-bout zaclys net>
Date: Tue Jul 7 07:48:38 2020 +0000
Add CI for ppc64le
* Disable failing debug symbols optimization on ppc64le
* freedesktop-sdk understands powerpc64le instead of ppc64le
* Enable POWER9 optimizations
.gitlab-ci.yml | 16 ++++++++++++++++
elements/core-deps/babl.bst | 2 +-
elements/freedesktop-sdk.bst | 4 ++++
project.conf | 6 ++++++
4 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 42cc1c09..1d7f61f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ variables:
DOCKER_IMAGE_ID: "e60e2dccd1ac4e928d62472676762d8e3e4a1406"
DOCKER_AMD64: "${DOCKER_REGISTRY}/bst14/amd64:${DOCKER_IMAGE_ID}"
DOCKER_AARCH64: "${DOCKER_REGISTRY}/bst14/arm64:${DOCKER_IMAGE_ID}"
+ DOCKER_PPC64LE: "${DOCKER_REGISTRY}/bst14/ppc64le:${DOCKER_IMAGE_ID}"
stages:
- track
@@ -198,6 +199,14 @@ default:
variables:
ARCH: arm
+.ppc64le: &ppc64le
+ image: "${DOCKER_PPC64LE}"
+ tags:
+ - ppc64le
+ - gnome-build-meta
+ variables:
+ ARCH: ppc64le
+
#
# "Real" CI jobs
#
@@ -235,6 +244,10 @@ build-gnome-core-arm:
extends: .build-template
<<: *arm
+build-gnome-core-ppc64le:
+ extends: .build-template
+ <<: *ppc64le
+
vm-image-x86_64:
extends: .vm-image-template
@@ -334,6 +347,9 @@ flatpak-arm:
extends: .flatpak-template
<<: *arm
+flatpak-ppc64le:
+ extends: .flatpak-template
+ <<: *ppc64le
flatpak-finish:
stage: finish_flatpak
diff --git a/elements/core-deps/babl.bst b/elements/core-deps/babl.bst
index 374c95a2..0aaa6af5 100644
--- a/elements/core-deps/babl.bst
+++ b/elements/core-deps/babl.bst
@@ -16,6 +16,6 @@ depends:
- freedesktop-sdk.bst:bootstrap-import.bst
(?):
-- arch == "i686":
+- (arch == "i686" or arch == "ppc64le"):
variables:
optimize-debug: 'false'
diff --git a/elements/freedesktop-sdk.bst b/elements/freedesktop-sdk.bst
index 92807534..ed317cf6 100644
--- a/elements/freedesktop-sdk.bst
+++ b/elements/freedesktop-sdk.bst
@@ -7,3 +7,7 @@ sources:
config:
options:
target_arch: '%{arch}'
+ (?):
+ - arch == "ppc64le":
+ target_arch: "powerpc64le"
+ bootstrap_build_arch: "powerpc64le"
diff --git a/project.conf b/project.conf
index cbdf905c..028fa287 100644
--- a/project.conf
+++ b/project.conf
@@ -31,6 +31,7 @@ options:
- aarch64
- i686
- x86_64
+ - ppc64le
# Source aliases.
@@ -94,6 +95,10 @@ environment:
CFLAGS: "%{flags_aarch64}"
CXXFLAGS: "%{flags_aarch64}"
LDFLAGS: "%{ldflags_defaults}"
+ - arch == "ppc64le":
+ CFLAGS: "%{flags_ppc64le}"
+ CXXFLAGS: "%{flags_ppc64le}"
+ LDFLAGS: "%{ldflags_defaults}"
# Some overrides to element configuration based on type
#
@@ -224,6 +229,7 @@ variables:
flags_i686: "-march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign %{common_flags}
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection %{local_flags}"
flags_aarch64: "%{common_flags} -fasynchronous-unwind-tables -fstack-clash-protection %{local_flags}"
flags_arm: "%{common_flags} %{local_flags}"
+ flags_ppc64le: "%{common_flags} -mcpu=power9 -mtune=power9 %{local_flags}"
ldflags_defaults: "-Wl,-z,relro,-z,now -Wl,--as-needed -L%{libdir}"
local_flags: ''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]