diff options
author | Anton Gerasimov <anton.gerasimov@here.com> | 2019-02-21 15:54:39 +0100 |
---|---|---|
committer | Anton Gerasimov <anton.gerasimov@here.com> | 2019-02-25 15:35:01 +0100 |
commit | 690262acdba2511b14798c04b19d9dcc7df2d538 (patch) | |
tree | cdf2890f58fb10431fa9adf6c0bb1319c34816bf /classes/sota.bbclass | |
parent | 3b9b75140ea58f546829cb3cf1b234e5b650de77 (diff) | |
download | meta-updater-feat/universaluenv.tar.gz |
Add universal uEnv recipefeat/universaluenv
Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
Diffstat (limited to 'classes/sota.bbclass')
-rw-r--r-- | classes/sota.bbclass | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass index 92b4c43..236a3bb 100644 --- a/classes/sota.bbclass +++ b/classes/sota.bbclass | |||
@@ -21,7 +21,11 @@ WKS_FILE_sota ?= "sdimage-sota.wks" | |||
21 | 21 | ||
22 | EXTRA_IMAGEDEPENDS_append_sota = " parted-native mtools-native dosfstools-native" | 22 | EXTRA_IMAGEDEPENDS_append_sota = " parted-native mtools-native dosfstools-native" |
23 | 23 | ||
24 | INITRAMFS_FSTYPES ?= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER') == 'u-boot', 'cpio.gz.u-boot', 'cpio.gz')}" | 24 | # Has to be an override, because 'INITRAMFS_FSTYPES ?=' is not strong enough to override the default value |
25 | INITRAMFS_FSTYPES_sota ?= "${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER') == 'u-boot' and d.getVar('KERNEL_IMAGETYPE') != 'fitImage', 'cpio.gz.u-boot', 'cpio.gz')}" | ||
26 | |||
27 | # Deploy config fragment list to OSTree root fs | ||
28 | IMAGE_INSTALL_append = "${@oe.utils.ifelse(d.getVar('KERNEL_IMAGETYPE') == 'fitImage', ' fit-conf', ' ')}" | ||
25 | 29 | ||
26 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo | 30 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo |
27 | export OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | 31 | export OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" |
@@ -38,6 +42,15 @@ GARAGE_TARGET_NAME ?= "${OSTREE_BRANCHNAME}" | |||
38 | GARAGE_TARGET_VERSION ?= "" | 42 | GARAGE_TARGET_VERSION ?= "" |
39 | GARAGE_TARGET_URL ?= "https://example.com/" | 43 | GARAGE_TARGET_URL ?= "https://example.com/" |
40 | 44 | ||
45 | SOTA_BOOTLOADER_EXTRA_PARAMS ??= "" | ||
46 | SOTA_BOOTLOADER_BOOTCOMMAND ??= "bootm" | ||
47 | SOTA_BOOTLOADER_KERNEL_ADDR ??= "0x02700000" | ||
48 | SOTA_BOOTLOADER_RAMDISK_ADDR ??= "" | ||
49 | SOTA_BOOTLOADER_FDT_ADDR ??= "" | ||
50 | SOTA_BOOTLOADER_BOOT_PART ??= "mmc 0:1" | ||
51 | SOTA_BOOTLOADER_MAIN_PART ??= "mmc 0:2" | ||
52 | SOTA_BOOTLOADER_ROOT_DEVICE ??= "/dev/mmcblk0p2" | ||
53 | |||
41 | SOTA_MACHINE ??="none" | 54 | SOTA_MACHINE ??="none" |
42 | SOTA_MACHINE_rpi ?= "raspberrypi" | 55 | SOTA_MACHINE_rpi ?= "raspberrypi" |
43 | SOTA_MACHINE_porter ?= "porter" | 56 | SOTA_MACHINE_porter ?= "porter" |
@@ -49,4 +62,6 @@ SOTA_MACHINE_am335x-evm ?= "am335x-evm-wifi" | |||
49 | SOTA_OVERRIDES_BLACKLIST = "ostree ota" | 62 | SOTA_OVERRIDES_BLACKLIST = "ostree ota" |
50 | SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_BRANCHNAME OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO GARAGE_TARGET_NAME" | 63 | SOTA_REQUIRED_VARIABLES = "OSTREE_REPO OSTREE_BRANCHNAME OSTREE_OSNAME OSTREE_BOOTLOADER OSTREE_BOOT_PARTITION GARAGE_SIGN_REPO GARAGE_TARGET_NAME" |
51 | 64 | ||
65 | do_image_wic[depends] += " ota-u-boot-script:do_deploy " | ||
66 | |||
52 | inherit sota_sanity sota_${SOTA_MACHINE} image_repo_manifest | 67 | inherit sota_sanity sota_${SOTA_MACHINE} image_repo_manifest |