Denys Dmytriyenko : linux-ti-staging: split out systest defconfig into own recipe
Module: meta-ti Branch: fido Commit: adbf4616ee67f2f7157a5958ab1a7c397f1637ab URL: http://arago-project.org/git/meta-ti.git?a=commit;h=adbf4616ee67f2f7157a5958ab1a7c397f1637ab
Author: Denys Dmytriyenko <[email protected]> Date: Wed Jan 20 05:49:37 2016 +0000
linux-ti-staging: split out systest defconfig into own recipe
Signed-off-by Denys Dmytriyenko <[email protected]>
---
.../defconfig} | 0 .../keystone/defconfig} | 0 .../linux/linux-ti-staging-systest_4.1.bb | 5 +++++ recipes-kernel/linux/linux-ti-staging_4.1.bb | 1 - recipes-kernel/linux/setup-defconfig.inc | 10 +++++++++- 5 files changed, 14 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti-staging-systest-4.1/defconfig renamed from recipes-kernel/linux/linux-ti-staging-4.1/configs/systest +0 -0
recipes-kernel/linux/linux-ti-staging-systest-4.1/keystone/defconfig renamed from recipes-kernel/linux/linux-ti-staging-4.1/keystone/configs/systest +0 -0
recipes-kernel/linux/linux-ti-staging-systest_4.1.bb new file +5 -0
@@ -0,0 +1,5 @@ +require linux-ti-staging_4.1.bb + +# Look in the generic major.minor directory for files +# This will have priority over generic non-rt path +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:"
recipes-kernel/linux/linux-ti-staging_4.1.bb +0 -1
@@ -7,7 +7,6 @@ inherit kernel require recipes-kernel/linux/linux-dtb.inc require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/multi-kernel.inc require recipes-kernel/linux/cmem.inc # Look in the generic major.minor directory for files
recipes-kernel/linux/setup-defconfig.inc +9 -1
@@ -1,6 +1,14 @@ # KERNEL_LOCALVERSION can be set to add a tag to the end of the # kernel version string. such as the commit id -KERNEL_LOCALVERSION ?= "" +def get_git_revision(p): + import subprocess + + try: + return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE).communicate()[0].rstrip() + except OSError: + return None + +KERNEL_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" # Check the defconfig file and see if it points to an in kernel # defconfig that should be used, or if it is a complete config file