[oe] [PATCH 3/5] matrix-gui-e: make versioned recipes

Chase Maupin chasemaupin03 at gmail.com
Thu Sep 30 18:12:04 UTC 2010


* Abstracted common code to .inc file
* Made versioned recipe for version 1.1 and 1.2
* Removed _svn version of the recipe

Signed-off-by: Chase Maupin <chase.maupin at ti.com>
---
 recipes/ti/matrix-gui-e.inc    |   40 ++++++++++++++++++++++++++++++++++++++
 recipes/ti/matrix-gui-e_1.1.bb |    8 +++++++
 recipes/ti/matrix-gui-e_1.2.bb |    6 +++++
 recipes/ti/matrix-gui-e_svn.bb |   42 ----------------------------------------
 4 files changed, 54 insertions(+), 42 deletions(-)
 create mode 100644 recipes/ti/matrix-gui-e.inc
 create mode 100644 recipes/ti/matrix-gui-e_1.1.bb
 create mode 100644 recipes/ti/matrix-gui-e_1.2.bb
 delete mode 100644 recipes/ti/matrix-gui-e_svn.bb

diff --git a/recipes/ti/matrix-gui-e.inc b/recipes/ti/matrix-gui-e.inc
new file mode 100644
index 0000000..3004a65
--- /dev/null
+++ b/recipes/ti/matrix-gui-e.inc
@@ -0,0 +1,40 @@
+DESCRIPTION = "Matrix GUI for Qt Embedded"
+HOMEPAGE = "https://gforge.ti.com/gf/project/matrix_gui/"
+LICENSE = "BSD"
+SECTION = "multimedia"
+PRIORITY = "optional"
+
+COMPATIBLE_MACHINE = "(dm365|omapl138|omap3|ti816x)"
+
+PLATFORM_dm365 = "dm365"
+PLATFORM_omapl138 = "omapl138"
+PLATFORM_omap3evm = "omap3530"
+PLATFORM_dm37x-evm = "dm3730"
+PLATFORM_am37x-evm = "am3715"
+PLATFORM_beagleboard = "am3715"
+PLATFORM_ti816x = "ti816x"
+
+SRC_URI = "svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' "
+
+S = "${WORKDIR}/trunk"
+
+INITSCRIPT_NAME = "matrix-gui-e"
+INITSCRIPT_PARAMS = "defaults 99"
+#INITSCRIPT_PARAMS = "start 99 3 . stop 99 3 ."
+
+CXXFLAGS_da850-omapl138-evm_append = " -DPlatform_omapl138 "
+CXXFLAGS_dm365_append = " -DPlatform_dm365 "
+PACKAGE_ARCH = ${MACHINE_ARCH}
+
+inherit qt4e update-rc.d
+
+do_install() {
+	install -d ${D}/${bindir}
+	install -m 0755 ${S}/matrix_gui ${D}/${bindir}/matrix_guiE
+	install -d ${D}${sysconfdir}/init.d/
+	install -c -m 0755 ${S}/${PLATFORM}/etc/init ${D}${sysconfdir}/init.d/matrix-gui-e
+
+}
+
+RRECOMMENDS_${PN} = "qt4-embedded-plugin-mousedriver-tslib qt4-embedded-fonts"
+RDEPENDS_${PN} += "matrix-gui-common"
diff --git a/recipes/ti/matrix-gui-e_1.1.bb b/recipes/ti/matrix-gui-e_1.1.bb
new file mode 100644
index 0000000..d6a674f
--- /dev/null
+++ b/recipes/ti/matrix-gui-e_1.1.bb
@@ -0,0 +1,8 @@
+require matrix-gui-e.inc
+
+COMPATIBLE_MACHINE = "(dm365|omapl138|omap3)"
+
+SRCREV = "136"
+PV = "1.1"
+PR = "r19"
+
diff --git a/recipes/ti/matrix-gui-e_1.2.bb b/recipes/ti/matrix-gui-e_1.2.bb
new file mode 100644
index 0000000..461fc7e
--- /dev/null
+++ b/recipes/ti/matrix-gui-e_1.2.bb
@@ -0,0 +1,6 @@
+require matrix-gui-e.inc
+
+SRCREV = "146"
+PV = "1.2"
+PR = "r0"
+
diff --git a/recipes/ti/matrix-gui-e_svn.bb b/recipes/ti/matrix-gui-e_svn.bb
deleted file mode 100644
index 5570d92..0000000
--- a/recipes/ti/matrix-gui-e_svn.bb
+++ /dev/null
@@ -1,42 +0,0 @@
-DESCRIPTION = "Matrix GUI for Qt Embedded"
-HOMEPAGE = "https://gforge.ti.com/gf/project/matrix_gui/"
-LICENSE = "BSD"
-SECTION = "multimedia"
-PRIORITY = "optional"
-
-SRCREV = "136"
-PV = "1.1"
-PR = "r18+svnr${SRCPV}"
-
-PLATFORM_dm365 = "dm365"
-PLATFORM_da850-omapl138-evm = "omapl138"
-PLATFORM_omap3evm = "omap3530"
-PLATFORM_dm37x-evm = "dm3730"
-PLATFORM_am37x-evm = "am3715"
-PLATFORM_beagleboard = "am3715"
-PLATFORM ?= "<UNDEFINED>"
-
-SRC_URI = "svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' "
-
-S = "${WORKDIR}/trunk"
-
-INITSCRIPT_NAME = "matrix-gui-e"
-INITSCRIPT_PARAMS = "defaults 99"
-#INITSCRIPT_PARAMS = "start 99 3 . stop 99 3 ."
-
-CXXFLAGS_da850-omapl138-evm_append = " -DPlatform_omapl138 "
-CXXFLAGS_dm365_append = " -DPlatform_dm365 "
-PACKAGE_ARCH = ${MACHINE_ARCH}
-
-inherit qt4e update-rc.d
-
-do_install() {
-	install -d ${D}/${bindir}
-	install -m 0755 ${S}/matrix_gui ${D}/${bindir}/matrix_guiE
-	install -d ${D}${sysconfdir}/init.d/
-	install -c -m 0755 ${S}/${PLATFORM}/etc/init ${D}${sysconfdir}/init.d/matrix-gui-e
-
-}
-
-RRECOMMENDS_${PN} = "qt4-embedded-plugin-mousedriver-tslib qt4-embedded-fonts"
-RDEPENDS_${PN} += "matrix-gui-common"
-- 
1.7.0.4





More information about the Openembedded-devel mailing list