diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-driver/xorg-driver-common.inc')
-rw-r--r-- | meta/recipes-graphics/xorg-driver/xorg-driver-common.inc | 18 |
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 |
21 | REQUIRED_DISTRO_FEATURES = "x11" | 21 | REQUIRED_DISTRO_FEATURES = "x11" |
22 | 22 | ||
23 | # Function to add the relevant ABI dependency to drivers, which should be called | ||
24 | # from a PACKAGEFUNC. | ||
25 | def _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 | |||
39 | SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}" | 23 | SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}" |
24 | |||
25 | require recipes-graphics/xorg-xserver/xserver-abi.inc | ||