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.inc18
1 files changed, 2 insertions, 16 deletions
diff --git a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
index 38848676f4..dd964d466d 100644
--- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
+++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
@@ -20,20 +20,6 @@ inherit_defer ${XORGBUILDCLASS}
20# depends on virtual/xserver 20# depends on virtual/xserver
21REQUIRED_DISTRO_FEATURES = "x11" 21REQUIRED_DISTRO_FEATURES = "x11"
22 22
23# Function to add the relevant ABI dependency to drivers, which should be called
24# from a PACKAGEFUNC.
25def _add_xorg_abi_depends(d, name):
26 # Map of ABI names exposed in the dependencies to pkg-config variables
27 abis = {
28 "video": "abi_videodrv",
29 "input": "abi_xinput"
30 }
31
32 output = os.popen("pkg-config xorg-server --variable=%s" % abis[name]).read()
33 mlprefix = d.getVar('MLPREFIX') or ''
34 abi = "%sxorg-abi-%s-%s" % (mlprefix, name, output.split(".")[0])
35
36 pn = d.getVar("PN")
37 d.appendVar('RDEPENDS:' + pn, ' ' + abi)
38
39SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}" 23SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}"
24
25require recipes-graphics/xorg-xserver/xserver-abi.inc