[meta-freescale] [PATCH v2 1/4] imx-lib: Add git recipe
Otavio Salvador
otavio.salvador at ossystems.com.br
Wed Oct 11 06:21:09 PDT 2017
Hello Jun,
On Wed, Oct 11, 2017 at 8:31 AM, Jun Zhu <junzhu at nxp.com> wrote:
> - As the imx-lib git repository is public as git.freescale.com/imx/imx-lib.git,
> build it from the git.
> - Add support to i.MX 6SLL and 7ULP.
>
> Add the options to support i.MX 6SLL and 7ULP
>
> Signed-off-by: Jun Zhu <junzhu at nxp.com>
> ---
> recipes-bsp/imx-lib/imx-lib_5.4.bb | 10 ---------
> .../imx-lib/{imx-lib.inc => imx-lib_git.bb} | 24 ++++++++++++++--------
> 2 files changed, 16 insertions(+), 18 deletions(-)
> delete mode 100644 recipes-bsp/imx-lib/imx-lib_5.4.bb
> rename recipes-bsp/imx-lib/{imx-lib.inc => imx-lib_git.bb} (65%)
>
> diff --git a/recipes-bsp/imx-lib/imx-lib_5.4.bb b/recipes-bsp/imx-lib/imx-lib_5.4.bb
> deleted file mode 100644
> index 3055c51..0000000
> --- a/recipes-bsp/imx-lib/imx-lib_5.4.bb
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -# Copyright (C) 2013-2016 Freescale Semiconductor
> -
> -include imx-lib.inc
> -
> -PE = "1"
> -
> -SRC_URI[md5sum] = "a0da6a01698776f2df05130108c226c9"
> -SRC_URI[sha256sum] = "8d12c4a0a44d29569f1ead3a36adc28402b9c4036b53e11dd3ebf2295e3ce1d0"
> -
> -COMPATIBLE_MACHINE = "(mx6|mx7)"
> diff --git a/recipes-bsp/imx-lib/imx-lib.inc b/recipes-bsp/imx-lib/imx-lib_git.bb
> similarity index 65%
> rename from recipes-bsp/imx-lib/imx-lib.inc
> rename to recipes-bsp/imx-lib/imx-lib_git.bb
> index 0b21d94..065b896 100644
> --- a/recipes-bsp/imx-lib/imx-lib.inc
> +++ b/recipes-bsp/imx-lib/imx-lib_git.bb
> @@ -1,5 +1,6 @@
> -# Copyright (C) 2012-2013 Freescale Semiconductor
> +# Copyright (C) 2012-2016 Freescale Semiconductor
> # Copyright (C) 2012-2016 O.S. Systems Software LTDA.
> +# Copyright 2017 NXP
>
> DESCRIPTION = "Platform specific libraries for imx platform"
> LICENSE = "LGPLv2.1"
> @@ -8,26 +9,33 @@ DEPENDS = "virtual/kernel"
>
> LIC_FILES_CHKSUM = "file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24"
>
> +PE = "1"
> +
> +SRCBRANCH = "imx_4.9.11_1.0.0_ga"
> +SRC_URI = "git://git.freescale.com/imx/imx-lib.git;protocol=git;branch=${SRCBRANCH}"
> +SRCREV = "f5f14fc24581e5d6e689f42a56b5f2992f978ef4"
> +
PV = "5.5+${SRCPV}"
> +S = "${WORKDIR}/git"
> +
> PLATFORM_mx6q = "IMX6Q"
> PLATFORM_mx6dl = "IMX6Q"
> PLATFORM_mx6sl = "IMX6S"
> +PLATFORM_mx6sll = "IMX6UL"
> PLATFORM_mx6sx = "IMX6S"
> -PLATFORM_mx7d = "IMX7"
> PLATFORM_mx6ul = "IMX6UL"
> +PLATFORM_mx7d = "IMX7"
> +PLATFORM_mx7ulp = "IMX7"
>
> PARALLEL_MAKE="-j 1"
> EXTRA_OEMAKE = ""
>
> -SRC_URI = "${FSL_MIRROR}/imx-lib-${PV}.tar.gz"
> -
> do_compile () {
> - INCLUDE_DIR="-I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include \
> - -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
> - -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include"
> -
> + INCLUDE_DIR="-I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include"
This change is not documented.
> oe_runmake CROSS_COMPILE="${HOST_PREFIX}" PLATFORM="${PLATFORM}" INCLUDE="${INCLUDE_DIR}" all
> }
>
> do_install () {
> oe_runmake PLATFORM="${PLATFORM}" DEST_DIR="${D}" install
> }
> +
> +COMPATIBLE_MACHINE = "(mx6|mx7)"
This change is not documented.
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
--
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