From 606f2a87999c5fe5131879ca343c74c3df298892 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 17 Oct 2012 10:56:35 +0100 Subject: cdv-pvr-driver: add xorg-abi-video- dependency xserver changes the driver ABI at will, and refuses to load drivers with the wrong ABI version. So that we know about this error at image build time instead of when xserver fails to start, RDEPEND on the ABI version we expect. This dependency is added programmatically so that bitbake doesn't look for a provider of xorg-abi-video-8 at parse time, which it won't find. Signed-off-by: Ross Burton Signed-off-by: Tom Zanussi --- .../recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meta-cedartrail') diff --git a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb index 7bda3b50..ebb58911 100644 --- a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb +++ b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb @@ -88,6 +88,15 @@ FILES_${PN} += "${datadir}/doc/pvr-bin-cdv-${PVR-BIN-REV_LIC}/license.txt" RDEPENDS_${PN} = "xserver-xorg-module-exa" +# Add the ABI dependency at package generation time, as otherwise bitbake will +# attempt to find a provider for it (and fail) when it does the parse. +# +# This version *must* be kept correct. +python populate_packages_prepend() { + pn = d.getVar("PN", True) + d.appendVar("RDEPENDS_" + pn, " xorg-abi-video-8") +} + TARGET_CC_ARCH += "${CFLAGS}{LDFLAGS}" INSANE_SKIP_${PN} += "ldflags" INSANE_SKIP_${PN}-dbg += "ldflags" -- cgit v1.2.3-54-g00ecf