diff options
author | John Klug <john.klug@multitech.com> | 2020-11-11 16:17:52 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-11-11 16:17:52 -0600 |
commit | 4bb6f26b05450777d14aa96e10783066c2503dc2 (patch) | |
tree | 3ed6c4bb86736d28926fd37a3c2b4eb81de44c82 /classes | |
download | meta-multitech-atmel-fc2577905bfab8d05f91c835e2bf821861e1d8b0.tar.gz meta-multitech-atmel-fc2577905bfab8d05f91c835e2bf821861e1d8b0.tar.bz2 meta-multitech-atmel-fc2577905bfab8d05f91c835e2bf821861e1d8b0.zip |
Diffstat (limited to 'classes')
-rw-r--r-- | classes/linux-append-dtb.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/linux-append-dtb.bbclass b/classes/linux-append-dtb.bbclass new file mode 100644 index 0000000..6d3e52d --- /dev/null +++ b/classes/linux-append-dtb.bbclass @@ -0,0 +1,8 @@ +# build devicetree blob, append to kernel, and create uImage +do_compile_append() { + if [ -n "${DTB_APPEND}" ]; then + oe_runmake ${DTB_APPEND}.dtb + cat arch/${ARCH}/boot/zImage arch/${ARCH}/boot/dts/${DTB_APPEND}.dtb > arch/${ARCH}/boot/zImage.dtb + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_LOADADDRESS} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d arch/${ARCH}/boot/zImage.dtb arch/${ARCH}/boot/uImage + fi +} |