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 11:48:13 +0100 |
commit | 0f8b16c5ea78f1d48b45cef7a317f8a307c48ebe (patch) | |
tree | 5795c311706157add70afd059abab13c5de384dc /scripts | |
parent | 0b5e94e168819134dcda0433c8ae893df4ab13ce (diff) | |
download | openembedded-core-0f8b16c5ea78f1d48b45cef7a317f8a307c48ebe.tar.gz openembedded-core-0f8b16c5ea78f1d48b45cef7a317f8a307c48ebe.tar.bz2 openembedded-core-0f8b16c5ea78f1d48b45cef7a317f8a307c48ebe.zip |
list-packageconfig-flags: filter out doc and defaultval varflags
These are generic flags and shouldn't be listed in the output of this
script.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
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 615f91fdc7..3db429834b 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 '' |