[meta-freescale] [meta-fsl-arm][PATCH 3/6] Add kernel recipe for Layerscape1 support

John Weber rjohnweber at gmail.com
Tue Aug 26 18:06:47 PDT 2014


Hi Zhenhua,

On Tuesday, August 26, 2014, Zhenhua Luo <zhenhua.luo at freescale.com> wrote:

> Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com <javascript:;>>
> ---
>  recipes-kernel/linux/linux-ls.inc     | 30 ++++++++++++++++++++++++++++++
>  recipes-kernel/linux/linux-ls_3.12.bb | 15 +++++++++++++++
>  2 files changed, 45 insertions(+)
>  create mode 100644 recipes-kernel/linux/linux-ls.inc
>  create mode 100644 recipes-kernel/linux/linux-ls_3.12.bb
>
> diff --git a/recipes-kernel/linux/linux-ls.inc
> b/recipes-kernel/linux/linux-ls.inc


Would this also apply to all platforms in the LS family, or just LS1021
family?  If there will be a different kernel for the old Mindspeed parts
that are being rebranded to LS1 (e.g.LS1024), it might be more appropriate
to name this something more specific.


> new file mode 100644
> index 0000000..c1c976b
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-ls.inc
> @@ -0,0 +1,30 @@
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> +
> +inherit kernel
> +
> +# Append a local version if it is defined
> +SCMVERSION ?= "y"
> +
> +SRC_URI = "git://
> git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH}"
> +
> +KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
> +
> +S = "${WORKDIR}/git"
> +
> +do_configure_prepend() {
> +    # copy desired defconfig so we pick it up for the real
> kernel_do_configure
> +    cp ${KERNEL_DEFCONFIG} ${B}/.config
> +
> +    # add git revision to the local version
> +    if [ "${SCMVERSION}" = "y" ]; then
> +        # append sdk version if SDK_VERSION is defined
> +        sdkversion=''
> +        if [ -n "${SDK_VERSION}" ]; then
> +            sdkversion="-${SDK_VERSION}"
> +        fi
> +        head=`git rev-parse --verify --short HEAD 2> /dev/null`
> +        printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
> +    fi
> +}
> +
> diff --git a/recipes-kernel/linux/linux-ls_3.12.bb b/recipes-kernel/linux/
> linux-ls_3.12.bb
> new file mode 100644
> index 0000000..6715ccb
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-ls_3.12.bb
> @@ -0,0 +1,15 @@
> +SUMMARY = "Linux Kernel for Freescale layerscape platforms"
> +DESCRIPTION = "Linux Kernel provided and supported by Freescale with
> focus on \
> +Layerscape1 Family Boards. "
> +
> +require recipes-kernel/linux/linux-ls.inc
> +require recipes-kernel/linux/linux-dtb.inc
> +
> +DEPENDS_append = " libgcc"
> +KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
> +KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
> +
> +SRCBRANCH = "ls1-dev"
> +SRCREV = "de1cb4b3c16be38cf3981fd0afa143ad24283d07"
> +
> +COMPATIBLE_MACHINE = "(ls1021aqds|ls1021atwr)"
> --
> 1.8.3.2
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org <javascript:;>
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140826/5735d388/attachment-0001.html>


More information about the meta-freescale mailing list