]> code.ossystems Code Review - meta-freescale.git/commitdiff
classes/image_types_fsl: Add support to use uboot extlinux
authorFabio Berton <fabio.berton@ossystems.com.br>
Mon, 17 Oct 2016 19:44:51 +0000 (17:44 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 18 Oct 2016 18:26:15 +0000 (16:26 -0200)
Class that allows extlinux.conf generation for U-Boot use was introduced
on OE-core commits:

  - 7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2
  - 33df3a65f3e8e136811da715d0cc247ce66ae0ea

We need to copy extlinux.conf file to boot partition inside /extlinux
directory. This file will be only copied if UBOOT_EXTLINUX is set to 1.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
classes/image_types_fsl.bbclass

index 9a65747a10a30e88c763e0f71c875372a7b54cbb..399bcd0861bb92a6c52831cad817b2b2af710571 100644 (file)
@@ -139,6 +139,12 @@ _generate_boot_image() {
                        fi
                done
        fi
+
+       # Copy extlinux.conf to images that have U-Boot Extlinux support.
+       if [ "${UBOOT_EXTLINUX}" = "1" ]; then
+               mmd -i ${WORKDIR}/boot.img ::/extlinux
+               mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/extlinux.conf ::/extlinux/extlinux.conf
+       fi
 }
 
 #