[satipclient] fix vtuner defines at kver >= 3.14
authorhschang <chang@dev3>
Mon, 9 Nov 2015 02:11:17 +0000 (11:11 +0900)
committerhschang <chang@dev3>
Mon, 9 Nov 2015 02:11:26 +0000 (11:11 +0900)
meta-openvuplus/recipes-vuplus/satipclient/satipclient.bb
meta-openvuplus/recipes-vuplus/satipclient/satipclient/satip_fix_vtuner_def.patch [new file with mode: 0644]

index 92e5221..cc3ca03 100644 (file)
@@ -3,7 +3,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2c1c00f9d3ed9e24fa69b932b7e7aff2"
 
 SRCDATE = "20150706"
-SRCDATE_PR = "r0"
+SRCDATE_PR = "r1"
 PR = "${SRCDATE}.${SRCDATE_PR}"
 
 SRC_REV = ""
@@ -13,6 +13,8 @@ SRC_URI = " \
        file://satipclient.sh \
        "
 
+SRC_URI += "${@base_version_less_or_equal('VUPLUS_KERNEL_VERSION', '3.13.5', '', 'file://satip_fix_vtuner_def.patch', d)}"
+
 S = "${WORKDIR}/git"
 
 inherit autotools update-rc.d
diff --git a/meta-openvuplus/recipes-vuplus/satipclient/satipclient/satip_fix_vtuner_def.patch b/meta-openvuplus/recipes-vuplus/satipclient/satipclient/satip_fix_vtuner_def.patch
new file mode 100644 (file)
index 0000000..2061fd5
--- /dev/null
@@ -0,0 +1,32 @@
+diff --git a/vtuner.h b/vtuner.h
+index dcc94f8..cac8baf 100644
+--- a/vtuner.h
++++ b/vtuner.h
+@@ -78,13 +78,13 @@ struct vtuner_message {
+       } body;
+ };
+-#define VTUNER_GET_MESSAGE  1
+-#define VTUNER_SET_RESPONSE 2
+-#define VTUNER_SET_NAME     3
+-#define VTUNER_SET_TYPE     4
+-#define VTUNER_SET_HAS_OUTPUTS 5
+-#define VTUNER_SET_FE_INFO  6
+-#define VTUNER_SET_DELSYS   7
++#define VTUNER_GET_MESSAGE  11
++#define VTUNER_SET_RESPONSE 12
++#define VTUNER_SET_NAME     13
++#define VTUNER_SET_TYPE     14
++#define VTUNER_SET_HAS_OUTPUTS 15
++#define VTUNER_SET_FE_INFO  16
++#define VTUNER_SET_DELSYS   17
+ class satipVtuner
+@@ -111,4 +111,4 @@ public:
+       bool isOpened() { return m_openok; }
+ };
+-#endif // __VTUNER_H__
+\ No newline at end of file
++#endif // __VTUNER_H__