From 6cf9cfa3b9e68891949f88ef6fbfb153d63055ed Mon Sep 17 00:00:00 2001
From: Jesse Gilles <jgilles@multitech.com>
Date: Mon, 3 Mar 2014 12:26:36 -0600
Subject: ti-compat-wireless-wl12xx_r5.sp7.01: fix wl12xx version.h

---
 .../compat-wireless/ti-compat-wireless-wl12xx_r5.sp7.01.bb        | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/multitech/recipes/compat-wireless/ti-compat-wireless-wl12xx_r5.sp7.01.bb b/multitech/recipes/compat-wireless/ti-compat-wireless-wl12xx_r5.sp7.01.bb
index c8a9bd5..1371b15 100644
--- a/multitech/recipes/compat-wireless/ti-compat-wireless-wl12xx_r5.sp7.01.bb
+++ b/multitech/recipes/compat-wireless/ti-compat-wireless-wl12xx_r5.sp7.01.bb
@@ -11,7 +11,7 @@ RDEPENDS_${PN} = "wireless-tools"
 
 inherit module
 
-LOCAL_PR = ".1"
+LOCAL_PR = ".2"
 MACHINE_KERNEL_PR_append = "${LOCAL_PR}"
 
 TAG="ol_R5.SP7.01"
@@ -51,6 +51,12 @@ do_configure() {
     echo -e "${TAG}" > compat_base_tree_version
     echo "" > compat_base_tree
 
+    # create wl12xx/version.h manually since we aren't using a git repo
+    TI_VERSION="${TAG}"
+    DRIVER_PATH="drivers/net/wireless/wl12xx"
+    echo "static const char *wl12xx_timestamp = __TIMESTAMP__;" > ${DRIVER_PATH}/version.h
+    echo "static const char *wl12xx_git_head = \"${TI_VERSION}\";" >> ${DRIVER_PATH}/version.h
+
     ./scripts/driver-select wl12xx
 }
 
-- 
cgit v1.2.3