[meta-lsi] [PATCH 02/26] linux-yocto: Simplify the method to chose the debug fragment

Daniel Dragomir daniel.dragomir at windriver.com
Fri Aug 5 08:33:25 PDT 2016


Depending on SMP settings, debug fragments are different for
3.14 standard Kernel. If SMP == no && KV == 3.14 &&
LINUX_KERNEL_TYPE == standard -> use dbg-nosmp fragment;
else use dbg fragment.

Signed-off-by: Daniel Dragomir <daniel.dragomir at windriver.com>
---
 recipes-kernel/linux/frags-powerpc.inc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/recipes-kernel/linux/frags-powerpc.inc b/recipes-kernel/linux/frags-powerpc.inc
index 4c51642..03f0e94 100644
--- a/recipes-kernel/linux/frags-powerpc.inc
+++ b/recipes-kernel/linux/frags-powerpc.inc
@@ -1,8 +1,7 @@
 # depending on SMP settings, debug fragments are different for 3.14 standard Kernel:
 # SMP == no && KV == 3.14 && LINUX_KERNEL_TYPE == standard -> use dbg-nosmp fragment
-DBG_TEST_SMP = "${@base_conditional('SMP', 'yes', 'dbg', 'dbg-nosmp', d)}"
-DBG_TEST_KERNEL = "${@base_conditional('KV', '3.14', '${DBG_TEST_SMP}', 'dbg', d)}"
-DBG_VERSION = "${@base_conditional('LINUX_KERNEL_TYPE', 'standard', '${DBG_TEST_KERNEL}', 'dbg', d)}"
+DBG_VERSION = "${@base_conditional('SMP', 'no', base_conditional('KV', '3.14', \
+                  base_conditional('LINUX_KERNEL_TYPE', 'standard', 'dbg-nosmp', 'dbg', d), 'dbg', d), 'dbg', d)}"
 
 # adding fragments with kernel options to the final .config
 SRC_URI += "file://common.scc \
-- 
2.7.4



More information about the meta-lsi mailing list