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.ber...@ossystems.com.br>
---
 classes/image_types_fsl.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 9a65747..399bcd0 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -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
 }
 
 #
-- 
2.1.4

-- 
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to