Skip to contentSkip to conversation

image_types_fsl.bbclass: Add support for kernel image types

PATCH In review S. Fricke 2 participants 2 messages Apr 24, 2013

lore
Share & tools
lore

S. Fricke

author
#0 lore raw

PATCH v2 1/1 image_types_fsl.bbclass: Add support for kernel image types

From: "S. Fricke" <[email protected]>

Use the KERNEL_IMAGETYPE variable, making the class configurable for all supported kernel image types.

This patch is tested with a 3rd-party board and a sabrelite board.

---
 classes/image_types_fsl.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/image_types_fsl.bbclass +2 -2
index b803aef..b894495 100644
@@ -118,7 +118,7 @@ generate_imx_sdcard () {
 	BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
 	                  | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }')
 	mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
-	mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
+	mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
 
 	# Copy boot scripts
 	for item in ${BOOT_SCRIPTS}; do
@@ -221,7 +221,7 @@ generate_mxs_sdcard () {
 	        | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }')
 
 		mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
-		mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
+		mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
 		if test -n "${KERNEL_DEVICETREE}"; then
 			for DTS_FILE in ${KERNEL_DEVICETREE}; do
 				DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
Signature · 1 line
1.8.0.2
#1 lore raw
Quoted 8 lines · S. Fricke

From: "S. Fricke" <[email protected]>

Use the KERNEL_IMAGETYPE variable, making the class configurable for all supported kernel image types.

This patch is tested with a 3rd-party board and a sabrelite board.

Tested in wandboard-dual, applied.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br