Updates to patches for PPC
authorDoug Goldstein <cardoe@gentoo.org>
Fri, 7 Oct 2005 16:08:11 +0000 (16:08 +0000)
committerDoug Goldstein <cardoe@gentoo.org>
Fri, 7 Oct 2005 16:08:11 +0000 (16:08 +0000)
Package-Manager: portage-2.0.53_rc3

media-tv/ivtv/Manifest
media-tv/ivtv/files/ivtv-0.3.8-devname.patch
media-tv/ivtv/files/ppc-odw.patch
media-tv/ivtv/ivtv-0.3.8.ebuild

index 78c2143d2335cede6c385b75fdfffd2ba584210c..cb93a4f49695c59ab0ff4de1b2665a77b121020d 100644 (file)
@@ -1,19 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 MD5 9d4e8dcba852c47be6e1a2c3b0f31508 ChangeLog 5517
 MD5 5458ad51769cecb853e0afb00ab63930 files/digest-ivtv-0.2.0_rc3-r5 134
 MD5 956acbfe3a222cc4b612da479232d670 files/digest-ivtv-0.3.8 191
 MD5 98a1ec166f665108688586fd5b36c05d files/ivtv 89
-MD5 42953f1e55ea4e5deeb805ae865cdfbf files/ivtv-0.3.8-devname.patch 798
-MD5 592fe48c2d71a392ff1febb8cd486767 files/ppc-odw.patch 2374
+MD5 831334865cb46ecade346b32f1686d4a files/ivtv-0.3.8-devname.patch 644
+MD5 45b398aa7ee5b6e55121b8a1b5dc3f3b files/ppc-odw.patch 587
 MD5 28b327ad3b268ad20a14a516c72e9908 ivtv-0.2.0_rc3-r5.ebuild 3964
-MD5 6e498711f948a3703e8bb338aac39b67 ivtv-0.3.8.ebuild 4544
+MD5 c6cc948a6f1e78e5a9a02fff65807360 ivtv-0.3.8.ebuild 4553
 MD5 71007461e2e10f367a6a8f7a0b0d7d6a metadata.xml 465
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDRguQBtvusYtCZMsRAj0YAJ9X6eyRrj84hCM8HA133CCKg7EuhwCfQZmk
-MexLOO5cpbh5mJxvqvzf19E=
-=BfXS
------END PGP SIGNATURE-----
index ea67dc3f631524398fc5f3080a79705e63fde895..2493a1ba948ee1ecf91e92a3acecc1a0b2df15bc 100644 (file)
@@ -1,26 +1,22 @@
-Index: driver/tda9887.c
-===================================================================
---- driver/tda9887.c    (revision 2702)
-+++ driver/tda9887.c    (working copy)
-@@ -856,7 +856,7 @@
+--- driver/tuner.c     2005-10-07 11:52:14.000000000 -0400
++++ driver/tuner.c.new 2005-10-07 11:53:30.000000000 -0400
+@@ -1832,7 +1832,7 @@
+       .command = tuner_command,
+ };
+ static struct i2c_client client_template = {
+-      I2C_DEVNAME("(tuner unset)"),
++      .name  = "(tuner unset)",
+       .flags = I2C_CLIENT_ALLOW_USE,
+       .driver = &driver,
+ };
+--- driver/tda9887.c   2005-10-07 11:52:14.000000000 -0400
++++ driver/tda9887.c.new       2005-10-07 11:52:58.000000000 -0400
+@@ -851,7 +851,7 @@
  };
  static struct i2c_client client_template =
  {
--       I2C_DEVNAME("tda9887"),
-+       .name      = "tda9887",
-        .flags     = I2C_CLIENT_ALLOW_USE,
+-      I2C_DEVNAME("tda9887"),
++      .name      = "tda9887",
+       .flags     = I2C_CLIENT_ALLOW_USE,
          .driver    = &driver,
  };
-Index: driver/tuner.c
-===================================================================
---- driver/tuner.c      (revision 2702)
-+++ driver/tuner.c      (working copy)
-@@ -1854,7 +1854,7 @@
-        .command = tuner_command,
- };
- static struct i2c_client client_template = {
--       I2C_DEVNAME("(tuner unset)"),
-+       .name = "tuner unset",
-        .flags = I2C_CLIENT_ALLOW_USE,
-        .driver = &driver,
- };
index 1bd528f676160c43cde8c2d441e8ba4a36a861ec..a423e99d2594a0dca41d078b3e4401be04856d2d 100644 (file)
@@ -1,62 +1,18 @@
-diff -urN ivtv-0.3.7-orig/ChangeLog ivtv-0.3.7/ChangeLog
---- ivtv-0.3.7-orig/ChangeLog  2005-07-28 07:53:14.003679936 +0000
-+++ ivtv-0.3.7/ChangeLog       2005-07-28 07:57:25.672420472 +0000
-@@ -1,5 +1,9 @@
- IVTV changes:
- 
-+#0.3.7 - PowerPC patches - Pieter Van den Abeele <pvdabeel@gentoo.org>
-+       - disables building of x86 asm utils
-+       - force disable DMA, force enable PIO 
-+
- #0.3.7 - YUV decoder patches.
-        - powerdown soundchip on cx25840 when not in use.      
-        - i2c index improvements for cx25840 module.
-diff -urN ivtv-0.3.7-orig/driver/ivtv-driver.h ivtv-0.3.7/driver/ivtv-driver.h
---- ivtv-0.3.7-orig/driver/ivtv-driver.h       2005-07-28 07:53:13.978683736 +0000
-+++ ivtv-0.3.7/driver/ivtv-driver.h    2005-07-28 07:53:42.342371800 +0000
-@@ -202,7 +202,7 @@
- /* ========================== START USER SETTABLE DMA VARIABLES =========== */
- /* ======================================================================== */
- 
--#define DYNAMIC_MEMORY_ALLOC  1 /* Allocate memory each stream use */
-+#define DYNAMIC_MEMORY_ALLOC  0 /* Allocate memory each stream use */
- 
- /* DMA Buffers Sizes */
-  #define IVTV_DMA_ENC_BUF_SIZE     0x00008000
-@@ -230,9 +230,9 @@
- #define IVTV_DMA_SG_OSD_ENT   (2883584/PAGE_SIZE)     /* sg entities */
- 
- /* Decoder DMA or PIO, 1=PIO, 0=DMA */
--#define IVTV_VBI_PIO          0
--#define IVTV_ENC_PIO          0
--#define IVTV_DEC_PIO          0
-+#define IVTV_VBI_PIO          1
-+#define IVTV_ENC_PIO          1
-+#define IVTV_DEC_PIO          1
- /* This sometimes times out, seems to  kill
-                                          encoding sometimes */
- 
-diff -urN ivtv-0.3.7-orig/utils/Makefile ivtv-0.3.7/utils/Makefile
---- ivtv-0.3.7-orig/utils/Makefile     2005-07-28 07:53:14.552596488 +0000
-+++ ivtv-0.3.7/utils/Makefile  2005-07-28 07:55:39.443569712 +0000
-@@ -1,8 +1,8 @@
--INSTALLDIR = /usr/local/bin
-+INSTALLDIR = /usr/bin
+--- utils/Makefile     2005-09-11 05:22:17.000000000 -0400
++++ utils/Makefile.new 2005-10-07 11:59:38.000000000 -0400
+@@ -1,12 +1,12 @@
+ INSTALLDIR = /usr/local/bin
  HEADERDIR = /usr/include/linux
  
--SANEEXES = ivtvctl ivtvfbctl ivtvplay cx25840ctl
--INSANEEXES = mpegindex radio vbi fwapi encoder wss vbi_passthrough test_ioctl
-+SANEEXES = ivtvctl cx25840ctl
-+INSANEEXES = radio vbi fwapi wss vbi_passthrough test_ioctl
+-SANEEXES = ivtvctl ivtvfbctl ivtvplay cx25840ctl ivtv-detect ivtv-radio
+-INSANEEXES = mpegindex encoder 
++SANEEXES = ivtvctl cx25840ctl ivtv-detect ivtv-radio
++INSANEEXES =  
  EXES = $(SANEEXES) $(INSANEEXES)
  INSTALL_HEADERS = ../driver/ivtv.h
  
-@@ -10,7 +10,7 @@
- LIB_ZVBI_SRC = /home/src/zvbi/zvbi-0.2.15/src/.libs
- INC_ZVBI_SRC = /home/src/zvbi/zvbi-0.2.15/src
- 
 -CFLAGS = -I../driver -D_GNU_SOURCE -O2 -Wall
 +CFLAGS = -I../driver -D_GNU_SOURCE -O2 -Wall -fsigned-char
  CXXFLAGS = $(CFLAGS)
- LDFLAGS = -lm
  
+ all: $(EXES)
index 45b23286b31dddc09d9ab7899373e1a7fc7e9dd7..a07251872e090f09ba29257b5c0e8daa574df6f0 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ivtv-0.3.8.ebuild,v 1.6 2005/10/07 05:43:43 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ivtv-0.3.8.ebuild,v 1.7 2005/10/07 16:08:10 cardoe Exp $
 
 inherit eutils linux-mod
 
@@ -19,7 +19,7 @@ SRC_URI="http://dl.ivtvdriver.org/${PN}/${P}.tar.gz
 RESTRICT="nomirror"
 SLOT="0"
 LICENSE="GPL-2"
-KEYWORDS="~x86"
+KEYWORDS="~x86 ~ppc"
 
 IUSE=""
 
@@ -50,6 +50,7 @@ src_unpack() {
        sed -e "s:^VERS26=.*:VERS26=${KV_MAJOR}.${KV_MINOR}:g" \
                -i ${S}/driver/Makefile || die "sed failed"
 
+       cd ${S}
        # This powerpc patch patches the source of the driver to disable DMA on ppc,
        # instead PIO is used. Also, it force enables -fsigned-char and does not
        # build some modules that contain x86 asm.
@@ -137,7 +138,7 @@ pkg_postinst() {
        ewarn "ln -sf /lib/modules/ivtv-fw-enc-250-350.bin /lib/modules/ivtv-fw-enc.bin"
        ewarn
        ewarn "PVR-150/500 users need to run the following command to setup the firmware:"
-       ewarn "ln -sf /lib/modules/HcwFalcn.rom /lib/modules/ivtv/ivtv-fw-enc.bin"
+       ewarn "ln -sf /lib/modules/HcwFalcn.rom /lib/modules/ivtv-fw-enc.bin"
        ewarn
        echo
 }