summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-10-12 15:25:43 +0200
committerStefan Agner <stefan.agner@toradex.com>2018-10-12 15:51:47 +0200
commit227bd6d5b806bb15e4dc3f286f07f9cb563d228c (patch)
tree9c13d5598d936dc71706c0d1c4d7dfaaa13b45fb
parent751e8b6e46acc957b6ec47c30868835be4c89d52 (diff)
downloadmeta-updater-227bd6d5b806bb15e4dc3f286f07f9cb563d228c.tar.gz
image_types_ota: remove explicit IMAGE_FSTYPES check
OpenEmbedded makes sure that IMAGE_CMD_type gets only called if the type is in IMAGE_FSTYPE. There is no need to explicitly check for it. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--classes/image_types_ota.bbclass11
1 files changed, 2 insertions, 9 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 4380494..8b363cc 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -159,18 +159,11 @@ create_ota () {
159} 159}
160 160
161IMAGE_CMD_ota-ext4 () { 161IMAGE_CMD_ota-ext4 () {
162 162 create_ota "ext4"
163 if ${@bb.utils.contains('IMAGE_FSTYPES', 'ota-ext4', 'true', 'false', d)}; then
164 # create ext4
165 create_ota "ext4"
166 fi
167} 163}
168 164
169IMAGE_CMD_ota-tar () { 165IMAGE_CMD_ota-tar () {
170 if ${@bb.utils.contains('IMAGE_FSTYPES', 'ota-tar', 'true', 'false', d)}; then 166 create_ota "tar"
171 # create tarball
172 create_ota "tar"
173 fi
174} 167}
175 168
176do_otasetup[doc] = "Sets up the base ota rootfs used for subsequent image generation" 169do_otasetup[doc] = "Sets up the base ota rootfs used for subsequent image generation"