diff options
author | Ross Burton <ross.burton@intel.com> | 2012-10-22 10:37:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-24 12:47:28 +0100 |
commit | a17faa832798f5c76e344d2662ffdb470974bfe3 (patch) | |
tree | d7512a6f0592a9bbc00c64ff3526f6d589b133d6 /meta/recipes-graphics/xorg-driver/xorg-driver-common.inc | |
parent | 966c72e00c8d378d7d189f0e4b626f6782d23a25 (diff) | |
download | openembedded-core-a17faa832798f5c76e344d2662ffdb470974bfe3.tar.gz openembedded-core-a17faa832798f5c76e344d2662ffdb470974bfe3.tar.bz2 openembedded-core-a17faa832798f5c76e344d2662ffdb470974bfe3.zip |
xorg-driver: add xserver driver ABI dependencies
At build time extract the xserver driver ABI versions that we're building
against and add RDEPENDs on them, so the driver isn't used against an xserver
with a different ABI (which won't work).
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-graphics/xorg-driver/xorg-driver-common.inc')
-rw-r--r-- | meta/recipes-graphics/xorg-driver/xorg-driver-common.inc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc index 9a474b76de..f9f25ffe95 100644 --- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc +++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc @@ -5,7 +5,7 @@ SECTION = "x11/drivers" LICENSE = "MIT-X" PE = "2" -INC_PR = "r17" +INC_PR = "r18" DEPENDS = "virtual/xserver xproto randrproto util-macros" @@ -31,3 +31,18 @@ do_configure_prepend () { do_install_append() { find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f -- } + +# Function to add the relevant ABI dependency to drivers, which should be called +# from a populate_packages append/prepend. +def add_abi_depends(d, name): + # Map of ABI names exposed in the dependencies to pkg-config variables + abis = { + "video": "abi_videodrv", + "input": "abi_xinput" + } + + output = os.popen("pkg-config xorg-server --variable=%s" % abis[name]).read() + abi = "xorg-abi-%s-%s" % (name, output.split(".")[0]) + + pn = d.getVar("PN", True) + d.appendVar('RDEPENDS_' + pn, ' ' + abi) |