summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-02 19:56:43 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-02 19:56:43 +0000
commit6e62524f3780f20eea282fa3aa5f0a30c3d0b8b6 (patch)
tree76a3a89a0efa01ead8d91bf16c59ae0a1869c728 /meta/classes/base.bbclass
parent5bcae485f5074031ee989e9c8fb81f3e9114c770 (diff)
downloadpoky-6e62524f3780f20eea282fa3aa5f0a30c3d0b8b6.tar.gz
base.bbclass: Add read_subpkgdata_dict function
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5389 311d38ba-8fff-0310-9ca6-ca027cbcb966
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"