Return-Path: Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A4BFBE00777 for ; Tue, 11 Dec 2012 10:47:42 -0800 (PST) Received: by mail-vc0-f176.google.com with SMTP id fo13so4520483vcb.35 for ; Tue, 11 Dec 2012 10:47:42 -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=dv4KYHoIMpwbJWev4pQu3/dovup9v9xUZSKaTGGTxaI=; b=CCJ45tTmdH+YdULm+a9FabNZcZgZjjQ2x3IUaaO/3OAP6TPLe9OGBb9qcOggxa3wTo ZhI77FMHjz8d+4RwjX58FrPpejF+vDZuiD8u5QBb2q0j40tYiaKy55KfibE0MskbKPk1 TJ+OJhTFSFGiLYgCAJOXDm1lo3K6UW2XHH/8zXzOl+2SCLMXsi7FCX1Cr7qe4sN5qAz7 QK5bk8uCLFGicCNL6tFezpclXiu21Tbc9qsm9gxeJOUOeAEmP1guits0snaA/GezGe4u k4/cLsfQD7p/bG4NyrfrWq1lvglPpM5P/zgmdhxByVdD8IVKf5mTpwgCZhVZKz57/dqK 08vw== Received: by 10.52.89.242 with SMTP id br18mr10309231vdb.22.1355251662439; Tue, 11 Dec 2012 10:47:42 -0800 (PST) Received: from nano.lab.ossystems.com.br ([177.213.146.163]) by mx.google.com with ESMTPS id dh10sm7091755veb.8.2012.12.11.10.47.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Dec 2012 10:47:41 -0800 (PST) Sender: Otavio Salvador From: Otavio Salvador To: meta-freescale@yoctoproject.org Date: Tue, 11 Dec 2012 16:50:17 -0200 Message-Id: <1355251818-15439-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1355251818-15439-1-git-send-email-otavio@ossystems.com.br> References: <1355251818-15439-1-git-send-email-otavio@ossystems.com.br> Cc: Otavio Salvador Subject: [meta-fsl-arm-extra][PATCH v2 2/3] u-boot-script-boundary: Add recipe to deploy the 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: Tue, 11 Dec 2012 18:47:42 -0000 The recipe deploys the scripts used by Boundary Devices to detect and choose video output, load kernel and etc... Change-Id: Ic4685c60ba1470a1548629e294ea8aa48473cd0e Signed-off-by: Otavio Salvador --- recipes-bsp/u-boot/u-boot-script-boundary_git.bb | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_git.bb diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb new file mode 100644 index 0000000..f1f1ac3 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb @@ -0,0 +1,46 @@ +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" +COMPATIBLE_MACHINE = "(imx6qsabrelite|nitrogen6x)" +DEPENDS = "u-boot-mkimage-native" + +PV = "v2013.01+git${SRCPV}" + +SRCREV = "d6b05d35b8b29392e71fdd8fa43d5cb8bd4fe276" +SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git" + +S = "${WORKDIR}/git" + +inherit deploy + +do_mkimage () { + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ + -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \ + board/boundary/${MACHINE}/6x_bootscript + + uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ + -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \ + board/boundary/${MACHINE}/6x_upgrade +} + +addtask mkimage after do_compile before do_install + +do_deploy () { + install -d ${DEPLOYDIR} + install ${S}/board/boundary/${MACHINE}/6x_bootscript \ + ${DEPLOYDIR}/6x_bootscript-${MACHINE}-${PV}-${PR} + install ${S}/board/boundary/${MACHINE}/6x_upgrade \ + ${DEPLOYDIR}/6x_upgrade-${MACHINE}-${PV}-${PR} + + cd ${DEPLOYDIR} + rm -f 6x_bootscript-${MACHINE} 6x_upgrade-${MACHINE} + ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE} + ln -sf 6x_upgrade-${MACHINE}-${PV}-${PR} 6x_upgrade-${MACHINE} +} + +addtask deploy before do_build after do_compile + +do_compile[noexec] = "1" +do_install[noexec] = "1" +do_populate_sysroot[noexec] = "1" + +PACKAGE_ARCH = "${MACHINE_ARCH}" -- 1.7.10.4