From 175d7eb8775735bbf203869234d74f387034e7e9 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 23 May 2011 12:06:05 +0200 Subject: [PATCH 1/5] projects/{Intsel,ION}/linux: add E100 network driver Signed-off-by: Stephan Raue --- projects/ION/linux/linux.i386.conf | 2 +- projects/ION/linux/linux.x86_64.conf | 2 +- projects/Intel/linux/linux.i386.conf | 40 +++++++++++++++++++++++++- projects/Intel/linux/linux.x86_64.conf | 40 +++++++++++++++++++++++++- 4 files changed, 80 insertions(+), 4 deletions(-) diff --git a/projects/ION/linux/linux.i386.conf b/projects/ION/linux/linux.i386.conf index 6ab6c6a652..7443c83450 100644 --- a/projects/ION/linux/linux.i386.conf +++ b/projects/ION/linux/linux.i386.conf @@ -960,7 +960,7 @@ CONFIG_NET_PCI=y # CONFIG_KSZ884X_PCI is not set # CONFIG_B44 is not set CONFIG_FORCEDETH=m -# CONFIG_E100 is not set +CONFIG_E100=m # CONFIG_FEALNX is not set # CONFIG_NATSEMI is not set # CONFIG_NE2K_PCI is not set diff --git a/projects/ION/linux/linux.x86_64.conf b/projects/ION/linux/linux.x86_64.conf index cd4cf0bc09..207f89f44b 100644 --- a/projects/ION/linux/linux.x86_64.conf +++ b/projects/ION/linux/linux.x86_64.conf @@ -909,7 +909,7 @@ CONFIG_NET_PCI=y # CONFIG_KSZ884X_PCI is not set # CONFIG_B44 is not set CONFIG_FORCEDETH=m -# CONFIG_E100 is not set +CONFIG_E100=m # CONFIG_FEALNX is not set # CONFIG_NATSEMI is not set # CONFIG_NE2K_PCI is not set diff --git a/projects/Intel/linux/linux.i386.conf b/projects/Intel/linux/linux.i386.conf index dc0a491d48..1d33d6c7c0 100644 --- a/projects/Intel/linux/linux.i386.conf +++ b/projects/Intel/linux/linux.i386.conf @@ -939,7 +939,45 @@ CONFIG_NETDEVICES=y # CONFIG_ARCNET is not set CONFIG_MII=y # CONFIG_PHYLIB is not set -# CONFIG_NET_ETHERNET is not set +CONFIG_NET_ETHERNET=y +# CONFIG_HAPPYMEAL is not set +# CONFIG_SUNGEM is not set +# CONFIG_CASSINI is not set +# CONFIG_NET_VENDOR_3COM is not set +# CONFIG_ETHOC is not set +# CONFIG_DNET is not set +# CONFIG_NET_TULIP is not set +# CONFIG_HP100 is not set +# CONFIG_IBM_NEW_EMAC_ZMII is not set +# CONFIG_IBM_NEW_EMAC_RGMII is not set +# CONFIG_IBM_NEW_EMAC_TAH is not set +# CONFIG_IBM_NEW_EMAC_EMAC4 is not set +# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set +# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set +# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set +CONFIG_NET_PCI=y +# CONFIG_PCNET32 is not set +# CONFIG_AMD8111_ETH is not set +# CONFIG_ADAPTEC_STARFIRE is not set +# CONFIG_KSZ884X_PCI is not set +# CONFIG_B44 is not set +# CONFIG_FORCEDETH is not set +CONFIG_E100=m +# CONFIG_FEALNX is not set +# CONFIG_NATSEMI is not set +# CONFIG_NE2K_PCI is not set +# CONFIG_8139CP is not set +# CONFIG_8139TOO is not set +# CONFIG_R6040 is not set +# CONFIG_SIS900 is not set +# CONFIG_EPIC100 is not set +# CONFIG_SMSC9420 is not set +# CONFIG_SUNDANCE is not set +# CONFIG_TLAN is not set +# CONFIG_KS8851_MLL is not set +# CONFIG_VIA_RHINE is not set +# CONFIG_SC92031 is not set +# CONFIG_ATL2 is not set CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set diff --git a/projects/Intel/linux/linux.x86_64.conf b/projects/Intel/linux/linux.x86_64.conf index b708be0750..81a68a906b 100644 --- a/projects/Intel/linux/linux.x86_64.conf +++ b/projects/Intel/linux/linux.x86_64.conf @@ -889,7 +889,45 @@ CONFIG_NETDEVICES=y # CONFIG_ARCNET is not set CONFIG_MII=y # CONFIG_PHYLIB is not set -# CONFIG_NET_ETHERNET is not set +CONFIG_NET_ETHERNET=y +# CONFIG_HAPPYMEAL is not set +# CONFIG_SUNGEM is not set +# CONFIG_CASSINI is not set +# CONFIG_NET_VENDOR_3COM is not set +# CONFIG_ETHOC is not set +# CONFIG_DNET is not set +# CONFIG_NET_TULIP is not set +# CONFIG_HP100 is not set +# CONFIG_IBM_NEW_EMAC_ZMII is not set +# CONFIG_IBM_NEW_EMAC_RGMII is not set +# CONFIG_IBM_NEW_EMAC_TAH is not set +# CONFIG_IBM_NEW_EMAC_EMAC4 is not set +# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set +# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set +# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set +CONFIG_NET_PCI=y +# CONFIG_PCNET32 is not set +# CONFIG_AMD8111_ETH is not set +# CONFIG_ADAPTEC_STARFIRE is not set +# CONFIG_KSZ884X_PCI is not set +# CONFIG_B44 is not set +# CONFIG_FORCEDETH is not set +CONFIG_E100=m +# CONFIG_FEALNX is not set +# CONFIG_NATSEMI is not set +# CONFIG_NE2K_PCI is not set +# CONFIG_8139CP is not set +# CONFIG_8139TOO is not set +# CONFIG_R6040 is not set +# CONFIG_SIS900 is not set +# CONFIG_EPIC100 is not set +# CONFIG_SMSC9420 is not set +# CONFIG_SUNDANCE is not set +# CONFIG_TLAN is not set +# CONFIG_KS8851_MLL is not set +# CONFIG_VIA_RHINE is not set +# CONFIG_SC92031 is not set +# CONFIG_ATL2 is not set CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set From 47a0c7c3abb27a4cbaaf67f31dbb619bcdf30d47 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 23 May 2011 12:07:22 +0200 Subject: [PATCH 2/5] xf86-video-fglrx: install /etc/ati/control too Signed-off-by: Stephan Raue --- packages/x11/driver/xf86-video-fglrx/install | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/x11/driver/xf86-video-fglrx/install b/packages/x11/driver/xf86-video-fglrx/install index 24039c8dae..6380043212 100755 --- a/packages/x11/driver/xf86-video-fglrx/install +++ b/packages/x11/driver/xf86-video-fglrx/install @@ -64,6 +64,7 @@ mkdir -p $INSTALL/etc/X11 mkdir -p $INSTALL/etc/ati cp $PKG_BUILD/common/etc/ati/amdpcsdb.default $INSTALL/etc/ati + cp $PKG_BUILD/common/etc/ati/control $INSTALL/etc/ati # DRI driver mkdir -p $INSTALL/usr/lib/dri From 87a67b896f6d8400df71701215b6c29c9bb99dc6 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 23 May 2011 12:16:51 +0200 Subject: [PATCH 3/5] projects/ION/linux: fix merge conflict Signed-off-by: Stephan Raue --- projects/ION/linux/linux.x86_64.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/ION/linux/linux.x86_64.conf b/projects/ION/linux/linux.x86_64.conf index 1c478b8dff..9e30284d65 100644 --- a/projects/ION/linux/linux.x86_64.conf +++ b/projects/ION/linux/linux.x86_64.conf @@ -913,7 +913,6 @@ CONFIG_NET_PCI=y # CONFIG_KSZ884X_PCI is not set # CONFIG_B44 is not set CONFIG_FORCEDETH=y -CONFIG_FORCEDETH=m CONFIG_E100=y # CONFIG_FEALNX is not set # CONFIG_NATSEMI is not set From 5fbd7d549a4c13257451777ed40e71045d3d6786 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 23 May 2011 14:02:21 +0200 Subject: [PATCH 4/5] libva: install libva drivers related to installed graphic drivers Signed-off-by: Stephan Raue --- packages/multimedia/libva/build | 12 ++++++++++-- packages/multimedia/libva/install | 10 ++++++++-- packages/multimedia/libva/meta | 9 ++++++++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/packages/multimedia/libva/build b/packages/multimedia/libva/build index 77aa071429..804a1f6cb0 100755 --- a/packages/multimedia/libva/build +++ b/packages/multimedia/libva/build @@ -22,6 +22,15 @@ . config/options $1 +LIBVA_CONFIG="--disable-dummy-driver --disable-i965-driver" + +get_graphicdrivers +for drv in $GRAPHIC_DRIVERS; do + if [ "$drv" = i965 ]; then + LIBVA_CONFIG=`echo $LIBVA_CONFIG | sed -e 's/disable-i965-driver/enable-i965-driver/'` + fi +done + cd $PKG_BUILD ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \ @@ -30,8 +39,7 @@ cd $PKG_BUILD --disable-static \ --disable-silent-rules \ --enable-glx \ - --disable-dummy-driver \ - --enable-i965-driver \ + $LIBVA_CONFIG \ --with-drivers-path="/usr/lib/va" \ make diff --git a/packages/multimedia/libva/install b/packages/multimedia/libva/install index a00fb886cd..13e931b002 100755 --- a/packages/multimedia/libva/install +++ b/packages/multimedia/libva/install @@ -22,12 +22,18 @@ . config/options $1 +get_graphicdrivers + mkdir -p $INSTALL/usr/lib cp -P $PKG_BUILD/va/.libs/libva*.so* $INSTALL/usr/lib rm -rf $INSTALL/usr/lib/libva-*.so*T -mkdir -p $INSTALL/usr/lib/va - cp -P $PKG_BUILD/i965_drv_video/.libs/*.so $INSTALL/usr/lib/va +for drv in $GRAPHIC_DRIVERS; do + if [ "$drv" = i965 ]; then + mkdir -p $INSTALL/usr/lib/va + cp -P $PKG_BUILD/i965_drv_video/.libs/*.so $INSTALL/usr/lib/va + fi +done if [ "$DEVTOOLS" = yes ]; then mkdir -p $INSTALL/usr/bin diff --git a/packages/multimedia/libva/meta b/packages/multimedia/libva/meta index 79f10bdf72..aa3868302e 100644 --- a/packages/multimedia/libva/meta +++ b/packages/multimedia/libva/meta @@ -21,7 +21,7 @@ PKG_NAME="libva" PKG_VERSION="1.0.12" PKG_REV="1" -PKG_ARCH="any" +PKG_ARCH="i386 x86_64" PKG_LICENSE="GPL" PKG_SITE="http://freedesktop.org/wiki/Software/vaapi" PKG_URL="http://cgit.freedesktop.org/libva/snapshot/$PKG_NAME-$PKG_VERSION.tar.gz" @@ -35,3 +35,10 @@ PKG_LONGDESC="The main motivation for VAAPI (Video Acceleration API) is to enabl PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +get_graphicdrivers +for drv in $GRAPHIC_DRIVERS; do + if [ "$drv" = fglrx ]; then + PKG_DEPENDS="$PKG_DEPENDS xvba-video" + fi +done From 02c2eff4bc12a350c8b7b13cdf739a2476bb87cd Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 23 May 2011 14:02:58 +0200 Subject: [PATCH 5/5] xf86-video-fglrx: install /etc/ati/signature too Signed-off-by: Stephan Raue --- packages/x11/driver/xf86-video-fglrx/install | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/x11/driver/xf86-video-fglrx/install b/packages/x11/driver/xf86-video-fglrx/install index 6380043212..8613ba7641 100755 --- a/packages/x11/driver/xf86-video-fglrx/install +++ b/packages/x11/driver/xf86-video-fglrx/install @@ -65,6 +65,7 @@ mkdir -p $INSTALL/etc/X11 mkdir -p $INSTALL/etc/ati cp $PKG_BUILD/common/etc/ati/amdpcsdb.default $INSTALL/etc/ati cp $PKG_BUILD/common/etc/ati/control $INSTALL/etc/ati + cp $PKG_BUILD/common/etc/ati/signature $INSTALL/etc/ati # DRI driver mkdir -p $INSTALL/usr/lib/dri