]> git.baikalelectronics.ru Git - openembedded-baikal.git/commitdiff
Deploy kernel .dtb files into a prefered place
authorBaikal Electronics <support@baikalelectronics.ru>
Tue, 20 Sep 2022 20:22:49 +0000 (23:22 +0300)
committerBaikal Electronics <support@baikalelectronics.ru>
Tue, 20 Sep 2022 20:22:49 +0000 (23:22 +0300)
meta-baikal/recipes-kernel/linux/linux-baikal_5.15.bb

index 3059a62ca63b10c11e87cc71218d4b5849ad8b15..f5645466d7c70bc25b1f3a302986810a00c9fac4 100644 (file)
@@ -36,6 +36,10 @@ baikal_deploy_vmlinux () {
     cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin
     cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin.gz ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.gz
     cat ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin | lzma -f -9 > ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.lzma
+
+       for dtbf in ${KERNEL_DEVICETREE}; do
+        cp -f ${B}/${KERNEL_OUTPUT_DIR}/dts/$dtbf -t ${BAIKAL_IMAGES}
+       done
 }
 
 do_deploy[postfuncs] += "baikal_deploy"