[oe] [PATCH 2/5] matrix-gui-common: make versioned recipes

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


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

Signed-off-by: Chase Maupin <chase.maupin at ti.com>
---
 recipes/ti/matrix-gui-common.inc    |   35 +++++++++++++++++++++++++++++++++
 recipes/ti/matrix-gui-common_1.1.bb |    7 ++++++
 recipes/ti/matrix-gui-common_1.2.bb |    5 ++++
 recipes/ti/matrix-gui-common_svn.bb |   37 -----------------------------------
 4 files changed, 47 insertions(+), 37 deletions(-)
 create mode 100644 recipes/ti/matrix-gui-common.inc
 create mode 100644 recipes/ti/matrix-gui-common_1.1.bb
 create mode 100644 recipes/ti/matrix-gui-common_1.2.bb
 delete mode 100644 recipes/ti/matrix-gui-common_svn.bb

diff --git a/recipes/ti/matrix-gui-common.inc b/recipes/ti/matrix-gui-common.inc
new file mode 100644
index 0000000..096c321
--- /dev/null
+++ b/recipes/ti/matrix-gui-common.inc
@@ -0,0 +1,35 @@
+DESCRIPTION = "Common files for all versions of Matrix GUI"
+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"
+
+#Checkout the project repository to get access to the scripts and data
+#files.
+SRC_URI = "svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' "
+
+S = "${WORKDIR}/trunk"
+
+PACKAGE_ARCH = ${MACHINE_ARCH}
+
+do_install() {
+    install -d ${D}/${bindir}
+    install -m 0755 ${S}/${PLATFORM}/bin/* ${D}/${bindir}/
+    install -d ${D}/${datadir}/matrix/html
+    install -m 0644 ${S}/${PLATFORM}/html/* ${D}/${datadir}/matrix/html
+    install -d ${D}/${datadir}/matrix/images
+    install -m 0644 ${S}/images/*.png ${D}/${datadir}/matrix/images/
+
+}
+
+FILES_${PN} += "${datadir}/matrix/*"
diff --git a/recipes/ti/matrix-gui-common_1.1.bb b/recipes/ti/matrix-gui-common_1.1.bb
new file mode 100644
index 0000000..2b921af
--- /dev/null
+++ b/recipes/ti/matrix-gui-common_1.1.bb
@@ -0,0 +1,7 @@
+require matrix-gui-common.inc
+
+COMPATIBLE_MACHINE = "(dm365|omapl138|omap3)"
+
+SRCREV = "136"
+PV = "1.1"
+PR = "r4"
diff --git a/recipes/ti/matrix-gui-common_1.2.bb b/recipes/ti/matrix-gui-common_1.2.bb
new file mode 100644
index 0000000..a3da400
--- /dev/null
+++ b/recipes/ti/matrix-gui-common_1.2.bb
@@ -0,0 +1,5 @@
+require matrix-gui-common.inc
+
+SRCREV = "146"
+PV = "1.2"
+PR = "r0"
diff --git a/recipes/ti/matrix-gui-common_svn.bb b/recipes/ti/matrix-gui-common_svn.bb
deleted file mode 100644
index 89126a2..0000000
--- a/recipes/ti/matrix-gui-common_svn.bb
+++ /dev/null
@@ -1,37 +0,0 @@
-DESCRIPTION = "Common files for all versions of Matrix GUI"
-HOMEPAGE = "https://gforge.ti.com/gf/project/matrix_gui/"
-LICENSE = "BSD"
-SECTION = "multimedia"
-PRIORITY = "optional"
-
-SRCREV = "136"
-PV = "1.1"
-PR = "r3+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>"
-
-#Checkout the project repository to get access to the scripts and data
-#files.
-SRC_URI = "svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' "
-
-S = "${WORKDIR}/trunk"
-
-PACKAGE_ARCH = ${MACHINE_ARCH}
-
-do_install() {
-    install -d ${D}/${bindir}
-    install -m 0755 ${S}/${PLATFORM}/bin/* ${D}/${bindir}/
-    install -d ${D}/${datadir}/matrix/html
-    install -m 0644 ${S}/${PLATFORM}/html/* ${D}/${datadir}/matrix/html
-    install -d ${D}/${datadir}/matrix/images
-    install -m 0644 ${S}/images/*.png ${D}/${datadir}/matrix/images/
-
-}
-
-FILES_${PN} += "${datadir}/matrix/*"
-- 
1.7.0.4





More information about the Openembedded-devel mailing list