Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright OpenEmbedded Contributors |
| 3 | # |
| 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
| 6 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | # Check types of bitbake configuration variables |
| 8 | # |
| 9 | # See oe.types for details. |
| 10 | |
| 11 | python check_types() { |
| 12 | import oe.types |
| 13 | for key in e.data.keys(): |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | if e.data.getVarFlag(key, "type"): |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | oe.data.typed_value(key, e.data) |
| 16 | } |
| 17 | addhandler check_types |
| 18 | check_types[eventmask] = "bb.event.ConfigParsed" |