]> git.baikalelectronics.ru Git - openembedded-baikal.git/commitdiff
Fix task order for bootrom image preparation
authorBaikal Electronics <support@baikalelectronics.ru>
Wed, 28 Sep 2022 20:09:22 +0000 (23:09 +0300)
committerBaikal Electronics <support@baikalelectronics.ru>
Wed, 28 Sep 2022 20:09:22 +0000 (23:09 +0300)
meta-baikal/recipes-core/images/core-image-minimal.bbappend
meta-baikal/recipes-kernel/linux/linux-baikal_5.15.bb
meta-baikal/recipes-kernel/linux/linux-umulti.inc

index 055e6ddf0e6a7e0739e2ff3f4f6fd16fa46439e2..2bd4f27d0b775a2c0670d9dec129d36f8e486835 100644 (file)
@@ -33,7 +33,7 @@ check_size_fitness () {
     dd if=/dev/zero count=1 bs=$padding >> $1
 }
 
-baikal_build_bootrom () {
+do_baikal_build_bootrom () {
     cd ${WORKDIR}
     cat ${BAIKAL_IMAGES}/${MACHINE}.u-boot.bin > ${MACHINE}.rom
     check_size_fitness ${MACHINE}.rom ${UBOOT_SECTION_END} ${MACHINE}.u-boot.bin
@@ -46,8 +46,10 @@ baikal_build_bootrom () {
 
     cp -f ${MACHINE}.rom -t ${BAIKAL_IMAGES}
 }
+addtask do_baikal_build_bootrom before do_populate_lic_deploy
 
-IMAGE_POSTPROCESS_COMMAND += "baikal_deploy;baikal_build_bootrom;"
+IMAGE_POSTPROCESS_COMMAND += "baikal_deploy;"
+do_baikal_build_bootrom[depends] = "linux-baikal:do_deploy"
 
 python () {
     if d.getVar("PREFERRED_PROVIDER_virtual/kernel") == "linux-baikal":
index 3d43ae8d6dc071d26fc7f482bf47b6dc0b0e7cad..50ebb39d8e15ce8744afd64a8ea79a3a7a6f1ed8 100644 (file)
@@ -43,5 +43,5 @@ baikal_deploy_vmlinux () {
        done
 }
 
-do_deploy[postfuncs] += "baikal_deploy"
-do_deploy[postfuncs] += "baikal_deploy_vmlinux"
+do_deploy[prefuncs] += "baikal_deploy"
+do_deploy[prefuncs] += "baikal_deploy_vmlinux"
index d98f01e3483c6bd510cb91fc82cef76e4b431496..a95f982abc2377131e2cb647b915a05422bfcdd3 100644 (file)
@@ -71,6 +71,5 @@ baikal_do_umulti () {
     do_assemble_fitimage_initramfs
 }
 
-do_deploy[prefuncs] += "baikal_entrysymbol"
-
-do_deploy[prefuncs] += "baikal_do_umulti"
+do_deploy[postfuncs] += "baikal_entrysymbol"
+do_deploy[postfuncs] += "baikal_do_umulti"