Fixes [YOCTO 6777] Unable to set CONFIG_COMPAT=y to kernel config

Add support for running 32 bit binaries to the x32 and x86_64 fragments.

This supports legacy software and is follows the recommendation in the
Kconfig help.

Signed-off-by: Darren Hart <dvh...@linux.intel.com>
---
 meta/cfg/kernel-cache/cfg/x32.cfg    | 3 +++
 meta/cfg/kernel-cache/cfg/x86_64.cfg | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/meta/cfg/kernel-cache/cfg/x32.cfg 
b/meta/cfg/kernel-cache/cfg/x32.cfg
index 725e05f..bbe0201 100644
--- a/meta/cfg/kernel-cache/cfg/x32.cfg
+++ b/meta/cfg/kernel-cache/cfg/x32.cfg
@@ -1 +1,4 @@
 CONFIG_X86_X32=y
+
+# Support running 32 bit binaries
+CONFIG_COMPAT=y
diff --git a/meta/cfg/kernel-cache/cfg/x86_64.cfg 
b/meta/cfg/kernel-cache/cfg/x86_64.cfg
index 5133fc2..f6dab86 100644
--- a/meta/cfg/kernel-cache/cfg/x86_64.cfg
+++ b/meta/cfg/kernel-cache/cfg/x86_64.cfg
@@ -13,3 +13,7 @@ CONFIG_MTRR=y
 CONFIG_HOTPLUG_PCI=y
 # CONFIG_HOTPLUG_PCI_PCIE is not set
 CONFIG_PCI_MSI=y
+
+# Support running 32 bit binaries
+CONFIG_IA32_EMULATION=y
+CONFIG_COMPAT=y
-- 
2.1.0

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to