diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-05 22:19:28 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-05 22:19:28 +0000 |
commit | 3b534889872e6d0cc6b3ef9e90e2ed2314f59c9a (patch) | |
tree | ac06c002eaef6901ea0e084400bde1c2a0cae6ba /meta/classes/package.bbclass | |
parent | fee0c6a2b3d71cfd2e145803b0cbcf0db7460751 (diff) | |
download | openembedded-core-3b534889872e6d0cc6b3ef9e90e2ed2314f59c9a.tar.gz openembedded-core-3b534889872e6d0cc6b3ef9e90e2ed2314f59c9a.tar.bz2 openembedded-core-3b534889872e6d0cc6b3ef9e90e2ed2314f59c9a.zip |
bitbake.conf/siteinfo.bbclass/package.bbclass: Add in support for 'darwin8'
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4424 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 97eae6e97f..3ca8532376 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -626,25 +626,26 @@ python package_do_shlibs() { #bb.note("Foo2: %s" % lafile) #bb.note("Foo %s %s" % (file, fullpath)) - fd = open(lafile, 'r') - lines = fd.readlines() - fd.close() - for l in lines: - m = re.match("\s*dependency_libs=\s*'(.*)'", l) - if m: - deps = m.group(1).split(" ") - for dep in deps: - #bb.note("Trying %s for %s" % (dep, pkg)) - name = None - if dep.endswith(".la"): - name = os.path.basename(dep).replace(".la", "") - elif dep.startswith("-l"): - name = dep.replace("-l", "lib") - if pkg not in needed: - needed[pkg] = [] - if name: - needed[pkg].append(name) - #bb.note("Adding %s for %s" % (name, pkg)) + if os.path.exists(lafile): + fd = open(lafile, 'r') + lines = fd.readlines() + fd.close() + for l in lines: + m = re.match("\s*dependency_libs=\s*'(.*)'", l) + if m: + deps = m.group(1).split(" ") + for dep in deps: + #bb.note("Trying %s for %s" % (dep, pkg)) + name = None + if dep.endswith(".la"): + name = os.path.basename(dep).replace(".la", "") + elif dep.startswith("-l"): + name = dep.replace("-l", "lib") + if pkg not in needed: + needed[pkg] = [] + if name: + needed[pkg].append(name) + #bb.note("Adding %s for %s" % (name, pkg)) needed = {} private_libs = bb.data.getVar('PRIVATE_LIBS', d, 1) for pkg in packages.split(): @@ -658,7 +659,7 @@ python package_do_shlibs() { for file in files: soname = None path = os.path.join(root, file) - if targetos == "darwin": + if targetos == "darwin" or targetos == "darwin8": darwin_so(root, dirs, file) elif os.access(path, os.X_OK) or lib_re.match(file): linux_so(root, dirs, file) |