diff options
author | Ming Liu <liu.ming50@gmail.com> | 2018-11-11 11:53:01 +0100 |
---|---|---|
committer | Ming Liu <liu.ming50@gmail.com> | 2018-11-24 12:12:25 +0100 |
commit | c72d82867d4dd7e2dddaea24e1e56b2349f1af03 (patch) | |
tree | 0b6bdcdcdf6a60e26aa9173c9df05ff98df829d6 /classes/image_types_ota.bbclass | |
parent | bc678ac4ca43e43b0a0597efe434b44b832080f6 (diff) | |
download | meta-updater-c72d82867d4dd7e2dddaea24e1e56b2349f1af03.tar.gz |
meta: replace bberror with bbfatal
When calling bbfatal, it reports error message and exit 1, it should be
used to replace of 'bberror && exit 1' to avoid being redundant.
Also fixed some incorrect bberror usages and typos.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'classes/image_types_ota.bbclass')
-rw-r--r-- | classes/image_types_ota.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index 03fe8d8..790ac31 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass | |||
@@ -82,8 +82,8 @@ fakeroot do_otasetup () { | |||
82 | elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then | 82 | elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then |
83 | touch ${OTA_SYSROOT}/boot/loader/uEnv.txt | 83 | touch ${OTA_SYSROOT}/boot/loader/uEnv.txt |
84 | else | 84 | else |
85 | bberror "Invalid bootloader: ${OSTREE_BOOTLOADER}" | 85 | bbfatal "Invalid bootloader: ${OSTREE_BOOTLOADER}" |
86 | fi; | 86 | fi |
87 | 87 | ||
88 | ostree_target_hash=$(cat ${OSTREE_REPO}/refs/heads/${OSTREE_BRANCHNAME}) | 88 | ostree_target_hash=$(cat ${OSTREE_REPO}/refs/heads/${OSTREE_BRANCHNAME}) |
89 | 89 | ||