summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorLuka Pivk <luka.pivk@toradex.com>2018-11-27 12:42:14 +0100
committerLuka Pivk <luka.pivk@toradex.com>2018-12-14 09:30:25 +0100
commit4f267b8acf4c0c2401f827c08b0e18da943c873a (patch)
tree0d529ae5f9566a7fcd0e5fb5690b73ca700aa2c6 /classes
parent893dac8ff3e15b90d9c1eab07c47e490cf69b8c6 (diff)
downloadmeta-updater-4f267b8acf4c0c2401f827c08b0e18da943c873a.tar.gz
classes/image_types_ostree.bbclass: add device tree to boot/devicetree-*
Include device trees into boot/devicetree-*-checksum. Device trees with this name format get picked up by ostree and copied into boot/. Ostree also generates entry inside uEnv.txt called fdt_file pointing to this device tree. Normaly one would include only one device tree. If KERNEL_DEVICETREE includes more then one device tree this will add all the device trees but ostree will still pick only one device tree and include it into boot. We are working on modifications to ostree so it will pickup all the device trees. Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index 41b8d0d..d433acb 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -5,6 +5,7 @@ OSTREE_ROOTFS ??= "${WORKDIR}/ostree-rootfs"
5OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}" 5OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}"
6OSTREE_COMMIT_BODY ??= "" 6OSTREE_COMMIT_BODY ??= ""
7OSTREE_UPDATE_SUMMARY ??= "0" 7OSTREE_UPDATE_SUMMARY ??= "0"
8OSTREE_DEPLOY_DEVICETREE ??= "0"
8 9
9BUILD_OSTREE_TARBALL ??= "1" 10BUILD_OSTREE_TARBALL ??= "1"
10 11
@@ -121,6 +122,14 @@ IMAGE_CMD_ostree () {
121 touch boot/initramfs-${checksum} 122 touch boot/initramfs-${checksum}
122 else 123 else
123 cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES} boot/initramfs-${checksum} 124 cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES} boot/initramfs-${checksum}
125 if [ "${OSTREE_DEPLOY_DEVICETREE}" = "1" ]; then
126 if test -n "${KERNEL_DEVICETREE}"; then
127 for DTS_FILE in ${KERNEL_DEVICETREE}; do
128 DTS_FILE_BASENAME=$(basename ${DTS_FILE})
129 cp ${DEPLOY_DIR_IMAGE}/${DTS_FILE_BASENAME} boot/devicetree-${DTS_FILE_BASENAME}-${checksum}
130 done
131 fi
132 fi
124 fi 133 fi
125 134
126 # Copy image manifest 135 # Copy image manifest