summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-10-06 12:49:05 +0000
committerMarcin Juszkiewicz <marcin@buglabs.net>2009-03-11 12:08:41 +0100
commit99e4fde8fc6d720a591c90a0925ca8e38bad059b (patch)
treeac64ff434442f85ed977c3ae71f33f94dbf6150b
parentabf40bb82c514e4b1ef39f28c32aa006484504f7 (diff)
downloadpoky-99e4fde8fc6d720a591c90a0925ca8e38bad059b.tar.gz
poky-99e4fde8fc6d720a591c90a0925ca8e38bad059b.tar.bz2
poky-99e4fde8fc6d720a591c90a0925ca8e38bad059b.zip
package bbclass: add an 'allow_links' param to get symlinks packaged, usefull for splitting out libraries
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 55d9684683..3ab31cc2c6 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -21,7 +21,7 @@ def legitimize_package_name(s):
# Remaining package name validity fixes
return s.lower().replace('_', '-').replace('@', '+').replace(',', '+').replace('/', '-')
-def do_split_packages(d, root, file_regex, output_pattern, description, postinst=None, recursive=False, hook=None, extra_depends=None, aux_files_pattern=None, postrm=None, allow_dirs=False, prepend=False, match_path=False, aux_files_pattern_verbatim=None):
+def do_split_packages(d, root, file_regex, output_pattern, description, postinst=None, recursive=False, hook=None, extra_depends=None, aux_files_pattern=None, postrm=None, allow_dirs=False, prepend=False, match_path=False, aux_files_pattern_verbatim=None, allow_links=False):
"""
Used in .bb files to split up dynamically generated subpackages of a
given package, usually plugins or modules.
@@ -70,7 +70,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
continue
f = os.path.join(dvar + root, o)
mode = os.lstat(f).st_mode
- if not (stat.S_ISREG(mode) or (allow_dirs and stat.S_ISDIR(mode))):
+ if not (stat.S_ISREG(mode) or (allow_links and stat.S_ISLNK(mode)) or (allow_dirs and stat.S_ISDIR(mode))):
continue
on = legitimize_package_name(m.group(1))
pkg = output_pattern % on