diff options
author | Tom Rini <trini@embeddedalley.com> | 2009-01-16 21:53:13 -0500 |
---|---|---|
committer | Tom Rini <trini@embeddedalley.com> | 2009-01-16 21:53:13 -0500 |
commit | b987a6e62b85d6f50b5a802e12c170ca269a1f2e (patch) | |
tree | b9af8fcc43bda1c049a699bd63042af88388e79b /classes/insane.bbclass | |
parent | 3532e24edd8090b53f3bc7eea888349e5845f291 (diff) | |
parent | 00f5fabc4b27f0c458b02b12e2fd340b6d5087a4 (diff) |
Merge branch 'rpurdie/canadian-sofar' into org.openembedded.dev
Diffstat (limited to 'classes/insane.bbclass')
-rw-r--r-- | classes/insane.bbclass | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/classes/insane.bbclass b/classes/insane.bbclass index 6bcaa22e04..3a2cadcaff 100644 --- a/classes/insane.bbclass +++ b/classes/insane.bbclass @@ -289,8 +289,9 @@ def package_qa_check_arch(path,name,d, elf): target_arch = bb.data.getVar('TARGET_ARCH', d, True) # FIXME: Cross package confuse this check, so just skip them - if bb.data.inherits_class('cross', d) or bb.data.inherits_class('sdk', d): - return True + for s in ['cross', 'sdk', 'canadian-cross', 'canadian-sdk']: + if bb.data.inherits_class(s, d): + return True # avoid following links to /usr/bin (e.g. on udev builds) # we will check the files pointed to anyway... @@ -381,10 +382,12 @@ def package_qa_check_staged(path,d): workdir = os.path.join(tmpdir, "work") installed = "installed=yes" - if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d): - pkgconfigcheck = workdir - else: - pkgconfigcheck = tmpdir + iscrossnative = False + pkgconfigcheck = tmpdir + for s in ['cross', 'native', 'canadian-cross', 'canadian-native']: + if bb.data.inherits_class(s, d): + pkgconfigcheck = workdir + iscrossnative = True # find all .la and .pc files # read the content @@ -395,7 +398,7 @@ def package_qa_check_staged(path,d): if file[-2:] == "la": file_content = open(path).read() # Don't check installed status for native/cross packages - if not bb.data.inherits_class("native", d) and not bb.data.inherits_class("cross", d): + if not iscrossnative: if installed in file_content: error_msg = "%s failed sanity test (installed) in path %s" % (file,root) sane = package_qa_handle_error(5, error_msg, "staging", path, d) |