Skip to contentSkip to conversation

classes/image_types_fsl: Add support to use uboot extlinux

PATCH Superseded Fabio Berton 2 participants 2 messages Oct 17, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 classes/image_types_fsl: Add support to use uboot extlinux

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.

---
 classes/image_types_fsl.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)
classes/image_types_fsl.bbclass +6 -0
index 9a65747..9b5cb8e 100644
@@ -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
 }
 
 #
Signature · 1 line
2.1.4
#1 lore raw
Quoted 10 lines · Fabio Berton

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.

Please fix the indenting style to follow the code block.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750