summaryrefslogtreecommitdiffstats
path: root/classes/sota.bbclass
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2020-09-03 09:58:47 +0200
committerMing Liu <ming.liu@toradex.com>2020-09-03 12:34:06 +0200
commitd48a90f293f8d44a7538f6b412c7b0ad6361f867 (patch)
treedc33916caf283ebf54b45fd0ef8aa781b2910f9c /classes/sota.bbclass
parent9319d351d1c475386ca7b939459f6bf9f7aea9d6 (diff)
downloadmeta-updater-d48a90f293f8d44a7538f6b412c7b0ad6361f867.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/sota.bbclass')
-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