Skip to contentSkip to conversation

linux-ti-staging: split out systest defconfig into own recipe

PATCH New Denys Dmytriyenko 1 participant 1 message Jan 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-ti-staging: split out systest defconfig into own recipe

From: Denys Dmytriyenko <[email protected]>

---
 .../configs/systest => linux-ti-staging-systest-4.1/defconfig} |  0
 .../keystone/defconfig}                                        |  0
 ...ux-ti-staging-rt_4.1.bb => linux-ti-staging-systest_4.1.bb} |  4 ----
 recipes-kernel/linux/linux-ti-staging_4.1.bb                   |  1 -
 recipes-kernel/linux/setup-defconfig.inc                       | 10 +++++++++-
 5 files changed, 9 insertions(+), 6 deletions(-)
 rename recipes-kernel/linux/{linux-ti-staging-4.1/configs/systest => linux-ti-staging-systest-4.1/defconfig} (100%)
 rename recipes-kernel/linux/{linux-ti-staging-4.1/keystone/configs/systest => linux-ti-staging-systest-4.1/keystone/defconfig} (100%)
 copy recipes-kernel/linux/{linux-ti-staging-rt_4.1.bb => linux-ti-staging-systest_4.1.bb} (69%)
recipes-kernel/linux/linux-ti-staging-systest-4.1/defconfig renamed from recipes-kernel/linux/linux-ti-staging-4.1/configs/systest +0 -0
similarity index 100%
rename from recipes-kernel/linux/linux-ti-staging-4.1/configs/systest
rename to recipes-kernel/linux/linux-ti-staging-systest-4.1/defconfig
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
similarity index 100%
rename from recipes-kernel/linux/linux-ti-staging-4.1/keystone/configs/systest
rename to recipes-kernel/linux/linux-ti-staging-systest-4.1/keystone/defconfig
recipes-kernel/linux/linux-ti-staging-systest_4.1.bb renamed from recipes-kernel/linux/linux-ti-staging-rt_4.1.bb +0 -4
similarity index 69%
copy from recipes-kernel/linux/linux-ti-staging-rt_4.1.bb
copy to recipes-kernel/linux/linux-ti-staging-systest_4.1.bb
index ae958de..30962e6 100644
@@ -3,7 +3,3 @@ 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:"
-
-BRANCH = "ti-rt-linux-4.1.y"
-
-SRCREV = "e1438117e08a772a560d4f4226c889d5fe48e4fd"
recipes-kernel/linux/linux-ti-staging_4.1.bb +0 -1
index a6615aa..e02e5cd 100644
@@ -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
index 2b67bfc..cfad14b 100644
@@ -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
Signature · 1 line
2.2.0