Skip to contentSkip to conversation

kernel/linux: Update arm kernels

PATCH Applied Q. Gylstorff 2 participants 8 messages Oct 14, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/linux: Update arm kernels

From: Quirin Gylstorff <[email protected]>

Update arm/arm64 Linux kernel to new versions.

---
 recipes-kernel/linux/linux-xenomai_4.19.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-xenomai_4.19.bb +2 -2
index 1607c58..8623f1b 100644
@@ -16,12 +16,12 @@ SRCREV_amd64 ?= "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7"
 PV_amd64 ?= "4.19.66+"
 
 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"
+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-3"
+SRCREV_armhf ?= "ipipe-core-4.19.55-arm-5"
 PV_armhf ?= "4.19.55+"
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.20.1
Applied
#1 lore raw
Quoted 19 lines · Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

Update arm/arm64 Linux kernel to new versions.

---
 recipes-kernel/linux/linux-xenomai_4.19.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-xenomai_4.19.bb +0 -1
index 1607c58..8623f1b 100644
@@ -16,12 +16,12 @@ SRCREV_amd64 ?= "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7"
 PV_amd64 ?= "4.19.66+"
 
 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"

recipes-kernel/linux/linux-xenomai_4.19.bb SRCREV_amd64 ?= "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7" · line 27

Quoted 10 lines
recipes-kernel/linux/linux-xenomai_4.19.bb +2 -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-3"
+SRCREV_armhf ?= "ipipe-core-4.19.55-arm-5"
 PV_armhf ?= "4.19.55+"
 
 S = "${WORKDIR}/git"

Thanks, applied.

How do I find out with revision of I-pipe is used during a test? For Xenomai, there is that git revision dump during the build. But I think we are missing something for I-pipe.

Background: arm64 test still fails.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
#2 lore raw
Quoted 33 lines · Jan Kiszka
Quoted 19 lines · Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

Update arm/arm64 Linux kernel to new versions.

---
 recipes-kernel/linux/linux-xenomai_4.19.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-xenomai_4.19.bb +0 -1
index 1607c58..8623f1b 100644
@@ -16,12 +16,12 @@ SRCREV_amd64 ?= "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7"
 PV_amd64 ?= "4.19.66+"
 
 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"

recipes-kernel/linux/linux-xenomai_4.19.bb SRCREV_amd64 ?= "f83bda3e0785ae2e0ea8ad530bc903d2b420c2c7" · line 27

Quoted 10 lines
recipes-kernel/linux/linux-xenomai_4.19.bb +2 -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-3"
+SRCREV_armhf ?= "ipipe-core-4.19.55-arm-5"
 PV_armhf ?= "4.19.55+"
 
 S = "${WORKDIR}/git"

Thanks, applied.

Quoted 5 lines

How do I find out with revision of I-pipe is used during a test? For Xenomai, there is that git revision dump during the build. But I think we are missing something for I-pipe.

Background: arm64 test still fails.

Oh, we aren't building latest kernels here. So this patch should resolve the remaining arm64 failure.

Jan

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

cover add commit sha to kernel build

From: Quirin Gylstorff <[email protected]>

We could add somthing like this to the kernel build.

Quirin Gylstorff (1):
kernel/linux: Add git commit sha to build

 recipes-kernel/linux/linux-xenomai.inc | 4 ++++
 1 file changed, 4 insertions(+)
Signature · 1 line
2.20.1
#4 lore raw

PATCH 1/1 kernel/linux: Add git commit sha to build

In reply to Jan Kiszka

From: Quirin Gylstorff <[email protected]>

For debugging purposes print the commit sha used by the build.

---
 recipes-kernel/linux/linux-xenomai.inc | 4 ++++
 1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-xenomai.inc +4 -0
index d93e614..bdf51f7 100644
@@ -18,6 +18,7 @@ SRC_URI += "file://${KERNEL_DEFCONFIG}"
 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)
@@ -33,6 +34,9 @@ dpkg_runbuild_prepend() {
 		bberror "Unsupported architecture ${DISTRO_ARCH}"
 		exit 1
 	esac
+    bbplain $(printf "linux-xenomai-%s: Building revision %.20s\n" \
+                     ${PV} ${LINUX_COMMIT})
+
 
 	sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
 		/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh \
Signature · 1 line
2.20.1
#5 lore raw

Re: [xenomai-images][PATCH 1/1] kernel/linux: Add git commit sha to build

Quoted 23 lines · Q. Gylstorff via Xenomai

From: Quirin Gylstorff <[email protected]>

For debugging purposes print the commit sha used by the build.

---
 recipes-kernel/linux/linux-xenomai.inc | 4 ++++
 1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-xenomai.inc +1 -0
index d93e614..bdf51f7 100644
@@ -18,6 +18,7 @@ SRC_URI += "file://${KERNEL_DEFCONFIG}"
 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.inc dpkg_runbuild_prepend() { · line 42

Quoted 9 lines
recipes-kernel/linux/linux-xenomai.inc +3 -0
@@ -33,6 +34,9 @@ dpkg_runbuild_prepend() {
 		bberror "Unsupported architecture ${DISTRO_ARCH}"
 		exit 1
 	esac
+    bbplain $(printf "linux-xenomai-%s: Building revision %.20s\n" \
+                     ${PV} ${LINUX_COMMIT})
+
 
 	sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
 		/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh \

In fact, I would also like to see the test target reporting its Xenomai and I-pipe version.

For the build: Let's add such reporting to linux-xenomai_latest and switch the other recipes to carry the I-pipe release in their version name, linux-xenomai_4.19.55-arm64-4. Or will that collide with a recipe version scheme that we are supposed to follow?

Jan

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

Re: [xenomai-images][PATCH 1/1] kernel/linux: Add git commit sha to build

Quoted 37 lines · Jan Kiszka
Quoted 23 lines · Q. Gylstorff via Xenomai

From: Quirin Gylstorff <[email protected]>

For debugging purposes print the commit sha used by the build.

---
 recipes-kernel/linux/linux-xenomai.inc | 4 ++++
 1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-xenomai.inc +1 -0
index d93e614..bdf51f7 100644
@@ -18,6 +18,7 @@ SRC_URI += "file://${KERNEL_DEFCONFIG}"
 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.inc dpkg_runbuild_prepend() { · line 42

Quoted 9 lines
recipes-kernel/linux/linux-xenomai.inc +3 -0
@@ -33,6 +34,9 @@ dpkg_runbuild_prepend() {
 		bberror "Unsupported architecture ${DISTRO_ARCH}"
 		exit 1
 	esac
+    bbplain $(printf "linux-xenomai-%s: Building revision %.20s\n" \
+                     ${PV} ${LINUX_COMMIT})
+
 
 	sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
 		/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh \

In fact, I would also like to see the test target reporting its Xenomai and I-pipe version.

Quoted 4 lines

For the build: Let's add such reporting to linux-xenomai_latest and switch the other recipes to carry the I-pipe release in their version name, linux-xenomai_4.19.55-arm64-4. Or will that collide with a recipe version scheme that we are supposed to follow?

Err, we will likely run into the version consistency check of linux-custom.inc with that. Too bad. Guess I need to consider such use cases in re-designs of linux-custom.inc.

Jan

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

Re: [xenomai-images][PATCH 1/1] kernel/linux: Add git commit sha to build

In reply to Q. Gylstorff
Quoted 23 lines · Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

For debugging purposes print the commit sha used by the build.

---
 recipes-kernel/linux/linux-xenomai.inc | 4 ++++
 1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-xenomai.inc +1 -0
index d93e614..bdf51f7 100644
@@ -18,6 +18,7 @@ SRC_URI += "file://${KERNEL_DEFCONFIG}"
 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.inc dpkg_runbuild_prepend() { · line 42

Quoted 9 lines
recipes-kernel/linux/linux-xenomai.inc +3 -0
@@ -33,6 +34,9 @@ dpkg_runbuild_prepend() {
 		bberror "Unsupported architecture ${DISTRO_ARCH}"
 		exit 1
 	esac
+    bbplain $(printf "linux-xenomai-%s: Building revision %.20s\n" \
+                     ${PV} ${LINUX_COMMIT})
+
 
 	sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
 		/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh \

Applied nevertheless, just with tab-fixes - we already report the revision for xenomai packages unconditionally.

Thjnks
Jan

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