diff options
author | Leon Woestenberg <leon@sidebranch.com> | 2009-11-22 01:17:08 +0100 |
---|---|---|
committer | Leon Woestenberg <leon@sidebranch.com> | 2009-11-22 01:17:44 +0100 |
commit | c652a59cbb2f103a6397fce327b4753d7c5e7b10 (patch) | |
tree | e881d2129f12d8b738cb16a6c4c53a5616cf10df /recipes/nvidia-drivers/nvidia-display_190.42.bb | |
parent | cfacd3ac608b00a8b25f5de21681a300de53878c (diff) |
nvidia-display: Added 190.42 release. Builds but packaging needs clean-up.
Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
Diffstat (limited to 'recipes/nvidia-drivers/nvidia-display_190.42.bb')
-rw-r--r-- | recipes/nvidia-drivers/nvidia-display_190.42.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes/nvidia-drivers/nvidia-display_190.42.bb b/recipes/nvidia-drivers/nvidia-display_190.42.bb new file mode 100644 index 0000000000..0ef15e881b --- /dev/null +++ b/recipes/nvidia-drivers/nvidia-display_190.42.bb @@ -0,0 +1,46 @@ +# nvidia-display .bb build file +# Copyright (C) 2005-2006, Advanced Micro Devices, Inc. All Rights Reserved +# Released under the MIT license (see /COPYING) + +require nvidia-drivers.inc + +DEFAULT_PREFERENCE = "-1" + +PKG_BASENAME="NVIDIA-Linux-${NVIDIA_ARCH}-${PV}-${NVIDIA_PKGRUN}" + +SRC_URI="http://download.nvidia.com/XFree86/Linux-${NVIDIA_ARCH}/${PV}/${PKG_BASENAME}.run \ + file://nvidia-oe-conftest.patch;patch=1" + +S="${WORKDIR}/${PKG_BASENAME}/usr/src/nv" + +EXTRA_OEMAKE=" KERNEL_SOURCES=${STAGING_KERNEL_DIR} KERNEL_MODLIB=${STAGING_KERNEL_DIR} KERNEL_UNAME=${KERNEL_VERSION} PATCHLEVEL=${KERNEL_PATCHLEVEL} MODULE_ROOT=${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers IGNORE_CC_MISMATCH=1" + +FILES_${PN} += " /usr/lib /usr/bin /usr/share" +FILES_${PN}-dev += " /usr/lib/xorg/modules/extensions/libglx.so" + +INSANE_SKIP_${PN} = True + +do_configure() { + rm -f ${S}/makefile + if [ "${KERNEL_PATCHLEVEL}" != "4" ] ; then + ln -sf Makefile.kbuild ${S}/Makefile + else + ln -sf Makefile.nvidia ${S}/Makefile + fi +} + +do_install() { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" CC="${KERNEL_CC}" LD="${KERNEL_LD}" install + + install -d ${D}/usr + for dir in bin include lib share ; do + cp -pPR ${WORKDIR}/${PKG_BASENAME}/usr/$dir ${D}/usr/ + done + + #X11R7.0 style... + install -d ${D}/usr/lib/xorg/ + cp ${WORKDIR}/${PKG_BASENAME}/usr/X11R6/lib/lib* ${D}/usr/lib/ + cp -pPR ${WORKDIR}/${PKG_BASENAME}/usr/X11R6/lib/modules ${D}/usr/lib/xorg/ + ln -s libglx.so.1.0.8756 ${D}/usr/lib/xorg/modules/extensions/libglx.so +} |