diff options
Diffstat (limited to 'meta/classes/typecheck.bbclass')
-rw-r--r-- | meta/classes/typecheck.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/typecheck.bbclass b/meta/classes/typecheck.bbclass new file mode 100644 index 0000000000..72da932232 --- /dev/null +++ b/meta/classes/typecheck.bbclass | |||
@@ -0,0 +1,12 @@ | |||
1 | # Check types of bitbake configuration variables | ||
2 | # | ||
3 | # See oe.types for details. | ||
4 | |||
5 | python check_types() { | ||
6 | import oe.types | ||
7 | for key in e.data.keys(): | ||
8 | if e.data.getVarFlag(key, "type"): | ||
9 | oe.data.typed_value(key, e.data) | ||
10 | } | ||
11 | addhandler check_types | ||
12 | check_types[eventmask] = "bb.event.ConfigParsed" | ||