[meta-intel] [master] [krogoth] [PATCH] Fix QA issue on intel-gpu-tools

2016-05-30 Thread Rebecca Chang Swee Fun
Hi,

I have encountered bitbake QA issue error when compiling IGT v1.14
into image.

I have it fixed by declaring that .debug goes to ${PN}-dbg package.

...
ERROR: QA Issue: non debug package contains .debug directory: 
intel-gpu-tools-benchmarks path 
work/corei7-64-poky-linux/intel-gpu-tools/1.14-r0/packages-split/intel-gpu-tools-benchmarks/usr/lib/intel-gpu-tools/intel-gpu-tools/benchmarks/.debug/gem_mmap
 [debug-files]
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
...

Please review whether this fix is proper and feedback for rework if
necessary. Else, please merge this fix for master and krogoth branch.

Thank you very much.

Regards,
Rebecca

Rebecca Chang Swee Fun (1):
  intel-gpu-tools_1.14: fix bitbake QA issue on debug-files

 common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.14.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
1.9.1

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


[meta-intel] [master] [krogoth] [PATCH] intel-gpu-tools_1.14: fix bitbake QA issue on debug-files

2016-05-30 Thread Rebecca Chang Swee Fun
Error log snippet:
...
ERROR: QA Issue: non debug package contains .debug directory: 
intel-gpu-tools-benchmarks path 
work/corei7-64-poky-linux/intel-gpu-tools/1.14-r0/packages-split/intel-gpu-tools-benchmarks/usr/lib/intel-gpu-tools/intel-gpu-tools/benchmarks/.debug/gem_mmap
 [debug-files]
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
...

Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.14.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.14.bb 
b/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.14.bb
index c20ce31..aa32fab 100644
--- a/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.14.bb
+++ b/common/recipes-graphics/intel-gpu-tools/intel-gpu-tools_1.14.bb
@@ -37,3 +37,5 @@ FILES_${PN}-tests += "\
${datadir}/intel-gpu-tools/1080p-left.png\
${datadir}/intel-gpu-tools/pass.png\
${datadir}/intel-gpu-tools/test-list.txt"
+
+FILES_${PN}-dbg += 
"${libdir}/intel-gpu-tools/intel-gpu-tools/benchmarks/.debug"
-- 
1.9.1

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


[meta-intel] [PATCH 1/2] intel-corei7-64: add machine configurations specific to leafhill bsp

2016-09-05 Thread Rebecca Chang Swee Fun
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


[meta-intel] [PATCH 0/2] Add new bsp consolidated with Intel Common BSP

2016-09-05 Thread Rebecca Chang Swee Fun
Hi,

This is to add leafhill as one of the BSP supported by Intel Common.
Since we need leafhill bsp to have a fixed kernel version base, we
have setup a kernel branch in linux-yocto-4.1 dedicated for leafhill.

On the meta recipe side, we have used bb.utils.contains() to enable
leafhill as KERNEL_FEATURES which to be set in local.conf by leaf hill
BSP users.

This implementation has allow us to enable more settings without
creating new machines conf file.

This change has been verified with build test and boot up test on Leaf
Hill boards.

Please review and provide feedback if you have any.
The patches are targeted for merging into meta-intel Jethro branch.

Thanks and regards,
Rebecca

Rebecca Chang Swee Fun (2):
  intel-corei7-64: add machine configurations specific to leafhill bsp
  linux-yocto_4.1: use bb.utils.contains for KERNEL_FEATURES selection

 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 11 +--
 conf/machine/intel-corei7-64.conf|  9 ++---
 2 files changed, 11 insertions(+), 9 deletions(-)

-- 
1.9.1

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


[meta-intel] [PATCH 2/2] linux-yocto_4.1: use bb.utils.contains for KERNEL_FEATURES selection

2016-09-05 Thread Rebecca Chang Swee Fun
Using bb.utils.contains() enable selection of source revision on
machine branch, KBRANCH and KMACHINE in kernel recipe.

leafhill is new bsp type setup in yocto-kernel-cache. This bsp will
build kernel from standard/intel/4.1.27/leaf-hill with a fixed kernel
base version of v4.1.27.

Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
index c87a7e2..9477f81 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
@@ -10,12 +10,12 @@ SRCREV_meta_core2-32-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5d"
 SRCREV_machine_core2-32-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
 KERNEL_FEATURES_append_core2-32-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
-LINUX_VERSION_corei7-64-intel-common = "4.1.26"
+LINUX_VERSION_corei7-64-intel-common = 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', '4.1.27', '4.1.26', d)}"
 COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
-KMACHINE_corei7-64-intel-common = "intel-corei7-64"
-KBRANCH_corei7-64-intel-common = "standard/intel/base"
-SRCREV_meta_corei7-64-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5d"
-SRCREV_machine_corei7-64-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
+KMACHINE_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'leafhill', 'intel-corei7-64', d)}"
+KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
+SRCREV_meta_corei7-64-intel-common ?= 
"eef309262d79f1f391a8a6a9a53eb49d817a5fa1"
+SRCREV_machine_corei7-64-intel-common ?= 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
 KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
 # Quark / X1000 BSP Info
@@ -27,7 +27,6 @@ SRCREV_meta_i586-nlp-32-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5
 SRCREV_machine_i586-nlp-32-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
 KERNEL_FEATURES_append_i586-nlp-32-intel-common = ""
 
-
 # For Crystalforest and Romley
 KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " uio"
 KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " uio"
-- 
1.9.1

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


[meta-intel] [jethro] [PATCHv3 2/2] linux-yocto_4.1: use bb.utils.contains for KERNEL_FEATURES selection

2016-09-12 Thread Rebecca Chang Swee Fun
Using bb.utils.contains() enable selection of source revision on
machine branch, KBRANCH and KMACHINE in kernel recipe.

leafhill is new bsp type setup in yocto-kernel-cache. This bsp will
build kernel from standard/intel/4.1.27/leaf-hill with a fixed kernel
base version of v4.1.27.

This commit includes update on yocto-kernel-cache meta SRCREV.

Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
index c87a7e2..5c5c96e 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
@@ -10,12 +10,12 @@ SRCREV_meta_core2-32-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5d"
 SRCREV_machine_core2-32-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
 KERNEL_FEATURES_append_core2-32-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
-LINUX_VERSION_corei7-64-intel-common = "4.1.26"
+LINUX_VERSION_corei7-64-intel-common = 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', '4.1.27', '4.1.26', d)}"
 COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
-KMACHINE_corei7-64-intel-common = "intel-corei7-64"
-KBRANCH_corei7-64-intel-common = "standard/intel/base"
-SRCREV_meta_corei7-64-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5d"
-SRCREV_machine_corei7-64-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
+KMACHINE_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'leafhill', 'intel-corei7-64', d)}"
+KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
+SRCREV_meta_corei7-64-intel-common ?= 
"cf6d9876629270e8ed99541db252840291d03f5a"
+SRCREV_machine_corei7-64-intel-common ?= 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
 KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
 # Quark / X1000 BSP Info
@@ -27,7 +27,6 @@ SRCREV_meta_i586-nlp-32-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5
 SRCREV_machine_i586-nlp-32-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
 KERNEL_FEATURES_append_i586-nlp-32-intel-common = ""
 
-
 # For Crystalforest and Romley
 KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " uio"
 KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " uio"
-- 
1.9.1

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


[meta-intel] [jethro] [PATCHv3 1/2] intel-corei7-64: add machine configurations specific to leafhill bsp

2016-09-12 Thread Rebecca Chang Swee Fun
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.

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

diff --git a/conf/machine/intel-corei7-64.conf 
b/conf/machine/intel-corei7-64.conf
index cc16d62..305fd2f 100644
--- a/conf/machine/intel-corei7-64.conf
+++ b/conf/machine/intel-corei7-64.conf
@@ -30,5 +30,7 @@ XSERVER ?= "${XSERVER_X86_BASE} \
"
 
 SYSLINUX_OPTS = "serial 0 115200"
-SERIAL_CONSOLE = "115200 ttyS0"
-APPEND += "console=ttyS0,115200 console=tty0"
+SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS0"
+SERIAL_CONSOLES_CHECK = "ttyS2 ttyS0"
+APPEND += "console=ttyS2,115200n8 console=ttyS0,115200 console=tty0"
+APPEND += "${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 'reboot=efi 
kmemleak=off i915.enable_ipc=1', '', d)}"
-- 
1.9.1

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


[meta-intel] [jethro] [PATCHv3 0/2] Add new bsp consolidated with Intel Common BSP

2016-09-12 Thread Rebecca Chang Swee Fun
Hi,

PATCHv3 Change log:
- Remove runlevel 3 settings from machine conf

The v3 changes are tested working on both Leaf Hill (Broxton) and
Cherry Hill (Braswell) that has different console port setup.

Regards,
Rebecca

PATCHv2 Change log:
- Changed machine configuration settings based on reviewers' feedback
  and comments.
- Append more console settings to SERIAL_CONSOLES
- Added SERIAL_CONSOLES_CHECK to stop getty from trying to enable
  non-existent serial consoles.

PATCHv1 Cover Letter:
This is to add leafhill as one of the BSP supported by Intel Common.
Since we need leafhill bsp to have a fixed kernel version base, we
have setup a kernel branch in linux-yocto-4.1 dedicated for leafhill.

On the meta recipe side, we have used bb.utils.contains() to enable
leafhill as KERNEL_FEATURES which to be set in local.conf by leaf hill
BSP users.

This implementation has allow us to enable more settings without
creating new machines conf file.

This change has been verified with build test and boot up test on Leaf
Hill boards.

Please review and provide feedback if you have any.
The patches are targeted for merging into meta-intel Jethro branch.

Thanks and regards,
Rebecca

Rebecca Chang Swee Fun (2):
  intel-corei7-64: add machine configurations specific to leafhill bsp
  linux-yocto_4.1: use bb.utils.contains for KERNEL_FEATURES selection

 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 11 +--
 conf/machine/intel-corei7-64.conf|  6 --
 2 files changed, 9 insertions(+), 8 deletions(-)

-- 
1.9.1

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


[meta-intel] [jethro] [PATCHv2 1/2] intel-corei7-64: add machine configurations specific to leafhill bsp

2016-09-08 Thread Rebecca Chang Swee Fun
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.

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

diff --git a/conf/machine/intel-corei7-64.conf 
b/conf/machine/intel-corei7-64.conf
index cc16d62..aac14d1 100644
--- a/conf/machine/intel-corei7-64.conf
+++ b/conf/machine/intel-corei7-64.conf
@@ -30,5 +30,7 @@ XSERVER ?= "${XSERVER_X86_BASE} \
"
 
 SYSLINUX_OPTS = "serial 0 115200"
-SERIAL_CONSOLE = "115200 ttyS0"
-APPEND += "console=ttyS0,115200 console=tty0"
+SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS0"
+SERIAL_CONSOLES_CHECK = "ttyS2 ttyS0"
+APPEND += "console=ttyS2,115200n8 console=ttyS0,115200 console=tty0"
+APPEND += "${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', '3 reboot=efi 
kmemleak=off i915.enable_ipc=1', '', d)}"
-- 
1.9.1

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


[meta-intel] [jethro] [PATCHv2 2/2] linux-yocto_4.1: use bb.utils.contains for KERNEL_FEATURES selection

2016-09-08 Thread Rebecca Chang Swee Fun
Using bb.utils.contains() enable selection of source revision on
machine branch, KBRANCH and KMACHINE in kernel recipe.

leafhill is new bsp type setup in yocto-kernel-cache. This bsp will
build kernel from standard/intel/4.1.27/leaf-hill with a fixed kernel
base version of v4.1.27.

This commit includes update on yocto-kernel-cache meta SRCREV.

Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
index c87a7e2..5c5c96e 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
@@ -10,12 +10,12 @@ SRCREV_meta_core2-32-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5d"
 SRCREV_machine_core2-32-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
 KERNEL_FEATURES_append_core2-32-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
-LINUX_VERSION_corei7-64-intel-common = "4.1.26"
+LINUX_VERSION_corei7-64-intel-common = 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', '4.1.27', '4.1.26', d)}"
 COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
-KMACHINE_corei7-64-intel-common = "intel-corei7-64"
-KBRANCH_corei7-64-intel-common = "standard/intel/base"
-SRCREV_meta_corei7-64-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5d"
-SRCREV_machine_corei7-64-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
+KMACHINE_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'leafhill', 'intel-corei7-64', d)}"
+KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
+SRCREV_meta_corei7-64-intel-common ?= 
"cf6d9876629270e8ed99541db252840291d03f5a"
+SRCREV_machine_corei7-64-intel-common ?= 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
 KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
 # Quark / X1000 BSP Info
@@ -27,7 +27,6 @@ SRCREV_meta_i586-nlp-32-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5
 SRCREV_machine_i586-nlp-32-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
 KERNEL_FEATURES_append_i586-nlp-32-intel-common = ""
 
-
 # For Crystalforest and Romley
 KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " uio"
 KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " uio"
-- 
1.9.1

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


[meta-intel] [jethro] [PATCHv2 0/2] Add new bsp consolidated with Intel Common BSP

2016-09-08 Thread Rebecca Chang Swee Fun
Hi,

PATCHv2 Change log:
- Changed machine configuration settings based on reviewers' feedback
  and comments.
- Append more console settings to SERIAL_CONSOLES
- Added SERIAL_CONSOLES_CHECK to stop getty from trying to enable
  non-existent serial consoles.

The v2 changes are tested working on both Leaf Hill (Broxton) and
Cherry Hill (Braswell) that has different console port setup.

Regards,
Rebecca

PATCHv1 Cover Letter:
This is to add leafhill as one of the BSP supported by Intel Common.
Since we need leafhill bsp to have a fixed kernel version base, we
have setup a kernel branch in linux-yocto-4.1 dedicated for leafhill.

On the meta recipe side, we have used bb.utils.contains() to enable
leafhill as KERNEL_FEATURES which to be set in local.conf by leaf hill
BSP users.

This implementation has allow us to enable more settings without
creating new machines conf file.

This change has been verified with build test and boot up test on Leaf
Hill boards.

Please review and provide feedback if you have any.
The patches are targeted for merging into meta-intel Jethro branch.

Thanks and regards,
Rebecca

Rebecca Chang Swee Fun (2):
  intel-corei7-64: add machine configurations specific to leafhill bsp
  linux-yocto_4.1: use bb.utils.contains for KERNEL_FEATURES selection

 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 11 +--
 conf/machine/intel-corei7-64.conf|  6 --
 2 files changed, 9 insertions(+), 8 deletions(-)

-- 
1.9.1

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


[meta-intel] [jethro] [PATCH 1/2] linux-yocto_4.1: update meta SRCREV to latest

2016-09-19 Thread Rebecca Chang Swee Fun
This update will include the following commits:
68b5089 bsp: leafhill: snd_ssp_intel: add ssp audio configuration fragment

Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
index 5c5c96e..23b6828 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
@@ -14,7 +14,7 @@ LINUX_VERSION_corei7-64-intel-common = 
"${@bb.utils.contains('KERNEL_FEATURES',
 COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
 KMACHINE_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'leafhill', 'intel-corei7-64', d)}"
 KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
-SRCREV_meta_corei7-64-intel-common ?= 
"cf6d9876629270e8ed99541db252840291d03f5a"
+SRCREV_meta_corei7-64-intel-common ?= 
"68b5089eeffb5878a990d9eb418407c8e18a6f37"
 SRCREV_machine_corei7-64-intel-common ?= 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
 KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
-- 
1.9.1

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


[meta-intel] [jethro] [PATCH 2/2] linux-yocto_4.1: include ssp audio configuration fragment

2016-09-19 Thread Rebecca Chang Swee Fun
Leaf Hill BSP supports 2 types of audio configurations.
By defaults, BSP will compiled legacy HD-Audio feature,
users can set "AUDIO_FEATURES" in local.conf when they
want Intel SSP Audio feature.

Both audio features are unique and they are mutually exclusive.
AUDIO_FEATURES = "ssp" in local.conf is up to users to turn on
or off depends on their use cases.

Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
index 23b6828..48445d8 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
@@ -1,6 +1,7 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 KERNEL_FEATURES_INTEL_COMMON += "features/amt/mei/mei.scc"
+KERNEL_FEATURES_LEAFHILL_AUDIO += "bsp/leafhill/snd_ssp_intel.scc"
 
 LINUX_VERSION_core2-32-intel-common = "4.1.26"
 COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}"
@@ -16,7 +17,8 @@ KMACHINE_corei7-64-intel-common = 
"${@bb.utils.contains('KERNEL_FEATURES', 'leaf
 KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
 SRCREV_meta_corei7-64-intel-common ?= 
"68b5089eeffb5878a990d9eb418407c8e18a6f37"
 SRCREV_machine_corei7-64-intel-common ?= 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
-KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
+KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON} \
+
${@bb.utils.contains('AUDIO_FEATURES', 'ssp', 
'${KERNEL_FEATURES_LEAFHILL_AUDIO}', '', d)}"
 
 # Quark / X1000 BSP Info
 LINUX_VERSION_i586-nlp-32-intel-common = "4.1.26"
-- 
1.9.1

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


[meta-intel] [jethro] [PATCH 0/2] Include options to turn on SSP Audio

2016-09-19 Thread Rebecca Chang Swee Fun
Hi all,

This is update linux-yocto_4.1 recipe with latest SRCREV of meta
and to include option to turn on Intel SSP Audio feature.

Leaf Hill BSP supports 2 types of audio configurations.
They are HD-Audio and Intel SSP Audio.
By defaults, BSP will compiled legacy HD-Audio feature.

Both audio features are unique and they are mutually exclusive.
AUDIO_FEATURES = "ssp" in local.conf is up to users to turn on
or off depends on their use cases and requirement. This settings
will be documented in BSP release note as user guide.

This changes has been build and verified on Leaf Hill platform.
Intel SSP Audio feature was sanity tested and it is working
well with this configurations and recipe changes.

Please review the implementation and provide feedback and comments.
Last but not least, this changes are targeted to merge into jethro
branch for now.

Thank you very much.

Regards,
Rebecca

Rebecca Chang Swee Fun (2):
  linux-yocto_4.1: update meta SRCREV to latest
  linux-yocto_4.1: include ssp audio configuration fragment

 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

-- 
1.9.1

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


[meta-intel] [jethro] [PATCH 1/2] linux-yocto_4.1: use BSP_SUBTYPE for BSP specific configuration

2016-11-03 Thread Rebecca Chang Swee Fun
Leaf Hill BSP has specific kernel configuration in yocto-kernel-cache
for kernel v4.1. We found some issue where we can't overwrite the
existing kernel configs in yocto-kernel-cache from developer's
custom meta layer.

Root cause analysis has shown that the usage of KERNEL_FEATURES
in kernel recipes and local.conf to pick up BSP specific configs
from kernel-meta is inappropriate. KERNEL_FEATURES should
always and only used for adding configuration or features to the build.
A new variable "BSP_SUBTYPE" has been created to resolve this issue.

Suggested-by: Bruce Ashfield <bruce.ashfi...@windriver.com>
Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 8 
 conf/machine/intel-corei7-64.conf| 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
index 48445d8..e559e8c 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
@@ -11,12 +11,12 @@ SRCREV_meta_core2-32-intel-common ?= 
"20edcbf4e42dd4cef7213a0ce2a4481d8d296f5d"
 SRCREV_machine_core2-32-intel-common ?= 
"9195020e5747fba069c19996fab079931584a7fb"
 KERNEL_FEATURES_append_core2-32-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON}"
 
-LINUX_VERSION_corei7-64-intel-common = 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', '4.1.27', '4.1.26', d)}"
+LINUX_VERSION_corei7-64-intel-common = "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', '4.1.27', '4.1.26', d)}"
 COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
-KMACHINE_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'leafhill', 'intel-corei7-64', d)}"
-KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('KERNEL_FEATURES', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
+KMACHINE_corei7-64-intel-common = "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', 'leafhill', 'intel-corei7-64', d)}"
+KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
 SRCREV_meta_corei7-64-intel-common ?= 
"68b5089eeffb5878a990d9eb418407c8e18a6f37"
-SRCREV_machine_corei7-64-intel-common ?= 
"${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 
'41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
+SRCREV_machine_corei7-64-intel-common ?= "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', '41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
 KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON} \
 
${@bb.utils.contains('AUDIO_FEATURES', 'ssp', 
'${KERNEL_FEATURES_LEAFHILL_AUDIO}', '', d)}"
 
diff --git a/conf/machine/intel-corei7-64.conf 
b/conf/machine/intel-corei7-64.conf
index 305fd2f..30e58fa 100644
--- a/conf/machine/intel-corei7-64.conf
+++ b/conf/machine/intel-corei7-64.conf
@@ -33,4 +33,4 @@ SYSLINUX_OPTS = "serial 0 115200"
 SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS0"
 SERIAL_CONSOLES_CHECK = "ttyS2 ttyS0"
 APPEND += "console=ttyS2,115200n8 console=ttyS0,115200 console=tty0"
-APPEND += "${@bb.utils.contains('KERNEL_FEATURES', 'leafhill', 'reboot=efi 
kmemleak=off i915.enable_ipc=1', '', d)}"
+APPEND += "${@bb.utils.contains('BSP_SUBTYPE', 'leafhill', 'reboot=efi 
kmemleak=off i915.enable_ipc=1', '', d)}"
-- 
1.9.1

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


[meta-intel] [jethro] [PATCH 2/2] linux-yocto_4.1: bump up machine branch source revision to latest

2016-11-03 Thread Rebecca Chang Swee Fun
Signed-off-by: Rebecca Chang Swee Fun <rebecca.swee.fun.ch...@intel.com>
---
 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
index e559e8c..210ca9b 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.1.bbappend
@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}"
 KMACHINE_corei7-64-intel-common = "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', 'leafhill', 'intel-corei7-64', d)}"
 KBRANCH_corei7-64-intel-common = "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', 'standard/intel/4.1.27/leaf-hill', 'standard/intel/base', d)}"
 SRCREV_meta_corei7-64-intel-common ?= 
"68b5089eeffb5878a990d9eb418407c8e18a6f37"
-SRCREV_machine_corei7-64-intel-common ?= "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', '41fc98f785ad56f0df1b85ac039bd5e391697842', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
+SRCREV_machine_corei7-64-intel-common ?= "${@bb.utils.contains('BSP_SUBTYPE', 
'leafhill', '6e06dacda21b3de803e5ca03b8d14e1021861b30', 
'9195020e5747fba069c19996fab079931584a7fb', d)}"
 KERNEL_FEATURES_append_corei7-64-intel-common = 
"${KERNEL_FEATURES_INTEL_COMMON} \
 
${@bb.utils.contains('AUDIO_FEATURES', 'ssp', 
'${KERNEL_FEATURES_LEAFHILL_AUDIO}', '', d)}"
 
-- 
1.9.1

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


[meta-intel] [jethro] [PATCH 0/2] Update on kernel v4.1 recipe for Leaf Hill BSP

2016-11-03 Thread Rebecca Chang Swee Fun
Hi,

I have found some issue where I can't override the existing kernel configs
on kernel-meta using my custom .cfg and .scc files in my custom layer.
We have been using KERNEL_FEATURES in the recipe to parse .scc from
yocto-kernel-cache and this has caused the issue of configs unable to
override with custom layer.

I have shared my issue with Bruce Ashfield (maintainer of linux-yocto) and
he suggested the following fix in the kernel recipe.

I have verified the fix and I am able to change the kernel configs by
supplying my own .cfg and .scc file in my custom meta layer.

The second patch is to update the SRCREV of machine branch for Leaf
Hill BSP.

Please review and provide your feedback if you have any.
This patch is targeted for meta-intel branch jethro only.

Thank you.

Regards,
Rebecca


Rebecca Chang Swee Fun (2):
  linux-yocto_4.1: use BSP_SUBTYPE for BSP specific configuration
  linux-yocto_4.1: bump up machine branch source revision to latest

 common/recipes-kernel/linux/linux-yocto_4.1.bbappend | 8 
 conf/machine/intel-corei7-64.conf| 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
1.9.1

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