summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 3b10c985e5..975112b6b1 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -936,6 +936,19 @@ python read_subpackage_metadata () {
936 bb.data.setVar(key, sdata[key], d) 936 bb.data.setVar(key, sdata[key], d)
937} 937}
938 938
939
940#
941# Collapse FOO_pkg variables into FOO
942#
943def read_subpkgdata_dict(pkg, d):
944 import bb
945 ret = {}
946 subd = read_pkgdatafile(get_subpkgedata_fn(pkg, d))
947 for var in subd:
948 newvar = var.replace("_" + pkg, "")
949 ret[newvar] = subd[var]
950 return ret
951
939# Make sure MACHINE isn't exported 952# Make sure MACHINE isn't exported
940# (breaks binutils at least) 953# (breaks binutils at least)
941MACHINE[unexport] = "1" 954MACHINE[unexport] = "1"