diff options
author | Ming Liu <ming.liu@toradex.com> | 2020-05-11 19:49:31 +0200 |
---|---|---|
committer | Ming Liu <ming.liu@toradex.com> | 2020-05-11 19:53:55 +0200 |
commit | a7189aae28cf3181daebc89c0bc609f4ef8ea5fb (patch) | |
tree | 35f5703a8b721e8d6726ac4e7eb17e9e4806fff5 /recipes-sota/aktualizr/aktualizr-shared-prov.bb | |
parent | 82d7e04924f847bccba3136d1602d5646486a926 (diff) | |
download | meta-updater-a7189aae28cf3181daebc89c0bc609f4ef8ea5fb.tar.gz |
sota_sanity.bbclass: introduce sota_check_boolean_variable
The current sanity check are too strict for some boolean variables,
introduce sota_check_boolean_variable to allow a boolean value to be
set like yes/y/true/t/1 or no/n/false/f/0.
Also change to use oe.types.boolean to check their values.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-shared-prov.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-shared-prov.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-shared-prov.bb b/recipes-sota/aktualizr/aktualizr-shared-prov.bb index 2ee47a1..0f712df 100644 --- a/recipes-sota/aktualizr/aktualizr-shared-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-shared-prov.bb | |||
@@ -10,7 +10,7 @@ inherit allarch | |||
10 | # We need to get the config files from the aktualizr-host-tools package built by | 10 | # We need to get the config files from the aktualizr-host-tools package built by |
11 | # the aktualizr (target) recipe. | 11 | # the aktualizr (target) recipe. |
12 | DEPENDS = "aktualizr" | 12 | DEPENDS = "aktualizr" |
13 | RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | 13 | RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if oe.types.boolean(d.getVar('SOTA_DEPLOY_CREDENTIALS')) else ''}" |
14 | 14 | ||
15 | # If the config file from aktualizr used here is changed, you will need to bump | 15 | # If the config file from aktualizr used here is changed, you will need to bump |
16 | # the version here because of SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS! | 16 | # the version here because of SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS! |