]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
list-packageconfig-flags: print PN instead of P paule/ddimage-fixes2
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 3 Dec 2018 21:57:35 +0000 (10:57 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 2 Jul 2019 04:11:06 +0000 (16:11 +1200)
P (which is ${PN}-${PV}) isn't terribly useful in this context - we
don't really care what the version is, but we do want to know what the
recipe is so we can find it or set PACKAGECONFIG_pn-<PN> in our
configuration, so display ${PN} instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/contrib/list-packageconfig-flags.py

index b1d6c852d86556373c909b825056cd88a6da9556..d6de4dc84d290b2008af92c965a643fb50d5adf4 100755 (executable)
@@ -65,7 +65,7 @@ def collect_pkgs(data_dict):
     for fn in data_dict:
         pkgconfigflags = data_dict[fn].getVarFlags("PACKAGECONFIG")
         pkgconfigflags.pop('doc', None)
-        pkgname = data_dict[fn].getVar("P")
+        pkgname = data_dict[fn].getVar("PN")
         pkg_dict[pkgname] = sorted(pkgconfigflags.keys())
 
     return pkg_dict