diff options
author | Ross Burton <ross.burton@intel.com> | 2012-10-22 10:37:26 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-23 12:28:32 +0100 |
commit | 2df8db417d9c2813145ffb27d5f5ad19fb6a505d (patch) | |
tree | 17e5d0355062e9e9e6975200e52069648615267c /meta/classes/insane.bbclass | |
parent | bc41dfb9cd2d3b90d97fa051c90d2f53bacde059 (diff) | |
download | poky-2df8db417d9c2813145ffb27d5f5ad19fb6a505d.tar.gz |
insane: add a check for Xorg driver ABI dependencies
Now that xserver provides driver ABI names, all drivers should depend on the ABI
version that they have been built against.
All drivers that include xorg-driver-input.inc or xorg-driver-video.inc will get
these automatically, so this should only impact binary drivers.
(From OE-Core rev: 800b256390b22c3d3d8d6a69f6fb668376a5030b)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 71a9a588c3..29b122e31d 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -109,7 +109,7 @@ def package_qa_get_machine_dict(): | |||
109 | 109 | ||
110 | 110 | ||
111 | # Currently not being used by default "desktop" | 111 | # Currently not being used by default "desktop" |
112 | WARN_QA ?= "ldflags useless-rpaths rpaths unsafe-references-in-binaries unsafe-references-in-scripts staticdev libdir" | 112 | WARN_QA ?= "ldflags useless-rpaths rpaths unsafe-references-in-binaries unsafe-references-in-scripts staticdev libdir xorg-driver-abi" |
113 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms dep-cmp" | 113 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms dep-cmp" |
114 | 114 | ||
115 | ALL_QA = "${WARN_QA} ${ERROR_QA}" | 115 | ALL_QA = "${WARN_QA} ${ERROR_QA}" |
@@ -496,6 +496,24 @@ def package_qa_check_buildpaths(path, name, d, elf, messages): | |||
496 | if tmpdir in file_content: | 496 | if tmpdir in file_content: |
497 | messages.append("File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) | 497 | messages.append("File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) |
498 | 498 | ||
499 | |||
500 | QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi" | ||
501 | def package_qa_check_xorg_driver_abi(path, name, d, elf, messages): | ||
502 | """ | ||
503 | Check that all packages containing Xorg drivers have ABI dependencies | ||
504 | """ | ||
505 | |||
506 | # Skip dev, dbg or nativesdk packages | ||
507 | if name.endswith("-dev") or name.endswith("-dbg") or name.startswith("nativesdk-"): | ||
508 | return | ||
509 | |||
510 | driverdir = d.expand("${libdir}/xorg/modules/drivers/") | ||
511 | if driverdir in path and path.endswith(".so"): | ||
512 | for rdep in bb.utils.explode_deps(d.getVar('RDEPENDS_' + name, True) or ""): | ||
513 | if rdep.startswith("xorg-abi-"): | ||
514 | return | ||
515 | messages.append("Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path))) | ||
516 | |||
499 | def package_qa_check_license(workdir, d): | 517 | def package_qa_check_license(workdir, d): |
500 | """ | 518 | """ |
501 | Check for changes in the license files | 519 | Check for changes in the license files |