diff options
Diffstat (limited to 'meta/lib/oe/utils.py')
| -rw-r--r-- | meta/lib/oe/utils.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index b269f32277..acd39693b5 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
| @@ -107,3 +107,19 @@ def features_backfill(var,d): | |||
| 107 | 107 | ||
| 108 | if addfeatures: | 108 | if addfeatures: |
| 109 | d.appendVar(var, " " + " ".join(addfeatures)) | 109 | d.appendVar(var, " " + " ".join(addfeatures)) |
| 110 | |||
| 111 | |||
| 112 | def packages_filter_out_system(d): | ||
| 113 | """ | ||
| 114 | Return a list of packages from PACKAGES with the "system" packages such as | ||
| 115 | PN-dbg PN-doc PN-locale-eb-gb removed. | ||
| 116 | """ | ||
| 117 | pn = d.getVar('PN', True) | ||
| 118 | blacklist = map(lambda suffix: pn + suffix, ('', '-dbg', '-dev', '-doc', '-locale', '-staticdev')) | ||
| 119 | localepkg = pn + "-locale-" | ||
| 120 | pkgs = [] | ||
| 121 | |||
| 122 | for pkg in d.getVar('PACKAGES', True).split(): | ||
| 123 | if pkg not in blacklist and localepkg not in pkg: | ||
| 124 | pkgs.append(pkg) | ||
| 125 | return pkgs | ||
