Return-Path: Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DB456E00777 for ; Mon, 10 Dec 2012 08:03:43 -0800 (PST) Received: by mail-ob0-f176.google.com with SMTP id un3so2833104obb.35 for ; Mon, 10 Dec 2012 08:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=/xY7+isMKGDiBCF7lb0Z6nRUM9BvbPcwd0IweR6xoBE=; b=pFYdiLxtgLOwEJhq+THF14nDvn9xAs2dKHE76952GvbMoRVkYIkwtHQdU7cF9s21oh sh2sARaUrZVgNa7NNDuMBDXCsfKn7S0ai6Gx0qRXuN5x5+roNjGVHKlgk0v4gQw/fiXG LtHrdjeDOvo59Jl/nQHJd7rU6l8aQQXKF+uGaeuKVxk6A2RA3CsI6SMbJ8/MuxZ6mYV8 U3KeUNbFhOLf5DdJcRXYxlVbHNnBeB8zFB3ku1GH58oyWPI2Q+9mXBt+yRHsmoGvxzBz XxKkFS6Ihc9KgKy6reRN5lYvhVadWBpyu+YDwaspFXcB/N1wZrKYr8z+Ogl8+3qhsLfK dA0g== Received: by 10.60.1.164 with SMTP id 4mr7520291oen.47.1355155423722; Mon, 10 Dec 2012 08:03:43 -0800 (PST) Received: from nano.lab.ossystems.com.br.lab.ossystems.com.br ([187.23.153.69]) by mx.google.com with ESMTPS id fo6sm5755714obc.20.2012.12.10.08.03.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 08:03:42 -0800 (PST) Sender: Otavio Salvador From: Otavio Salvador To: meta-freescale@yoctoproject.org Date: Mon, 10 Dec 2012 14:06:17 -0200 Message-Id: <1355155577-11079-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1355155577-11079-1-git-send-email-otavio@ossystems.com.br> References: <1355155577-11079-1-git-send-email-otavio@ossystems.com.br> Cc: Otavio Salvador Subject: [meta-fsl-arm][PATCH 2/2] image_types_fsl.bbclass: Add support to install boot scripts 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: Mon, 10 Dec 2012 16:03:44 -0000 Some machines might want to provide boot scripts for use. This now can be accomplished using BOOT_SCRIPTS variable in following format: : Thus any file in deploy directory can be installed in the boot partition of the sdcard, easily. This can be placed in the machine definition or the image. Change-Id: Ic1eafd2be3559b5c9da43dcc6f54f1b480dbc647 Signed-off-by: Otavio Salvador --- classes/image_types_fsl.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 8414848..8a9fde4 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass @@ -119,6 +119,16 @@ generate_imx_sdcard () { | 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 + + # Copy boot scripts + for item in ${BOOT_SCRIPTS}; do + src=`echo $item | awk -F':' '{ print $1 }'` + dst=`echo $item | awk -F':' '{ print $2 }'` + + mcopy -i ${WORKDIR}/boot.img -s $src ::/$dst + done + + # Copy device tree file if [ -e "${KERNEL_IMAGETYPE}-${MACHINE}.dtb" ]; then kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`" kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb`" -- 1.7.10.4