Skip to contentSkip to conversation

Add support for x86(32bit)

PATCH In review Q. Gylstorff 3 participants 6 messages Feb 14, 2020 – Mar 23, 2020

lore
Share & tools
lore
#0 lore raw

cover Add support for x86(32bit)

From: Quirin Gylstorff <[email protected]>

Add missing entry for x86 32 build. Allow overwrite of derived isar layers. Patch is send upstream to isar.

Quirin Gylstorff (2):
recipes-kernel/linux-xenomai: Add support for DISTRO_ARCH i386 recipes-kernel/linux: Allow overwrite of KERNEL_DEFCONFIG

 kas.yml                                       |  4 +++
 ...inux-Weak-KERNEL_DEFCONFIG-to-allow-.patch | 29 +++++++++++++++++++
 recipes-kernel/linux/linux-xenomai.inc        |  4 +--
 3 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 patches/0001-recipes-kernel-linux-Weak-KERNEL_DEFCONFIG-to-allow-.patch
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/2 recipes-kernel/linux-xenomai: Add support for DISTRO_ARCH i386

From: Quirin Gylstorff <[email protected]>

---
 recipes-kernel/linux/linux-xenomai.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-xenomai.inc +1 -1
index ad3629b..3407b82 100644
@@ -34,7 +34,7 @@ dpkg_runbuild_prepend() {
 	arm64)
 		ARCH=arm64
 		;;
-	amd64)
+	amd64|i386)
 		ARCH=x86
 		;;
 	*)
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/2 recipes-kernel/linux: Allow overwrite of KERNEL_DEFCONFIG

In reply to Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

---
 kas.yml                                       |  4 +++
 ...inux-Weak-KERNEL_DEFCONFIG-to-allow-.patch | 29 +++++++++++++++++++
 recipes-kernel/linux/linux-xenomai.inc        |  2 +-
 3 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 patches/0001-recipes-kernel-linux-Weak-KERNEL_DEFCONFIG-to-allow-.patch
kas.yml +4 -0
index d04b9c3..52c81e3 100644
@@ -23,6 +23,10 @@ repos:
     refspec: 18b3e9a15d1f054f5d1e697c66a8f1f9befc0537
     layers:
       meta:
+    patches:
+      weak-kernel-config:
+        path: patches/0001-recipes-kernel-linux-Weak-KERNEL_DEFCONFIG-to-allow-.patch
+        repo: xenomai
 
 bblayers_conf_header:
   standard: |
patches/0001-recipes-kernel-linux-Weak-KERNEL_DEFCONFIG-to-allow-.patch new file +29 -0
new file mode 100644
index 0000000..6b68473
@@ -0,0 +1,29 @@
+From 8fe37bbc21ae24ae628fdbe64316fd3753385f4c Mon Sep 17 00:00:00 2001
+From: Quirin Gylstorff <[email protected]>
+Date: Wed, 15 Jan 2020 15:24:43 +0100
+Subject: [PATCH] recipes-kernel/linux: Weak KERNEL_DEFCONFIG to allow
+ overwrites
+To: [email protected]
+Cc: Jan Kiszka <[email protected]>
+
+Signed-off-by: Quirin Gylstorff <[email protected]>
+---
+ meta/recipes-kernel/linux/linux-custom.inc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
+index d31da3b..4fb7ca2 100644
+--- a/meta/recipes-kernel/linux/linux-custom.inc
++++ b/meta/recipes-kernel/linux/linux-custom.inc
+@@ -39,7 +39,7 @@ KERNEL_LIBC_DEV_DEPLOY ?= "0"
+ 
+ LINUX_VERSION_EXTENSION ?= ""
+ 
+-KERNEL_DEFCONFIG ?= ""
++KERNEL_DEFCONFIG ??= ""
+ 
+ # Add our template meta-data to the sources
+ FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/files:"
+-- 
+2.20.1
+
recipes-kernel/linux/linux-xenomai.inc +1 -1
index 3407b82..185b60b 100644
@@ -11,7 +11,7 @@
 
 require recipes-kernel/linux/linux-custom.inc
 
-KERNEL_DEFCONFIG = "${DISTRO_ARCH}_defconfig"
+KERNEL_DEFCONFIG ?= "${DISTRO_ARCH}_defconfig"
 
 SRC_URI += "file://${KERNEL_DEFCONFIG}"
 
Signature · 1 line
2.20.1
#3 lore raw
In reply to Q. Gylstorff
Quoted 9 lines · Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

Add missing entry for x86 32 build. Allow overwrite of derived isar layers. Patch is send upstream to isar.

Quirin Gylstorff (2):
recipes-kernel/linux-xenomai: Add support for DISTRO_ARCH i386 recipes-kernel/linux: Allow overwrite of KERNEL_DEFCONFIG

Quoted 6 lines
  kas.yml                                       |  4 +++
  ...inux-Weak-KERNEL_DEFCONFIG-to-allow-.patch | 29 +++++++++++++++++++
  recipes-kernel/linux/linux-xenomai.inc        |  4 +--
  3 files changed, 35 insertions(+), 2 deletions(-)

create mode 100644 patches/0001-recipes-kernel-linux-Weak-KERNEL_DEFCONFIG-to-allow-.patch

Thanks, finally applied to next.

I've also pinged upstream Isar on the patch we carry in the second commit.

Jan

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

Don't you need to modify entry_32.S for IPIPE?

Alec

#5 lore raw
Quoted 2 lines · Alec Ari

Don't you need to modify entry_32.S for IPIPE?

Subject might have been misleading: It only adds support to the image generator to build 32-bit userland. The kernel remains 64-bit. This allows us to model a product scenario on top - and to stress the compat code path in the test lab this way.

Jan

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