]> git.baikalelectronics.ru Git - openembedded-baikal.git/commitdiff
Deploy binaries required to build rom image to a separate dir
authorBaikal Electronics <support@baikalelectronics.ru>
Tue, 20 Sep 2022 14:28:36 +0000 (17:28 +0300)
committerBaikal Electronics <support@baikalelectronics.ru>
Tue, 20 Sep 2022 14:28:36 +0000 (17:28 +0300)
meta-baikal/recipes-bsp/u-boot/u-boot_2022.07.bbappend
meta-baikal/recipes-kernel/linux/linux-baikal_5.15.bb

index 5c2759ddc27a8b8dacf9f781e8a6f717fe9d1c0b..f9dcef364b72827b9df62cf502d5f56dda05cac0 100644 (file)
@@ -15,7 +15,7 @@ do_cleanall[prefuncs] += "do_extsrc_clean"
 
 include u-boot-environment.inc
 
-do_deploy_baikal () {
+baikal_deploy () {
     if [ ! -d ${BAIKAL_IMAGES} ]; then
         mkdir -p ${BAIKAL_IMAGES}
     fi
@@ -36,5 +36,9 @@ do_deploy_baikal () {
     else
         install -D -m 644 ${B}/${UBOOT_BINARY} ${BAIKAL_IMAGES}/${MACHINE}.${UBOOT_BINARY}
     fi
+    if [ -f ${WORKDIR}/${MACHINE}.bin ]; then
+        cp -f ${WORKDIR}/${MACHINE}.bin ${BAIKAL_IMAGES}/${MACHINE}.bin
+    fi
 }
-addtask deploy_baikal after do_deploy
+
+do_deploy[postfuncs] += "baikal_deploy"
index d7e6e642e03a62fcc61c3049deee97e3307c1528..3059a62ca63b10c11e87cc71218d4b5849ad8b15 100644 (file)
@@ -19,7 +19,7 @@ EXTERNALSRC="${KERNEL_DIR}"
 
 deltask package_qa
 
-do_deploy_baikal () {
+baikal_deploy () {
     if [ ! -d ${BAIKAL_IMAGES} ]; then
         mkdir -p ${BAIKAL_IMAGES}
     fi
@@ -27,4 +27,16 @@ do_deploy_baikal () {
         install -m 0644 ${B}/${KERNEL_OUTPUT_DIR}/$imageType ${BAIKAL_IMAGES}/${MACHINE}.$imageType
     done
 }
-addtask deploy_baikal after do_deploy
+
+baikal_deploy_vmlinux () {
+    if [ ! -d ${BAIKAL_IMAGES} ]; then
+        mkdir -p ${BAIKAL_IMAGES}
+    fi
+    cp -f ${B}/System.map ${BAIKAL_IMAGES}/${MACHINE}.System.map
+    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
+}
+
+do_deploy[postfuncs] += "baikal_deploy"
+do_deploy[postfuncs] += "baikal_deploy_vmlinux"