[meta-freescale] [meta-fsl-arm-extra][PATCH v3 1/3] cubox-i: add u-boot fork for cubox-i machines

Otavio Salvador otavio at ossystems.com.br
Fri Jan 24 13:44:38 PST 2014


Hello Carlos,

Comments inline ...

On Fri, Jan 24, 2014 at 5:57 PM, Carlos Rafael Giani
<dv at pseudoterminal.org> wrote:
> This fork includes MXC SPL support for the SolidRun CuBox-i and
> HummingBoard devices
>
> Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
> ---
>  recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt   |  1 +
>  recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb | 28 ++++++++++++++++++++++++++++
>  2 files changed, 29 insertions(+)
>  create mode 100644 recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt
>  create mode 100644 recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb
>
> diff --git a/recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt b/recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt
> new file mode 100644
> index 0000000..3ae0863
> --- /dev/null
> +++ b/recipes-bsp/u-boot/u-boot-cubox-i/uEnv.txt
> @@ -0,0 +1 @@
> +mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} video=mxcfb0:dev=hdmi,1920x1080M at 60,if=RGB24,bpp=32
> diff --git a/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb b/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb
> new file mode 100644
> index 0000000..6a0d3e6
> --- /dev/null
> +++ b/recipes-bsp/u-boot/u-boot-cubox-i_2013.10.bb
> @@ -0,0 +1,28 @@
> +require recipes-bsp/u-boot/u-boot.inc
> +
> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://Licenses/README;md5=bc069111b5e5b1ed8bed98ae73b596ec"
> +COMPATIBLE_MACHINE = "cubox-i"

COMPATIBLE_MACHINE at end of file.

> +PROVIDES += "u-boot"
> +
> +SRCREV = "920ea0f20276614e11961924b1990b6c922c8d0e"
> +
> +PV = "v2013.10+git${SRCPV}"
> +

I'd put SRCREV right above SRC_URI.

> +SRC_URI = " \
> +    git://github.com/rabeeh/u-boot-imx6.git;branch=imx6 \
> +    file://uEnv.txt \
> +    "
> +
> +S = "${WORKDIR}/git"
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"

At  end of file, just before COMPATIBLE_MACHINE.

> +UENV_FILENAME ?= "uEnv-${MACHINE}.txt"
> +
> +deploy_uenv () {
> +    install ${WORKDIR}/uEnv.txt ${DEPLOYDIR}/${UENV_FILENAME}
> +}
> +
> +do_deploy[postfuncs] += "deploy_uenv"


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