diff options
author | Ming Liu <ming.liu@toradex.com> | 2020-09-03 09:58:47 +0200 |
---|---|---|
committer | Peter Liu <peter.liu@se.atlascopco.com> | 2020-09-07 09:58:57 +0200 |
commit | bd0a05579ccc71b304cd2c8f10c4400cf66ed12d (patch) | |
tree | 14382cdb3c29019e4fdc5f0d9e5c522d0723f16a /classes | |
parent | 805e2c6f15cebc3dba2431f362b52c508eda8c5f (diff) | |
download | meta-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.bbclass | 1 |
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" | |||
32 | OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" | 32 | OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" |
33 | OSTREE_DEPLOY_DEVICETREE ??= "0" | 33 | OSTREE_DEPLOY_DEVICETREE ??= "0" |
34 | OSTREE_DEVICETREE ??= "${KERNEL_DEVICETREE}" | 34 | OSTREE_DEVICETREE ??= "${KERNEL_DEVICETREE}" |
35 | OSTREE_MULTI_DEVICETREE_SUPPORT ??= "0" | ||
35 | 36 | ||
36 | INITRAMFS_IMAGE ?= "initramfs-ostree-image" | 37 | INITRAMFS_IMAGE ?= "initramfs-ostree-image" |
37 | 38 | ||