Skip to contentSkip to conversation

ti-dmai: clean up recipe

PATCH New Koen Kooi 1 participant 1 message Dec 23, 2011

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 ti-dmai: clean up recipe

* remove DP = -1, there's only one recipe
* remove unused files
* add git patch header to remaining patches

---
 recipes-ti/dmai/ti-dmai.inc                        |    4 +-
 ...01-Correct-DMAI-s-Resize-module-for-DM365.patch |   34 -----
 .../dmai/ti-dmai/dmai-built-with-angstrom.patch    |   48 --------
 .../dmai-do-not-panic-on-mixer-failure.patch       |   31 -----
 .../ti-dmai/dmai-r423-add-omapl137-support.patch   |   12 --
 .../dmai/ti-dmai/dmai-support-32bit-align.patch    |   17 ---
 recipes-ti/dmai/ti-dmai/dmai-update-cpu-name.patch |   16 ---
 .../dmai/ti-dmai/dmai-update-fb-display.patch      |   77 ------------
 .../dmai/ti-dmai/dmai-update-v4l2-display.patch    |  127 --------------------
 .../omap3530-r642-remove-include-videodev.diff     |   74 +++++++-----
 recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff   |   32 ++++--
 recipes-ti/dmai/ti-dmai_svn.bb                     |   12 +-
 12 files changed, 74 insertions(+), 410 deletions(-)
 delete mode 100644 recipes-ti/dmai/ti-dmai/0001-Correct-DMAI-s-Resize-module-for-DM365.patch
 delete mode 100644 recipes-ti/dmai/ti-dmai/dmai-built-with-angstrom.patch
 delete mode 100644 recipes-ti/dmai/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch
 delete mode 100644 recipes-ti/dmai/ti-dmai/dmai-r423-add-omapl137-support.patch
 delete mode 100644 recipes-ti/dmai/ti-dmai/dmai-support-32bit-align.patch
 delete mode 100644 recipes-ti/dmai/ti-dmai/dmai-update-cpu-name.patch
 delete mode 100644 recipes-ti/dmai/ti-dmai/dmai-update-fb-display.patch
 delete mode 100644 recipes-ti/dmai/ti-dmai/dmai-update-v4l2-display.patch
recipes-ti/dmai/ti-dmai.inc +2 -2
index 8b536fc..8c20384 100644
@@ -47,12 +47,12 @@ DMAIPLATFORM_dm355     = "dm355_al"
 DMAIPLATFORM_dm365     = "dm365_al"
 DMAIPLATFORM_omapl137  = "ol137_al"
 DMAIPLATFORM_omapl138  = "ol138_al"
-DMAIPLATFORM          ?= "<UNDEFINED_DMAIPLATFORM>"
+DMAIPLATFORM          ?= "UNDEFINED_DMAIPLATFORM"
 
 # Need to set this for other platforms as well
 #GPPOS_dm355      = "LINUX_GCC"
 #GPPOS_dm365      = "LINUX_GCC"
-#GPPOS           ?= "<UNDEFINEDGPPOS>"
+#GPPOS           ?= "UNDEFINEDGPPOS"
 
 # Need to re-define this for OMAP-L137/L138
 DSPSUFFIX_omapl137 = "x64P"
recipes-ti/dmai/ti-dmai/0001-Correct-DMAI-s-Resize-module-for-DM365.patch deleted +0 -34
deleted file mode 100644
index 21e71de..0000000
@@ -1,34 +0,0 @@
-From 9d9326c26ea990fa49842e0c57d520a5acb4d887 Mon Sep 17 00:00:00 2001
-From: Don Darling <[email protected]>
-Date: Fri, 16 Apr 2010 17:40:40 -0500
-Subject: [PATCH] Correct DMAI's Resize module for DM365.
-
-The PSP requires virtual addresses to be given for the resize buffers.  This
-differs from previous releases, which required physical addresses.  This
-change updates the Resize module to use virtual addresses.
----
- .../packages/ti/sdo/dmai/linux/dm365/Resize.c      |    4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/dmai/packages/ti/sdo/dmai/linux/dm365/Resize.c b/dmai/packages/ti/sdo/dmai/linux/dm365/Resize.c
-index c1716c4..3e71e46 100644
---- a/dmai/packages/ti/sdo/dmai/linux/dm365/Resize.c
-+++ b/dmai/packages/ti/sdo/dmai/linux/dm365/Resize.c
-@@ -313,12 +313,12 @@ Int Resize_execute(Resize_Handle hResize,
- 
-     rsz.in_buff.index     = -1;
-     rsz.in_buff.buf_type  = IMP_BUF_IN;
--    rsz.in_buff.offset    = Buffer_getPhysicalPtr(hSrcBuf) + srcOffset;
-+    rsz.in_buff.offset    = ((Int32)Buffer_getUserPtr(hSrcBuf)) + srcOffset;
-     rsz.in_buff.size      = Buffer_getSize(hSrcBuf);
- 
-     rsz.out_buff1.index    = -1;
-     rsz.out_buff1.buf_type = IMP_BUF_OUT1;
--    rsz.out_buff1.offset   = Buffer_getPhysicalPtr(hDstBuf) + dstOffset;
-+    rsz.out_buff1.offset   = ((Int32)Buffer_getUserPtr(hDstBuf)) + dstOffset;
-     rsz.out_buff1.size     = Buffer_getSize(hDstBuf);
-     
-     /* 
--- 
-1.6.3.3
-
recipes-ti/dmai/ti-dmai/dmai-built-with-angstrom.patch deleted +0 -48

48 lines not on this page · raw message

recipes-ti/dmai/ti-dmai/dmai-do-not-panic-on-mixer-failure.patch deleted +0 -31
deleted file mode 100644
index 20e1aec..0000000
@@ -1,31 +0,0 @@
-Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Sound_alsa.c
-===================================================================
---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Sound_alsa.c	2009-02-11 19:19:23.000000000 -0600
-+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Sound_alsa.c	2009-02-11 19:19:25.000000000 -0600
-@@ -139,7 +139,7 @@
- 
-     snd_mixer_selem_id_free (sid);
-     snd_mixer_close (rcMixer);
--
-+      
-     return Dmai_EOK;
- }
- 
-@@ -431,14 +431,13 @@
-             Sound_alsa_delete(hSound);
-             return NULL;
-         }
--
-+        
-         if (setMixerVolume (attrs) <0) {
--            Sound_alsa_delete (hSound);
--            return NULL;
-+            Dmai_dbg2("Failed to set the mixer volume on %s (%s)\n",
-+                AUDIO_DEVICE, snd_strerror(status));
-         }
-     }
- 
--
-     return hSound;
- }
- 
recipes-ti/dmai/ti-dmai/dmai-r423-add-omapl137-support.patch deleted +0 -12
deleted file mode 100644
index 8f9e8b9..0000000
@@ -1,12 +0,0 @@
-diff -uNr davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/Display_fbdev.c davinci_multimedia_application_interfaceb/dmai/packages/ti/sdo/dmai/linux/Display_fbdev.c
---- davinci_multimedia_application_interface/dmai/packages/ti/sdo/dmai/linux/Display_fbdev.c	2010-03-14 22:43:20.000000000 +0000
-+++ davinci_multimedia_application_interfaceb/dmai/packages/ti/sdo/dmai/linux/Display_fbdev.c	2010-03-14 23:19:41.000000000 +0000
-@@ -43,7 +43,7 @@
- 
- #ifdef Dmai_Device_omap3530
- #include <linux/omapfb.h>
--#elif defined Dmai_Device_omapl138
-+#elif defined (Dmai_Device_omapl137) || defined (Dmai_Device_omapl138)
- #include <video/davincifb.h>
- #else
- #include <video/davincifb_ioctl.h>
recipes-ti/dmai/ti-dmai/dmai-support-32bit-align.patch deleted +0 -17
deleted file mode 100644
index 0ee817d..0000000
@@ -1,17 +0,0 @@
-Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/omap3530/Resize.c
-===================================================================
---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/omap3530/Resize.c	2009-02-11 19:20:45.000000000 -0600
-+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/omap3530/Resize.c	2009-02-11 19:21:09.000000000 -0600
-@@ -557,9 +557,9 @@
-     srcOffset = srcDim.y * srcDim.lineLength + srcDim.x * 2;
-     dstOffset = dstDim.y * dstDim.lineLength + dstDim.x * 2;
- 
--    /* Input and output buffers must be 4096 bytes aligned */
--    assert(((Buffer_getPhysicalPtr(hDstBuf) + srcOffset) & 0xFFF) == 0);
--    assert(((Buffer_getPhysicalPtr(hSrcBuf) + dstOffset) & 0xFFF) == 0);
-+    /* Pointers must be a multiple of 32 bytes */
-+    assert((Buffer_getPhysicalPtr(hDstBuf) & 0x1F) == 0);
-+    assert((Buffer_getPhysicalPtr(hSrcBuf) & 0x1F) == 0);
- 
-     /* Queue the resizer buffers */
-     for (i=0; i < 2; i++) { 
recipes-ti/dmai/ti-dmai/dmai-update-cpu-name.patch deleted +0 -16
deleted file mode 100644
index 052a8e3..0000000
@@ -1,16 +0,0 @@
-Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Cpu.c
-===================================================================
---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Cpu.c	2009-02-12 09:34:22.000000000 -0600
-+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Cpu.c	2009-02-12 09:34:51.000000000 -0600
-@@ -103,7 +103,10 @@
-     else if (strcmp(valBuf, "DM357 EVM") == 0) { 
-         *device = Cpu_Device_DM6446;
-     }
--    else if (strcmp(valBuf, "OMAP3EVM Board") == 0) {
-+    else if ((strcmp(valBuf, "OMAP3EVM Board") == 0) ||
-+	     (strcmp(valBuf, "OMAP3 EVM") == 0) ||
-+	     (strcmp(valBuf, "OMAP3 Beagle Board") == 0)
-+	    ){
-         *device = Cpu_Device_OMAP3530;
-     }
-     else {
recipes-ti/dmai/ti-dmai/dmai-update-fb-display.patch deleted +0 -77

77 lines not on this page · raw message

recipes-ti/dmai/ti-dmai/dmai-update-v4l2-display.patch deleted +0 -127

127 lines not on this page · raw message

recipes-ti/dmai/ti-dmai/omap3530-r642-remove-include-videodev.diff +45 -29

89 lines not on this page · raw message

recipes-ti/dmai/ti-dmai/r642-fix-config-bld.diff +22 -10
index 06ffbec..2f328c0 100644
@@ -1,8 +1,18 @@
-Index: dmai/packages/config.bld
-===================================================================
---- dmai/packages/config.bld	(revisione 642)
-+++ dmai/packages/config.bld	(copia locale)
-@@ -44,29 +44,9 @@
+From 86e89bb160cfe67c173f1260b93066b12dd73580 Mon Sep 17 00:00:00 2001
+From: Enrico Butera <[email protected]>
+Date: Thu, 22 Dec 2011 11:03:58 +0100
+Subject: [PATCH 2/2] fix toolchain names in config.bld
+
+Signed-off-by: Koen Kooi <[email protected]>
+---
+ .../dmai/packages/config.bld                       |   24 +------------------
+ 1 files changed, 2 insertions(+), 22 deletions(-)
+
+diff --git a/davinci_multimedia_application_interface/dmai/packages/config.bld b/davinci_multimedia_application_interface/dmai/packages/config.bld
+index 8c2e96e..566f907 100644
+--- a/davinci_multimedia_application_interface/dmai/packages/config.bld
++++ b/davinci_multimedia_application_interface/dmai/packages/config.bld
+@@ -44,28 +44,8 @@ var C6X = xdc.useModule('ti.targets.C64P');
  C6X.rootDir = codegen;
  C6X.platform = xdcplat;
  
@@ -10,9 +20,7 @@ Index: dmai/packages/config.bld
 -   Then the TOOLDIR and LONGNAME are derived based on a regex of CROSS_COMPILE
 -*/
 -var crosscompile = "" + java.lang.System.getenv("CROSS_COMPILE");
-+var tooldir = "" + java.lang.System.getenv("CSTOOL_DIR");
-+var longName = "" + java.lang.System.getenv("MVTOOL_PREFIX") + "gcc";
- 
+-
 -var tooldir = "";
 -var longName = "";
 -
@@ -30,7 +38,11 @@ Index: dmai/packages/config.bld
 -} else {
 -    longName = crosscompile + "gcc";
 -}
--
++var tooldir = "" + java.lang.System.getenv("CSTOOL_DIR");
++var longName = "" + java.lang.System.getenv("MVTOOL_PREFIX") + "gcc";
+ 
  /* location of the GCC Arm9 tools */
  var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T');
- GCArmv5T.LONGNAME = longName;
+-- 
+1.7.2.5
+
recipes-ti/dmai/ti-dmai_svn.bb +5 -7
index cae4c1f..43b2833 100644
@@ -3,15 +3,13 @@ require ti-dmai.inc
 # Hack to be able to use recent kernel headers from userspace
 TARGET_CC_ARCH += " -D__EXPORTED_HEADERS__"
 
-DEFAULT_PREFERENCE = "-1"
-
 PV = "2_10_00_01+svnr${SRCPV}"
 
 LIC_FILES_CHKSUM = "file://dmai_${PV}_License.html;md5=3302f728a5a42f97cabc26a54d7fa607"
 
 # This package has high dependence on kernel, use kernel PR as base and append a local version
 PR = "${MACHINE_KERNEL_PR}"
-PR_append = "n"
+PR_append = "o"
 
 DMAIBRANCH_dm6446     = "trunk"
 DMAIBRANCH_dm6467     = "branches/GITPSP_INT_101009"
@@ -20,7 +18,7 @@ DMAIBRANCH_dm355      = "branches/GITPSP_INT_101009"
 DMAIBRANCH_dm365      = "trunk"
 DMAIBRANCH_omapl137   = "trunk"
 DMAIBRANCH_omapl138   = "trunk"
-DMAIBRANCH           ?= "<UNDEFINED_DMAIBRANCH>"
+DMAIBRANCH           ?= "UNDEFINED_DMAIBRANCH"
 
 SRCREV_dm6446         = "482"
 SRCREV_dm6467         = "441"
@@ -29,9 +27,9 @@ SRCREV_dm355          = "424"
 SRCREV_dm365          = "570"
 SRCREV_omapl137       = "482"
 SRCREV_omapl138       = "570"
-SRCREV               ?= "<UNDEFINED_SRCREV>"
+SRCREV               ?= "UNDEFINED_SRCREV"
 
-SRC_URI_append = " file://omap3530-r642-remove-include-videodev.diff \
-                   file://r642-fix-config-bld.diff \
+SRC_URI_append = " file://omap3530-r642-remove-include-videodev.diff;striplevel=2 \
+                   file://r642-fix-config-bld.diff;striplevel=2 \
                  "
 
Signature · 1 line
1.7.2.5