[meta-freescale] [meta-fsl-arm-extra][PATCH 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support

Otavio Salvador otavio at ossystems.com.br
Thu Aug 22 10:10:10 PDT 2013


On Thu, Aug 22, 2013 at 11:51 AM, Alexandre Belloni
<alexandre.belloni at free-electrons.com> wrote:
> Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
...
> new file mode 100644
> index 0000000..c6c90d1
> --- /dev/null
> +++ b/recipes-bsp/imx-bootlets/imx-bootlets/barebox-fix-paths.patch
> @@ -0,0 +1,35 @@
> +From 98721be1c1762adec9130f15263d98e575e290ae Mon Sep 17 00:00:00 2001
> +From: Alexandre Belloni <alexandre.belloni at free-electrons.com>
> +Date: Thu, 8 Aug 2013 20:14:51 +0200
> +Subject: [PATCH] imx-bootlets: Fix paths used during boot stream generation
> +
> +This will be run during image generation thus this won't use a
> +complete path to allow for relocation.
> +
> +Upstream-Status: Inappropriate [configuration]
> +
> +Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
> +---
> + barebox_ivt.bd | 6 +++---
> + 1 file changed, 3 insertions(+), 3 deletions(-)
> +
> +diff --git a/barebox_ivt.bd b/barebox_ivt.bd
> +index 0c67e9c..c603f9e 100644
> +--- a/barebox_ivt.bd
> ++++ b/barebox_ivt.bd
> +@@ -1,9 +1,9 @@
> + // STMP378x ROM command script to load and run U-Boot
> +
> + sources {
> +-      power_prep="./power_prep/power_prep";
> +-      sdram_prep="./boot_prep/boot_prep";
> +-      barebox="./barebox";
> ++      power_prep="imx-bootlets-power_prep- at MACHINE@";
> ++      sdram_prep="imx-bootlets-boot_prep- at MACHINE@";
> ++      barebox="barebox- at MACHINE@.bin";
> + }
> +
> + section (0) {
> +--
> +1.8.1.2


This patch is generic, move it to fsl-arm :)

> diff --git a/recipes-bsp/imx-bootlets/imx-bootlets_cfa.bb b/recipes-bsp/imx-bootlets/imx-bootlets_cfa.bb
> new file mode 100644
> index 0000000..580adef
> --- /dev/null
> +++ b/recipes-bsp/imx-bootlets/imx-bootlets_cfa.bb
> @@ -0,0 +1,65 @@
> +DESCRIPTION = "i.MXS boot streams"
> +LICENSE = "GPL-2.0"
> +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
> +
> +PR = "r1"
> +
> +SRC_URI = "git://github.com/crystalfontz/bootlets.git \
> +                  file://barebox-fix-paths.patch \
> +                 "
...

Use a bbappend :)

-- 
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



More information about the meta-freescale mailing list