* [PATCH] recipes-kernel/linux: Add i386 support
@ 2020-01-16 8:31 Q. Gylstorff
2020-01-16 9:58 ` Jan Kiszka
0 siblings, 1 reply; 4+ messages in thread
From: Q. Gylstorff @ 2020-01-16 8:31 UTC (permalink / raw)
To: isar-users; +Cc: Quirin Gylstorff, Jan Kiszka
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Select the Kernel arch x86 if DISTRO_ARCH is i386 to allow the
usage of a 32bit userland.
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
meta/recipes-kernel/linux/linux-custom.inc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
index d31da3b..31afca9 100644
--- a/meta/recipes-kernel/linux/linux-custom.inc
+++ b/meta/recipes-kernel/linux/linux-custom.inc
@@ -89,6 +89,8 @@ python() {
def get_kernel_arch(d):
distro_arch = d.getVar("DISTRO_ARCH")
+ if distro_arch == "i386":
+ kernel_arch = "x86"
if distro_arch == "amd64":
kernel_arch = "x86"
elif distro_arch == "arm64":
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] recipes-kernel/linux: Add i386 support
2020-01-16 8:31 [PATCH] recipes-kernel/linux: Add i386 support Q. Gylstorff
@ 2020-01-16 9:58 ` Jan Kiszka
2020-01-16 11:15 ` [PATCH v2] " Q. Gylstorff
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2020-01-16 9:58 UTC (permalink / raw)
To: Q. Gylstorff, isar-users
On 16.01.20 09:31, Q. Gylstorff wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>
> Select the Kernel arch x86 if DISTRO_ARCH is i386 to allow the
> usage of a 32bit userland.
>
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> ---
> meta/recipes-kernel/linux/linux-custom.inc | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
> index d31da3b..31afca9 100644
> --- a/meta/recipes-kernel/linux/linux-custom.inc
> +++ b/meta/recipes-kernel/linux/linux-custom.inc
> @@ -89,6 +89,8 @@ python() {
>
> def get_kernel_arch(d):
> distro_arch = d.getVar("DISTRO_ARCH")
> + if distro_arch == "i386":
> + kernel_arch = "x86"
> if distro_arch == "amd64":
> kernel_arch = "x86"
> elif distro_arch == "arm64":
>
Maybe rather
if distro_arch in ["i386", "amd64"]:
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] recipes-kernel/linux: Add i386 support
2020-01-16 9:58 ` Jan Kiszka
@ 2020-01-16 11:15 ` Q. Gylstorff
2020-03-09 10:55 ` Baurzhan Ismagulov
0 siblings, 1 reply; 4+ messages in thread
From: Q. Gylstorff @ 2020-01-16 11:15 UTC (permalink / raw)
To: isar-users; +Cc: Quirin Gylstorff, Jan Kiszka
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Select the Kernel arch x86 if DISTRO_ARCH is i386 to allow the
usage of a 32bit userland.
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
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..8070b1e 100644
--- a/meta/recipes-kernel/linux/linux-custom.inc
+++ b/meta/recipes-kernel/linux/linux-custom.inc
@@ -89,7 +89,7 @@ python() {
def get_kernel_arch(d):
distro_arch = d.getVar("DISTRO_ARCH")
- if distro_arch == "amd64":
+ if distro_arch in ["amd64", "i386"]:
kernel_arch = "x86"
elif distro_arch == "arm64":
kernel_arch = "arm64"
--
2.20.1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-09 10:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 8:31 [PATCH] recipes-kernel/linux: Add i386 support Q. Gylstorff
2020-01-16 9:58 ` Jan Kiszka
2020-01-16 11:15 ` [PATCH v2] " Q. Gylstorff
2020-03-09 10:55 ` Baurzhan Ismagulov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox