We would like to enable new BSP for Intel Atom E3900 SoC based platforms.
This will help us to consolidate BSP into intel-common and we can use
KERNEL_FEATURES to select target BSP to compile.

Leaf Hill uses different serial console port setup. Hence this
mechanism are in place to enable new bsp with existing machine
configurations file.

Leaf Hill BSP also required additional kernel stack protector
settings to compile kernel with security defense enabled.

Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 conf/machine/intel-corei7-64.conf | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/conf/machine/intel-corei7-64.conf 
b/conf/machine/intel-corei7-64.conf
index cc16d62..7a5b400 100644
--- a/conf/machine/intel-corei7-64.conf
+++ b/conf/machine/intel-corei7-64.conf
@@ -29,6 +29,9 @@ XSERVER ?= "${XSERVER_X86_BASE} \
             ${XSERVER_X86_VESA} \
            "
 
-SYSLINUX_OPTS = "serial 0 115200"
-SERIAL_CONSOLE = "115200 ttyS0"
-APPEND += "console=ttyS0,115200 console=tty0"
+SYSLINUX_OPTS = "serial ${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'2', '0', d)} 115200"
+SERIAL_CONSOLE = "115200 ${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'ttyS2', 'ttyS0', d)}"
+APPEND += "${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'console=ttyS2,115200n8', 'console=ttyS0,115200', d)} console=tty0"
+APPEND += "${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 'reboot=efi 
kmemleak=off i915.enable_ipc=1', '', d)}"
+
+KERNEL_EXTRA_ARGS = "${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'EXTRA_CFLAGS="-D_FORTIFY_SOURCE=2 -Wformat -O2 -Wformat-security"', '', d)}"
-- 
1.9.1

-- 
_______________________________________________
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to