1 # nvidia-display .bb build file
2 # Copyright (C) 2005-2006, Advanced Micro Devices, Inc. All Rights Reserved
3 # Released under the MIT license (see /COPYING)
5 HOMEPAGE="http://www.nvidia.com/object/unix.html"
6 DESCRIPTION="NVidia Graphics Driver Binary"
14 arch = bb.data.getVar('TARGET_ARCH', d, 1)
16 if re.match("^i.86$", arch):
22 arch = bb.data.getVar('TARGET_ARCH', d, 1)
23 if re.match("^i.86$", arch):
27 def get_kernelpatchlevel(p):
29 r = re.compile("[0-9]+\.([0-9]+).*")
35 NVIDIA_ARCH := "${@nvidia_arch(d)}"
36 NVIDIA_PKGRUN := "${@nvidia_pkgrun(d)}"
38 COMPATIBLE_HOST = '.*86.*-linux'
40 KERNEL_PATCHLEVEL = "${@get_kernelpatchlevel('${KERNEL_VERSION}')}"
41 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"
43 PKG_BASENAME="NVIDIA-Linux-${NVIDIA_ARCH}-${PV}-${NVIDIA_PKGRUN}"
45 FILES_${PN}-doc += " /usr/share/doc/*"
48 sh ${PKG_BASENAME}.run -x
52 bb.build.exec_func('base_do_unpack', d)
53 bb.build.exec_func('nvidia_do_unpack', d)