summaryrefslogtreecommitdiff
path: root/classes/linux-append-dtb.bbclass
blob: 6d3e52d2726354a34c8fbd85c20972bd69328f6f (plain)
1
2
3
4
5
6
7
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
}