Skip to contentSkip to conversation

Updates, improved support for building latest revisions

PATCH New Jan Kiszka 1 participant 11 messages Feb 10, 2020

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

cover Updates, improved support for building latest revisions

This is part I which should make us ready for 3.1. What is missing are a number of CI test enhancements and cleanups that Quirin is working on. Will come on top.

Jan

CC Quirin Gylstorff <[email protected]>

Jan Kiszka (9):
Update Isar revision
xenomai: Update to 3.0.10
Switch to Xenomai 3.1
Switch Xenomai 3.0 to kernel 4.4
Provide Xenomai 3.0.x target
xenomai: Consolidate master and next recipes
linux-xenomai: Enable latest 4.4 build with Xenomai 3.0
linux-xenomai: Update to ipipe-core-4.19.94-cip18-x86-10 Switch to github as source explicitly

Quirin Gylstorff (1):
recipes-kernel/linux: add exception handling

 conf/distro/include/xenomai-version.inc            |  12 +-
 conf/distro/xenomai-demo.conf                      |   2 +
 conf/machine/hikey.conf                            |   1 -
 conf/machine/qemu-arm64.conf                       |   1 -
 kas.yml                                            |  13 +-
 opt-linux-latest.yml                               |   5 +-
 opt-xenomai-3.0.x.yml                              |  17 ++
 opt-xenomai-next.yml                               |   3 -
 ...nel-linux-build-kernel-Allow-kernel-build.patch | 173 ---------------------
 recipes-kernel/linux/linux-xenomai.inc             |   9 +-
 recipes-kernel/linux/linux-xenomai_4.14.bb         |   6 +-
 recipes-kernel/linux/linux-xenomai_4.19.bb         |  11 +-
 recipes-kernel/linux/linux-xenomai_4.4.bb          |  20 +++
 recipes-kernel/linux/linux-xenomai_latest.bb       |  25 ++-
 .../{xenomai_3.0.9.bb => xenomai_3.0.10.bb}        |   2 +-
 .../xenomai/{xenomai_next.bb => xenomai_3.1.bb}    |   8 +-
 recipes-xenomai/xenomai/xenomai_master.bb          |   8 +-
 recipes-xenomai/xenomai/xenomai_next.bb            |  22 +--
 .../{xenomai_stable.bb => xenomai_stable-3.0.x.bb} |   7 +-
 19 files changed, 93 insertions(+), 252 deletions(-)
 create mode 100644 opt-xenomai-3.0.x.yml
 delete mode 100644 patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch
 create mode 100644 recipes-kernel/linux/linux-xenomai_4.4.bb
 rename recipes-xenomai/xenomai/{xenomai_3.0.9.bb => xenomai_3.0.10.bb} (79%)
 copy recipes-xenomai/xenomai/{xenomai_next.bb => xenomai_3.1.bb} (55%)
 mode change 100644 => 120000 recipes-xenomai/xenomai/xenomai_next.bb
 rename recipes-xenomai/xenomai/{xenomai_stable.bb => xenomai_stable-3.0.x.bb} (56%)
Signature · 1 line
2.16.4
author
#1 lore raw

PATCH 1/10 Update Isar revision

From: Jan Kiszka <[email protected]>

This comes with a switch of the kernel build recipe which allows us to drop the Isar patch. We just need to set a PV in linux-xenomai_latest that starts with a number.

---
 kas.yml                                            |   6 +-
 opt-linux-latest.yml                               |   5 +-
 opt-xenomai-next.yml                               |   3 -
 ...nel-linux-build-kernel-Allow-kernel-build.patch | 173 ---------------------
 recipes-kernel/linux/linux-xenomai_latest.bb       |   4 +-
 5 files changed, 4 insertions(+), 187 deletions(-)
 delete mode 100644 patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch
kas.yml +1 -5
index 78bd83d..26debc4 100644
@@ -20,13 +20,9 @@ repos:
 
   isar:
     url: https://github.com/ilbers/isar.git
-    refspec: a5d575a15285b7f66efbf3e2409a7f65d25ff15e
+    refspec: 18b3e9a15d1f054f5d1e697c66a8f1f9befc0537
     layers:
       meta:
-    patches:
-      latest-kernel:
-        repo: xenomai
-        path: patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch
 
 bblayers_conf_header:
   standard: |
opt-linux-latest.yml +1 -4
index 25d9606..a55c78f 100644
@@ -12,9 +12,6 @@
 header:
   version: 8
 
-# lava uses nfs to deploy the image. For this we need a tarball instead of
-# full image
-
 local_conf_header:
   linux-xenomai-latest: |
-    PREFERRED_VERSION_linux-xenomai = "latest%"
+    PREFERRED_VERSION_linux-xenomai = "9999-latest"
opt-xenomai-next.yml +0 -3
index 94381bd..6efaa71 100644
@@ -12,9 +12,6 @@
 header:
   version: 8
 
-# lava uses nfs to deploy the image. For this we need a tarball instead of
-# full image
-
 local_conf_header:
   xenomai-latest: |
     PREFERRED_VERSION_xenomai = "next"
patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch deleted +0 -173

173 lines not on this page · raw message

recipes-kernel/linux/linux-xenomai_latest.bb +2 -2
index 7ad4fed..4aa246d 100644
@@ -11,14 +11,14 @@
 
 require recipes-kernel/linux/linux-xenomai.inc
 
+PV = "9999-latest"
+
 SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe-x86.git;protocol=https;branch=ipipe-x86-4.19.y"
 SRCREV_amd64 = "${AUTOREV}"
 
 SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;branch=ipipe/master"
 SRCREV_arm64 = "${AUTOREV}"
 
-
 SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe-arm.git;protocol=https;branch=ipipe/master"
 SRCREV_armhf = "${AUTOREV}"
 S = "${WORKDIR}/git"
-
Signature · 1 line
2.16.4
author
#2 lore raw

PATCH 2/10 xenomai: Update to 3.0.10

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

---
 conf/distro/include/xenomai-version.inc                         | 2 +-
 recipes-xenomai/xenomai/{xenomai_3.0.9.bb => xenomai_3.0.10.bb} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename recipes-xenomai/xenomai/{xenomai_3.0.9.bb => xenomai_3.0.10.bb} (100%)
conf/distro/include/xenomai-version.inc +1 -1
index 524ca39..286d3a7 100644
@@ -10,7 +10,7 @@
 #
 
 XENOMAI_NEXT_KERNEL_VERSION = "4.19%"
-XENOMAI_STABLE_VERSION_LIST = "stable 3.0 3.0% 3.0.% 3.0.9"
+XENOMAI_STABLE_VERSION_LIST = "stable 3.0 3.0% 3.0.% 3.0.10"
 XENOMAI_STABLE_KERNEL_VERSION = "4.14%"
 # if PREFERRED_VERSION_xenomai contains any item from XENOMAI_STABLE_VERSION_LIST use
 # XENOMAI_STABLE_KERNEL_VERSION
recipes-xenomai/xenomai/xenomai_3.0.10.bb renamed from recipes-xenomai/xenomai/xenomai_3.0.9.bb +0 -0
similarity index 100%
rename from recipes-xenomai/xenomai/xenomai_3.0.9.bb
rename to recipes-xenomai/xenomai/xenomai_3.0.10.bb
Signature · 1 line
2.16.4
author
#3 lore raw

PATCH 3/10 Switch to Xenomai 3.1

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Make 3.1 our distro's default version, removing the previous "stable" version. The latter is currently equivalent to master.

The idea of setting the default to a release is providing the user a well-defined version, rather than stable of the day. We will introduce a stable head kas fragment once needed.

With "stable" gone, we also need to update the kernel version selection magic. It is only needed for "XENOMAI_3_0" now.

---
 conf/distro/include/xenomai-version.inc                      | 12 ++++++------
 conf/distro/xenomai-demo.conf                                |  2 ++
 conf/machine/hikey.conf                                      |  1 -
 conf/machine/qemu-arm64.conf                                 |  1 -
 kas.yml                                                      |  4 +---
 .../xenomai/{xenomai_stable.bb => xenomai_3.1.bb}            |  9 ++++-----
 6 files changed, 13 insertions(+), 16 deletions(-)
 rename recipes-xenomai/xenomai/{xenomai_stable.bb => xenomai_3.1.bb} (59%)
conf/distro/include/xenomai-version.inc +6 -6
index 286d3a7..2696b5c 100644
@@ -9,9 +9,9 @@
 # SPDX-License-Identifier: MIT
 #
 
-XENOMAI_NEXT_KERNEL_VERSION = "4.19%"
-XENOMAI_STABLE_VERSION_LIST = "stable 3.0 3.0% 3.0.% 3.0.10"
-XENOMAI_STABLE_KERNEL_VERSION = "4.14%"
-# if PREFERRED_VERSION_xenomai contains any item from XENOMAI_STABLE_VERSION_LIST use
-# XENOMAI_STABLE_KERNEL_VERSION
-PREFERRED_VERSION_linux-xenomai ?= "${@bb.utils.contains_any('PREFERRED_VERSION_xenomai','${XENOMAI_STABLE_VERSION_LIST}','${XENOMAI_STABLE_KERNEL_VERSION}','${XENOMAI_NEXT_KERNEL_VERSION}',d) }"
+XENOMAI_DEFAULT_KERNEL_VERSION = "4.19%"
+XENOMAI_3_0_VERSION_LIST = "3.0 3.0% 3.0.% 3.0.10"
+XENOMAI_3_0_KERNEL_VERSION = "4.14%"
+# if PREFERRED_VERSION_xenomai contains any item from XENOMAI_3_0_VERSION_LIST use
+# XENOMAI_3_0_KERNEL_VERSION
+PREFERRED_VERSION_linux-xenomai ?= "${@bb.utils.contains_any('PREFERRED_VERSION_xenomai','${XENOMAI_3_0_VERSION_LIST}','${XENOMAI_3_0_KERNEL_VERSION}','${XENOMAI_DEFAULT_KERNEL_VERSION}',d) }"
conf/distro/xenomai-demo.conf +2 -0
index 333d532..1c9209d 100644
@@ -10,6 +10,8 @@
 #
 
 require conf/distro/debian-buster.conf
+
+PREFERRED_VERSION_xenomai ?= "3.1%"
 include conf/distro/include/xenomai-version.inc
 
 HOST_DISTRO ?= "debian-buster"
conf/machine/hikey.conf +0 -1
index c28c350..9c90b9d 100644
@@ -16,6 +16,5 @@ IMAGER_INSTALL += "${GRUB_BOOTLOADER_INSTALL}"
 
 IMAGE_PREINSTALL_append = " firmware-ti-connectivity"
 
-PREFERRED_VERSION_xenomai = "next"
 # DTB for testing
 DTB_FILE = "hi6220-hikey.dtb"
conf/machine/qemu-arm64.conf +0 -1
index 472f619..a633095 100644
@@ -12,4 +12,3 @@
 require qemu-machine.inc
 
 DISTRO_ARCH = "arm64"
-PREFERRED_VERSION_xenomai = "next"
kas.yml +1 -3
index 26debc4..f4ee0e5 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2018
+# Copyright (c) Siemens AG, 2018-2020
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -35,8 +35,6 @@ local_conf_header:
     CONF_VERSION = "1"
   cross: |
     ISAR_CROSS_COMPILE = "1"
-  xenomai-version: |
-    PREFERRED_VERSION_xenomai ?= "stable"
   github-mirror: |
     PREMIRRORS_prepend = " \
         git://gitlab.denx.de/Xenomai/ git://github.com/xenomai-ci/ \n"
recipes-xenomai/xenomai/xenomai_3.1.bb renamed from recipes-xenomai/xenomai/xenomai_stable.bb +4 -5
similarity index 59%
rename from recipes-xenomai/xenomai/xenomai_stable.bb
rename to recipes-xenomai/xenomai/xenomai_3.1.bb
index a0f109c..3af1d98 100644
@@ -1,10 +1,10 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019
+# Copyright (c) Siemens AG, 2020
 #
 # Authors:
-#  Quirin Gylstorff <[email protected]>
+#  Jan Kiszka <[email protected]>
 #
 # SPDX-License-Identifier: MIT
 #
@@ -12,7 +12,6 @@
 require xenomai.inc
 
 SRC_URI = " \
-    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=stable/v3.0.x"
-SRCREV = "${AUTOREV}"
-PV = "stable"
+    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=master;tag=v${PV}"
+
 S = "${WORKDIR}/git"
Signature · 1 line
2.16.4
author
#4 lore raw

PATCH 4/10 Switch Xenomai 3.0 to kernel 4.4

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

The reason for this is that only 4.4 is still maintained, thus should rather be exposed to testing.

---
 conf/distro/include/xenomai-version.inc   |  2 +-
 recipes-kernel/linux/linux-xenomai_4.4.bb | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 recipes-kernel/linux/linux-xenomai_4.4.bb
conf/distro/include/xenomai-version.inc +1 -1
index 2696b5c..9bf3087 100644
@@ -11,7 +11,7 @@
 
 XENOMAI_DEFAULT_KERNEL_VERSION = "4.19%"
 XENOMAI_3_0_VERSION_LIST = "3.0 3.0% 3.0.% 3.0.10"
-XENOMAI_3_0_KERNEL_VERSION = "4.14%"
+XENOMAI_3_0_KERNEL_VERSION = "4.4%"
 # if PREFERRED_VERSION_xenomai contains any item from XENOMAI_3_0_VERSION_LIST use
 # XENOMAI_3_0_KERNEL_VERSION
 PREFERRED_VERSION_linux-xenomai ?= "${@bb.utils.contains_any('PREFERRED_VERSION_xenomai','${XENOMAI_3_0_VERSION_LIST}','${XENOMAI_3_0_KERNEL_VERSION}','${XENOMAI_DEFAULT_KERNEL_VERSION}',d) }"
recipes-kernel/linux/linux-xenomai_4.4.bb new file +20 -0
new file mode 100644
index 0000000..f76e847
@@ -0,0 +1,20 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2018-2020
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+require recipes-kernel/linux/linux-xenomai.inc
+
+SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe.git;protocol=https;nobranch=1;tag=ipipe-core-4.4.208-cip41-x86-21"
+PV_amd64 = "4.4.208+"
+
+SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe.git;protocol=https;nobranch=1;tag=ipipe-core-4.4.176-arm-10"
+PV_armhf = "4.4.176+"
+
+S = "${WORKDIR}/git"
Signature · 1 line
2.16.4
author
#5 lore raw

PATCH 5/10 Provide Xenomai 3.0.x target

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

This allows to build the latest revision from stable/v3.0.x, primarily for testing purposes.

---
 opt-xenomai-3.0.x.yml                           | 17 +++++++++++++++++
 recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb | 19 +++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 opt-xenomai-3.0.x.yml
 create mode 100644 recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb
opt-xenomai-3.0.x.yml new file +17 -0
new file mode 100644
index 0000000..591f3fc
@@ -0,0 +1,17 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2020
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+  version: 8
+
+local_conf_header:
+  xenomai-3-0-x: |
+    PREFERRED_VERSION_xenomai = "stable-3.0.x"
recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb new file +19 -0
new file mode 100644
index 0000000..34cb4b1
@@ -0,0 +1,19 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2018-2020
+#
+# Authors:
+#  Quirin Gylstorff <[email protected]>
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+require xenomai.inc
+
+SRC_URI = " \
+    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=stable/v3.0.x"
+SRCREV = "${AUTOREV}"
+
+S = "${WORKDIR}/git"
Signature · 1 line
2.16.4
author
#6 lore raw

PATCH 6/10 xenomai: Consolidate master and next recipes

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

These can be come one, just using a link from one to the other.

---
 recipes-xenomai/xenomai/xenomai_master.bb |  8 ++++----
 recipes-xenomai/xenomai/xenomai_next.bb   | 22 +---------------------
 2 files changed, 5 insertions(+), 25 deletions(-)
 mode change 100644 => 120000 recipes-xenomai/xenomai/xenomai_next.bb
recipes-xenomai/xenomai/xenomai_master.bb +4 -4
index d95ede6..0852c0c 100644
@@ -1,10 +1,11 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019
+# Copyright (c) Siemens AG, 2018-2020
 #
 # Authors:
 #  Quirin Gylstorff <[email protected]>
+#  Jan Kiszka <[email protected]>
 #
 # SPDX-License-Identifier: MIT
 #
@@ -12,8 +13,7 @@
 require xenomai.inc
 
 SRC_URI = " \
-    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=master"
+    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=${PV}"
 SRCREV = "${AUTOREV}"
-PV = "master"
-S = "${WORKDIR}/git"
 
+S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_next.bb deleted +0 -21
deleted file mode 100644
index e216124..0000000
@@ -1,21 +0,0 @@
-#
-# Xenomai Real-Time System
-#
-# Copyright (c) Siemens AG, 2018
-#
-# Authors:
-#  Jan Kiszka <[email protected]>
-#
-# SPDX-License-Identifier: MIT
-#
-
-require xenomai.inc
-
-SRC_URI = " \
-    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=next"
-SRCREV = "${AUTOREV}" 
-PV = "next"
-
-S = "${WORKDIR}/git"
-
-
recipes-xenomai/xenomai/xenomai_next.bb new file +1 -0
new file mode 120000
index 0000000..69b56dc
@@ -0,0 +1 @@
+xenomai_master.bb
\ No newline at end of file
Signature · 1 line
2.16.4
author
#7 lore raw

PATCH 7/10 linux-xenomai: Enable latest 4.4 build with Xenomai 3.0

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

When building with Xenomai 3.0, the meaning of "latest kernel" is different from 3.1 and head. Rather than adding some opt-linux-latest-4.4.yml, enhance the linux-xenomai_latest recipe with that knowledge.

---
 opt-linux-latest.yml                         |  2 +-
 recipes-kernel/linux/linux-xenomai.inc       |  1 +
 recipes-kernel/linux/linux-xenomai_latest.bb | 25 +++++++++++++++++--------
 3 files changed, 19 insertions(+), 9 deletions(-)
opt-linux-latest.yml +1 -1
index a55c78f..7cf291a 100644
@@ -14,4 +14,4 @@ header:
 
 local_conf_header:
   linux-xenomai-latest: |
-    PREFERRED_VERSION_linux-xenomai = "9999-latest"
+    PREFERRED_VERSION_linux-xenomai = "9999-%"
recipes-kernel/linux/linux-xenomai.inc +1 -0
index 3388776..baa353b 100644
@@ -19,6 +19,7 @@ DEPENDS += "xenomai-kernel-source"
 KBUILD_DEPENDS += "xenomai-kernel-source"
 
 LINUX_COMMIT="${@bb.fetch2.get_srcrev(d).strip('AUTOINC+')}"
+
 dpkg_runbuild_prepend() {
 	case ${DISTRO_ARCH} in
 	armhf)
recipes-kernel/linux/linux-xenomai_latest.bb +17 -8
index 4aa246d..506dbdd 100644
@@ -1,24 +1,33 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019
+# Copyright (c) Siemens AG, 2019-2020
 #
 # Authors:
 #  Quirin Gylstorff <[email protected]>
+#  Jan Kiszka <[email protected]>
 #
 # SPDX-License-Identifier: MIT
 #
 
 require recipes-kernel/linux/linux-xenomai.inc
 
-PV = "9999-latest"
+PV = "9999-g${LINUX_COMMIT}"
 
-SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe-x86.git;protocol=https;branch=ipipe-x86-4.19.y"
-SRCREV_amd64 = "${AUTOREV}"
+def is_xeno_3_0(d):
+    xeno_ver = d.getVar('PREFERRED_VERSION_xenomai') or ''
+    return xeno_ver.startswith('3.0') or xeno_ver == 'stable-3.0.x'
 
-SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;branch=ipipe/master"
-SRCREV_arm64 = "${AUTOREV}"
+GIT_REPO_amd64 = "${@'ipipe.git' if is_xeno_3_0(d) else 'ipipe-x86.git'}"
+GIT_BRANCH_amd64 = "${@'ipipe-4.4.y-cip' if is_xeno_3_0(d) else 'ipipe-x86-4.19.y'}"
+
+GIT_REPO_armhf = "${@'ipipe.git' if is_xeno_3_0(d) else 'ipipe-arm.git'}"
+GIT_BRANCH_armhf = "${@'ipipe-4.4.y-cip' if is_xeno_3_0(d) else 'ipipe/master'}"
+
+GIT_REPO_arm64 = "ipipe-arm64.git"
+GIT_BRANCH_arm64 = "ipipe/master"
+
+SRC_URI += "git://gitlab.denx.de/Xenomai/${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
+SRCREV = "${AUTOREV}"
 
-SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe-arm.git;protocol=https;branch=ipipe/master"
-SRCREV_armhf = "${AUTOREV}"
 S = "${WORKDIR}/git"
Signature · 1 line
2.16.4
author
#8 lore raw

PATCH 8/10 recipes-kernel/linux: add exception handling

In reply to Jan Kiszka

From: Quirin Gylstorff <[email protected]>

If SRCREV is not available for given DISTRO_ARCH and kernel version get_srcrev raise a FetchError exception. Avoid a build error be catching the exception.

[Jan: style fixing]
---
 recipes-kernel/linux/linux-xenomai.inc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-xenomai.inc +7 -1
index baa353b..ad3629b 100644
@@ -18,7 +18,13 @@ SRC_URI += "file://${KERNEL_DEFCONFIG}"
 DEPENDS += "xenomai-kernel-source"
 KBUILD_DEPENDS += "xenomai-kernel-source"
 
-LINUX_COMMIT="${@bb.fetch2.get_srcrev(d).strip('AUTOINC+')}"
+def get_commit(d):
+    try:
+        return bb.fetch2.get_srcrev(d).strip('AUTOINC+')
+    except bb.fetch2.FetchError:
+        return ""
+
+LINUX_COMMIT ?= "${@get_commit(d)}"
 
 dpkg_runbuild_prepend() {
 	case ${DISTRO_ARCH} in
Signature · 1 line
2.16.4
author
#9 lore raw

PATCH 9/10 linux-xenomai: Update to ipipe-core-4.19.94-cip18-x86-10

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

---
 recipes-kernel/linux/linux-xenomai_4.19.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
recipes-kernel/linux/linux-xenomai_4.19.bb +2 -3
index 8623f1b..e0757c2 100644
@@ -12,14 +12,13 @@
 require recipes-kernel/linux/linux-xenomai.inc
 
 SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe-x86.git;protocol=https;nobranch=1"
-SRCREV_amd64 ?= "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7"
-PV_amd64 ?= "4.19.66+"
+SRCREV_amd64 ?= "ipipe-core-4.19.94-cip18-x86-10"
+PV_amd64 ?= "4.19.94+"
 
 SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;nobranch=1"
 SRCREV_arm64 ?= "ipipe-core-4.19.55-arm64-4"
 PV_arm64 ?= "4.19.55+"
 
-
 SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe-arm.git;protocol=https;nobranch=1"
 SRCREV_armhf ?= "ipipe-core-4.19.55-arm-5"
 PV_armhf ?= "4.19.55+"
Signature · 1 line
2.16.4
author
#10 lore raw

PATCH 10/10 Switch to github as source explicitly

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

The current outage of gitlab.denx.de showed that PREMIRRORS does not work for us because of the use of bb.util.get_srcrev which ignores it.

---
 kas.yml                                         | 3 ---
 recipes-kernel/linux/linux-xenomai_4.14.bb      | 6 +++---
 recipes-kernel/linux/linux-xenomai_4.19.bb      | 6 +++---
 recipes-kernel/linux/linux-xenomai_4.4.bb       | 4 ++--
 recipes-kernel/linux/linux-xenomai_latest.bb    | 2 +-
 recipes-xenomai/xenomai/xenomai_3.0.10.bb       | 2 +-
 recipes-xenomai/xenomai/xenomai_3.1.bb          | 2 +-
 recipes-xenomai/xenomai/xenomai_master.bb       | 2 +-
 recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb | 2 +-
 9 files changed, 13 insertions(+), 16 deletions(-)
kas.yml +0 -3
index f4ee0e5..d04b9c3 100644
@@ -35,6 +35,3 @@ local_conf_header:
     CONF_VERSION = "1"
   cross: |
     ISAR_CROSS_COMPILE = "1"
-  github-mirror: |
-    PREMIRRORS_prepend = " \
-        git://gitlab.denx.de/Xenomai/ git://github.com/xenomai-ci/ \n"
recipes-kernel/linux/linux-xenomai_4.14.bb +3 -3
index 1a5500d..8ffc66f 100644
@@ -11,14 +11,14 @@
 
 require recipes-kernel/linux/linux-xenomai.inc
 
-SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe-x86.git;protocol=https;branch=ipipe-x86-4.14.y"
+SRC_URI_append_amd64 = " git://github.com/xenomai-ci/ipipe-x86.git;protocol=https;branch=ipipe-x86-4.14.y"
 SRCREV_amd64 = "fdfa1aff4578edf6a03e2e77ea20bf7f97863954"
 PV_amd64 = "4.14.134+"
 
-SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;nobranch=1;tag=ipipe-core-4.14.78-arm64-2"
+SRC_URI_append_arm64 = " git://github.com/xenomai-ci/ipipe-arm64.git;protocol=https;nobranch=1;tag=ipipe-core-4.14.78-arm64-2"
 PV_arm64 = "4.14.78+"
 
-SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe-arm.git;protocol=https;nobranch=1;tag=ipipe-core-4.14.110-arm-7"
+SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=https;nobranch=1;tag=ipipe-core-4.14.110-arm-7"
 PV_armhf = "4.14.110+"
 
 S = "${WORKDIR}/git"
recipes-kernel/linux/linux-xenomai_4.19.bb +3 -3
index e0757c2..29e9f05 100644
@@ -11,15 +11,15 @@
 
 require recipes-kernel/linux/linux-xenomai.inc
 
-SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe-x86.git;protocol=https;nobranch=1"
+SRC_URI_append_amd64 = " git://github.com/xenomai-ci/ipipe-x86.git;protocol=https;nobranch=1"
 SRCREV_amd64 ?= "ipipe-core-4.19.94-cip18-x86-10"
 PV_amd64 ?= "4.19.94+"
 
-SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;nobranch=1"
+SRC_URI_append_arm64 = " git://github.com/xenomai-ci/ipipe-arm64.git;protocol=https;nobranch=1"
 SRCREV_arm64 ?= "ipipe-core-4.19.55-arm64-4"
 PV_arm64 ?= "4.19.55+"
 
-SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe-arm.git;protocol=https;nobranch=1"
+SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=https;nobranch=1"
 SRCREV_armhf ?= "ipipe-core-4.19.55-arm-5"
 PV_armhf ?= "4.19.55+"
 
recipes-kernel/linux/linux-xenomai_4.4.bb +2 -2
index f76e847..1c8c80f 100644
@@ -11,10 +11,10 @@
 
 require recipes-kernel/linux/linux-xenomai.inc
 
-SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe.git;protocol=https;nobranch=1;tag=ipipe-core-4.4.208-cip41-x86-21"
+SRC_URI_append_amd64 = " git://github.com/xenomai-ci/ipipe.git;protocol=https;nobranch=1;tag=ipipe-core-4.4.208-cip41-x86-21"
 PV_amd64 = "4.4.208+"
 
-SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe.git;protocol=https;nobranch=1;tag=ipipe-core-4.4.176-arm-10"
+SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe.git;protocol=https;nobranch=1;tag=ipipe-core-4.4.176-arm-10"
 PV_armhf = "4.4.176+"
 
 S = "${WORKDIR}/git"
recipes-kernel/linux/linux-xenomai_latest.bb +1 -1
index 506dbdd..8f6636b 100644
@@ -27,7 +27,7 @@ GIT_BRANCH_armhf = "${@'ipipe-4.4.y-cip' if is_xeno_3_0(d) else 'ipipe/master'}"
 GIT_REPO_arm64 = "ipipe-arm64.git"
 GIT_BRANCH_arm64 = "ipipe/master"
 
-SRC_URI += "git://gitlab.denx.de/Xenomai/${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
+SRC_URI += "git://github.com/xenomai-ci/${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
 SRCREV = "${AUTOREV}"
 
 S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_3.0.10.bb +1 -1
index aaefa31..4b733fb 100644
@@ -12,7 +12,7 @@
 require xenomai.inc
 
 SRC_URI = " \
-    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=stable/v3.0.x;tag=v${PV} \
+    git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=stable/v3.0.x;tag=v${PV} \
 file://0001-debian-Add-config-folder-to-xenomai-kernel-source.patch \
 file://0001-debian-Enable-SMP-in-userspace-package.patch \
     "
recipes-xenomai/xenomai/xenomai_3.1.bb +1 -1
index 3af1d98..f117eee 100644
@@ -12,6 +12,6 @@
 require xenomai.inc
 
 SRC_URI = " \
-    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=master;tag=v${PV}"
+    git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=master;tag=v${PV}"
 
 S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_master.bb +1 -1
index 0852c0c..298492f 100644
@@ -13,7 +13,7 @@
 require xenomai.inc
 
 SRC_URI = " \
-    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=${PV}"
+    git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=${PV}"
 SRCREV = "${AUTOREV}"
 
 S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb +1 -1
index 34cb4b1..6e8cd97 100644
@@ -13,7 +13,7 @@
 require xenomai.inc
 
 SRC_URI = " \
-    git://gitlab.denx.de/Xenomai/xenomai.git;protocol=https;branch=stable/v3.0.x"
+    git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=stable/v3.0.x"
 SRCREV = "${AUTOREV}"
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.16.4