diff options
author | Ming Liu <ming.liu@toradex.com> | 2020-09-03 09:58:47 +0200 |
---|---|---|
committer | Ming Liu <ming.liu@toradex.com> | 2020-09-03 12:34:06 +0200 |
commit | d48a90f293f8d44a7538f6b412c7b0ad6361f867 (patch) | |
tree | dc33916caf283ebf54b45fd0ef8aa781b2910f9c /classes | |
parent | 9319d351d1c475386ca7b939459f6bf9f7aea9d6 (diff) | |
download | meta-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')
-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 | ||