Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 12627E01515 for ; Wed, 24 Apr 2013 05:43:18 -0700 (PDT) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Zwh5c55wmz3hhTg; Wed, 24 Apr 2013 14:43:16 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3Zwh5c269mzbbvj; Wed, 24 Apr 2013 14:43:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id DlQDAxKAWFhh; Wed, 24 Apr 2013 14:43:11 +0200 (CEST) Received: from port1024.net (ppp-188-174-115-60.dynamic.mnet-online.de [188.174.115.60]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 24 Apr 2013 14:43:11 +0200 (CEST) Received: from silvio by port1024.net with local (Exim 4.80.1) (envelope-from ) id 1UUz2U-00058t-LO; Wed, 24 Apr 2013 14:43:10 +0200 From: "S. Fricke" To: meta-freescale@yoctoproject.org Date: Wed, 24 Apr 2013 14:43:04 +0200 Message-Id: <1366807384-19735-1-git-send-email-sfricke@data-modul.com> X-Mailer: git-send-email 1.8.0.2 Sender: Cc: "S. Fricke" Subject: [meta-fsl-arm] [PATCH v2] image_types_fsl.bbclass: Add support for kernel image types X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 12:43:19 -0000 From: "S. Fricke" 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. Signed-off-by: S. Fricke --- classes/image_types_fsl.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index b803aef..b894495 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass @@ -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}'` -- 1.8.0.2