summaryrefslogtreecommitdiffstats
path: root/classes/sota.bbclass
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2018-11-19 10:48:58 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-02-20 09:36:17 +0100
commit455bb6baac9d48a7c990566404f251584979cd29 (patch)
tree394b76cd140233a0da14f9ae9087032ef86fb518 /classes/sota.bbclass
parent7e769b2c1798424e886a3f2db6ada18e94fec9a1 (diff)
downloadmeta-updater-455bb6baac9d48a7c990566404f251584979cd29.tar.gz
meta: drop redundant export syntax
There are quite a few 'export' syntax, they are either not necessary or being redundant. Actually only the variables being referred in ostree or aktualizr need to be exported, we can move them into sota.bbclass so they can be exported once only for all other classes referring to them. And drop all other unnecessary exports. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'classes/sota.bbclass')
-rw-r--r--classes/sota.bbclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index 246865b..1517ceb 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -26,11 +26,13 @@ EXTRA_IMAGEDEPENDS_append_sota = " parted-native mtools-native dosfstools-native
26OSTREE_INITRAMFS_FSTYPES ??= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER', True) == 'u-boot', 'ext4.gz.u-boot', 'ext4.gz')}" 26OSTREE_INITRAMFS_FSTYPES ??= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER', True) == 'u-boot', 'ext4.gz.u-boot', 'ext4.gz')}"
27 27
28# Please redefine OSTREE_REPO in order to have a persistent OSTree repo 28# Please redefine OSTREE_REPO in order to have a persistent OSTree repo
29OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" 29export OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo"
30OSTREE_BRANCHNAME ?= "${SOTA_HARDWARE_ID}" 30export OSTREE_BRANCHNAME ?= "${SOTA_HARDWARE_ID}"
31OSTREE_OSNAME ?= "poky" 31export OSTREE_OSNAME ?= "poky"
32export OSTREE_BOOTLOADER ??= 'u-boot'
33export OSTREE_BOOT_PARTITION ??= "/boot"
34
32OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" 35OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image"
33OSTREE_BOOTLOADER ??= 'u-boot'
34 36
35GARAGE_SIGN_REPO ?= "${DEPLOY_DIR_IMAGE}/garage_sign_repo" 37GARAGE_SIGN_REPO ?= "${DEPLOY_DIR_IMAGE}/garage_sign_repo"
36GARAGE_SIGN_KEYNAME ?= "garage-key" 38GARAGE_SIGN_KEYNAME ?= "garage-key"