Skip to contentSkip to conversation

Latest Kernel

PATCH Applied Q. Gylstorff 2 participants 5 messages Sep 20, 2019 – Sep 23, 2019

lore
Share & tools
lore
#0 lore raw

cover Latest Kernel

From: Quirin Gylstorff <[email protected]>

This set updates isar and adds the feature to build the latest available linux kernel with a selected xenomai version.

There some whitespace errors due to patch in patch.

Quirin Gylstorff (3):
linux-4.19: Use SRCREV instead of branches or tags in SRC_URI
kas: update isar
ci: Add the option to build the latest kernel

 .gitlab-ci.yml                                |  13 +-
 kas.yml                                       |   6 +-
 opt-linux-latest.yml                          |  20 ++
 opt-latest.yml => opt-xenomai-next.yml        |   0
 ...inux-build-kernel-Allow-kernel-build.patch | 173 ++++++++++++++++++
 recipes-core/images/demo-image.bb             |   2 +-
 recipes-kernel/linux/linux-xenomai_4.19.bb    |  16 +-
 recipes-kernel/linux/linux-xenomai_latest.bb  |  24 +++
 8 files changed, 239 insertions(+), 15 deletions(-)
 create mode 100644 opt-linux-latest.yml
 rename opt-latest.yml => opt-xenomai-next.yml (100%)
 create mode 100644 patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch
 create mode 100644 recipes-kernel/linux/linux-xenomai_latest.bb
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/3 linux-4.19: Use SRCREV instead of branches or tags in SRC_URI

From: Quirin Gylstorff <[email protected]>

TO switch to new commits select the ipipe-kernel version by with the SRCREV instead SRC_URI.

---
 recipes-kernel/linux/linux-xenomai_4.19.bb | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
recipes-kernel/linux/linux-xenomai_4.19.bb +9 -7
index 5137319..1607c58 100644
@@ -11,15 +11,17 @@
 
 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.19.y"
-SRCREV_amd64 = "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7"
-PV_amd64 = "4.19.66+"
+SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe-x86.git;protocol=https;nobranch=1"
+SRCREV_amd64 ?= "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7"
+PV_amd64 ?= "4.19.66+"
 
-SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;nobranch=1;tag=ipipe-core-4.19.55-arm64-2"
-PV_arm64 = "4.19.55+"
+SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;nobranch=1"
+SRCREV_arm64 ?= "ipipe-core-4.19.55-arm64-2"
+PV_arm64 ?= "4.19.55+"
 
 
-SRC_URI_append_armhf = " git://gitlab.denx.de/Xenomai/ipipe-arm.git;protocol=https;nobranch=1;tag=ipipe-core-4.19.55-arm-3"
-PV_armhf = "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-3"
+PV_armhf ?= "4.19.55+"
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/3 kas: update isar

In reply to Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

Update isar to current next.
Add mandatory sshd-regen-keys.

---
 kas.yml                           | 2 +-
 recipes-core/images/demo-image.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
kas.yml +1 -1
index a4d12c2..06b59ac 100644
@@ -20,7 +20,7 @@ repos:
 
   isar:
     url: https://github.com/ilbers/isar.git
-    refspec: 59c7dd2b8b3172d53de1c7a39fbd49751193559a
+    refspec: a5d575a15285b7f66efbf3e2409a7f65d25ff15e
     layers:
       meta:
 
recipes-core/images/demo-image.bb +1 -1
index d01142b..df849f2 100644
@@ -21,4 +21,4 @@ IMAGE_PREINSTALL += " \
     gdb lsb-release"
 
 IMAGE_INSTALL += "xenomai-runtime xenomai-runtime-dbgsym libxenomai1-dbgsym"
-IMAGE_INSTALL += "customizations expand-on-first-boot"
+IMAGE_INSTALL += "customizations sshd-regen-keys expand-on-first-boot"
Signature · 1 line
2.20.1
#3 lore raw

PATCH 3/3 ci: Add the option to build the latest kernel

In reply to Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

For testing it is possible to select the latest kernel and latest xenomai-version. This is done with the variable BUILD_OPTIONS. Trigger and project variables can overwrite this value if necessary [1]. Isar will be patch to allow the package version to be "latest" and independent from the kernel version.

The build can be triggered with:

curl -X POST \
     -F token=TOKEN \
     -F "ref=REF" \
     -F "variables[BUILD_OPTIONS]=opt-linux-latest.yml:opt-xenomai-next.yml" \
     https://URL

[1]: https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables

---
 .gitlab-ci.yml                                |  13 +-
 kas.yml                                       |   4 +
 opt-linux-latest.yml                          |  20 ++
 opt-latest.yml => opt-xenomai-next.yml        |   0
 ...inux-build-kernel-Allow-kernel-build.patch | 173 ++++++++++++++++++
 recipes-kernel/linux/linux-xenomai_latest.bb  |  24 +++
 6 files changed, 228 insertions(+), 6 deletions(-)
 create mode 100644 opt-linux-latest.yml
 rename opt-latest.yml => opt-xenomai-next.yml (100%)
 create mode 100644 patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch
 create mode 100644 recipes-kernel/linux/linux-xenomai_latest.bb
.gitlab-ci.yml +7 -6
index 9bb8b1a..bc51b00 100644
@@ -18,6 +18,7 @@ variables:
   https_proxy: "$HTTPS_PROXY"
   ftp_proxy: "$FTP_PROXY"
   no_proxy: "$NO_PROXY"
+  BUILD_OPTIONS: "opt-xenomai-next.yml"
 default:
   image: kasproject/kas-isar:latest
 
@@ -34,7 +35,7 @@ build:qemu-amd64:
   <<: *lava-ssh-key
   stage: build
   script:
-    - kas build kas.yml:board-qemu-amd64.yml
+    - kas build kas.yml:board-qemu-amd64.yml:${BUILD_OPTIONS}
     - scripts/deploy_for_testing.sh qemu-amd64
 
 lava-test:qemu-amd64:
@@ -52,7 +53,7 @@ build:qemu-armhf:
   <<: *lava-ssh-key
   stage: build
   script:
-    - kas build kas.yml:board-qemu-armhf.yml
+    - kas build kas.yml:board-qemu-armhf.yml:${BUILD_OPTIONS}
     - scripts/deploy_for_testing.sh qemu-armhf
 
 lava-test:qemu-armhf:
@@ -70,7 +71,7 @@ build:qemu-arm64:
   <<: *lava-ssh-key
   stage: build
   script:
-    - kas build kas.yml:board-qemu-arm64.yml
+    - kas build kas.yml:board-qemu-arm64.yml:${BUILD_OPTIONS}
     - scripts/deploy_for_testing.sh qemu-arm64
 
 lava-test:qemu-arm64:
@@ -88,7 +89,7 @@ build:board-hikey:
   <<: *lava-ssh-key
   stage: build
   script:
-    - kas build kas.yml:board-hikey.yml:opt-latest.yml:opt-lava-test.yml
+    - kas build kas.yml:board-hikey.yml:opt-lava-test.yml:${BUILD_OPTIONS}
     - scripts/deploy_for_testing.sh hikey
 # hikey is currently not part of the testlab
 
@@ -96,7 +97,7 @@ build:board-beaglebone:
   <<: *lava-ssh-key
   stage: build
   script:
-    - kas build kas.yml:board-beagle-bone-black.yml:opt-latest.yml:opt-lava-test.yml
+    - kas build kas.yml:board-beagle-bone-black.yml:opt-lava-test.yml:${BUILD_OPTIONS}
     - scripts/deploy_for_testing.sh beagle-bone-black
 
 lava-test:board-beaglebone:
@@ -114,7 +115,7 @@ build:board-x86-64-efi:
   <<: *lava-ssh-key
   stage: build
   script:
-    - kas build kas.yml:board-x86-64-efi.yml:opt-latest.yml:opt-lava-test.yml
+    - kas build kas.yml:board-x86-64-efi.yml:opt-lava-test.yml:${BUILD_OPTIONS}
     - scripts/deploy_for_testing.sh x86-64-efi
 
 lava-test:board-x86-64-efi:
kas.yml +4 -0
index 06b59ac..e3c6641 100644
@@ -23,6 +23,10 @@ repos:
     refspec: a5d575a15285b7f66efbf3e2409a7f65d25ff15e
     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 new file +20 -0
new file mode 100644
index 0000000..25d9606
@@ -0,0 +1,20 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2019
+#
+# Authors:
+#  Quirin Gylstorff <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+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%"
opt-xenomai-next.yml renamed from opt-latest.yml +0 -0
similarity index 100%
rename from opt-latest.yml
rename to opt-xenomai-next.yml
patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch new file +173 -0

173 lines not on this page · raw message

recipes-kernel/linux/linux-xenomai_latest.bb new file +24 -0
new file mode 100644
index 0000000..7ad4fed
@@ -0,0 +1,24 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2019
+#
+# Authors:
+#  Quirin Gylstorff <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+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.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.20.1
Applied
#4 lore raw
In reply to Q. Gylstorff
Quoted 21 lines · Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

This set updates isar and adds the feature to build the latest available linux kernel with a selected xenomai version.

There some whitespace errors due to patch in patch.

Quirin Gylstorff (3):
linux-4.19: Use SRCREV instead of branches or tags in SRC_URI
kas: update isar
ci: Add the option to build the latest kernel

  .gitlab-ci.yml                                |  13 +-
  kas.yml                                       |   6 +-
  opt-linux-latest.yml                          |  20 ++
  opt-latest.yml => opt-xenomai-next.yml        |   0
  ...inux-build-kernel-Allow-kernel-build.patch | 173 ++++++++++++++++++
  recipes-core/images/demo-image.bb             |   2 +-
  recipes-kernel/linux/linux-xenomai_4.19.bb    |  16 +-
  recipes-kernel/linux/linux-xenomai_latest.bb  |  24 +++
  8 files changed, 239 insertions(+), 15 deletions(-)
Quoted 5 lines

create mode 100644 opt-linux-latest.yml
rename opt-latest.yml => opt-xenomai-next.yml (100%)
create mode 100644 patches/0001-recipes-kernel-linux-build-kernel-Allow-kernel-build.patch create mode 100644 recipes-kernel/linux/linux-xenomai_latest.bb

Thanks, applied.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux