summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-driver/xorg-driver-common.inc')
-rw-r--r--meta/recipes-graphics/xorg-driver/xorg-driver-common.inc17
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"
5LICENSE = "MIT-X" 5LICENSE = "MIT-X"
6 6
7PE = "2" 7PE = "2"
8INC_PR = "r17" 8INC_PR = "r18"
9 9
10DEPENDS = "virtual/xserver xproto randrproto util-macros" 10DEPENDS = "virtual/xserver xproto randrproto util-macros"
11 11
@@ -31,3 +31,18 @@ do_configure_prepend () {
31do_install_append() { 31do_install_append() {
32 find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f -- 32 find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f --
33} 33}
34
35# Function to add the relevant ABI dependency to drivers, which should be called
36# from a populate_packages append/prepend.
37def add_abi_depends(d, name):
38 # Map of ABI names exposed in the dependencies to pkg-config variables
39 abis = {
40 "video": "abi_videodrv",
41 "input": "abi_xinput"
42 }
43
44 output = os.popen("pkg-config xorg-server --variable=%s" % abis[name]).read()
45 abi = "xorg-abi-%s-%s" % (name, output.split(".")[0])
46
47 pn = d.getVar("PN", True)
48 d.appendVar('RDEPENDS_' + pn, ' ' + abi)