summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2020-09-03 09:58:47 +0200
committerPeter Liu <peter.liu@se.atlascopco.com>2020-09-07 09:58:57 +0200
commitbd0a05579ccc71b304cd2c8f10c4400cf66ed12d (patch)
tree14382cdb3c29019e4fdc5f0d9e5c522d0723f16a /classes
parent805e2c6f15cebc3dba2431f362b52c508eda8c5f (diff)
downloadmeta-updater-bd0a05579ccc71b304cd2c8f10c4400cf66ed12d.tar.gz
sota: introduce OSTREE_MULTI_DEVICETREE_SUPPORT
ostree supports multiple devicetrees provided that there is no /lib/modules/$kversion/devicetree installed on rootfs, in which case, a uboot variable 'fdtdir' would be written to /boot/loader/uEnv.txt instead of fdt_file. Introduce OSTREE_MULTI_DEVICETREE_SUPPORT to control that, when it's set to '0', there is no functional changes with current implementation, while it's set to '1', then /lib/modules/$kversion/devicetree would not be installed and the end users need set their own fdtfile/fdt_file in boot script to locate the devicetree in 'fdtdir'. Signed-off-by: Ming Liu <ming.liu@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/sota.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index fde00cd..e6a0f8b 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -32,6 +32,7 @@ OSTREE_BOOT_PARTITION ??= "/boot"
32OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" 32OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
33OSTREE_DEPLOY_DEVICETREE ??= "0" 33OSTREE_DEPLOY_DEVICETREE ??= "0"
34OSTREE_DEVICETREE ??= "${KERNEL_DEVICETREE}" 34OSTREE_DEVICETREE ??= "${KERNEL_DEVICETREE}"
35OSTREE_MULTI_DEVICETREE_SUPPORT ??= "0"
35 36
36INITRAMFS_IMAGE ?= "initramfs-ostree-image" 37INITRAMFS_IMAGE ?= "initramfs-ostree-image"
37 38