diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-05-23 13:20:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-25 13:51:45 +0100 |
commit | 1ed4c5d39e14f365da78c8881ca5ee34dcd82db2 (patch) | |
tree | 100e588036400cd89dc74f8f0aa72a8838800f4a /scripts | |
parent | 2b4e1506f054fded57dd361c347bdb25ddd9e245 (diff) | |
download | ast2050-yocto-poky-1ed4c5d39e14f365da78c8881ca5ee34dcd82db2.zip ast2050-yocto-poky-1ed4c5d39e14f365da78c8881ca5ee34dcd82db2.tar.gz |
list-packageconfig-flags: filter out doc and defaultval varflags
These are generic flags and shouldn't be listed in the output of this
script.
(From OE-Core rev: 0f8b16c5ea78f1d48b45cef7a317f8a307c48ebe)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/contrib/list-packageconfig-flags.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/contrib/list-packageconfig-flags.py b/scripts/contrib/list-packageconfig-flags.py index 615f91f..3db4298 100755 --- a/scripts/contrib/list-packageconfig-flags.py +++ b/scripts/contrib/list-packageconfig-flags.py @@ -83,7 +83,10 @@ def get_recipesdata(bbhandler, preferred): data_dict = {} for fn in get_fnlist(bbhandler, pkg_pn, preferred): data = bb.cache.Cache.loadDataFull(fn, bbhandler.cooker.collection.get_file_appends(fn), bbhandler.config_data) - if data.getVarFlags("PACKAGECONFIG"): + flags = data.getVarFlags("PACKAGECONFIG") + flags.pop('doc', None) + flags.pop('defaultval', None) + if flags: data_dict[fn] = data return data_dict @@ -94,6 +97,8 @@ def collect_pkgs(data_dict): pkg_dict = {} for fn in data_dict: pkgconfigflags = data_dict[fn].getVarFlags("PACKAGECONFIG") + pkgconfigflags.pop('doc', None) + pkgconfigflags.pop('defaultval', None) pkgname = data_dict[fn].getVar("P", True) pkg_dict[pkgname] = sorted(pkgconfigflags.keys()) @@ -105,9 +110,6 @@ def collect_flags(pkg_dict): flag_dict = {} for pkgname, flaglist in pkg_dict.iteritems(): for flag in flaglist: - if flag == "defaultval": - continue - if flag in flag_dict: flag_dict[flag].append(pkgname) else: @@ -153,7 +155,7 @@ def display_all(data_dict): print('PACKAGECONFIG %s' % packageconfig) for flag,flag_val in data_dict[fn].getVarFlags("PACKAGECONFIG").iteritems(): - if flag == "defaultval": + if flag in ["defaultval", "doc"]: continue print('PACKAGECONFIG[%s] %s' % (flag, flag_val)) print '' |