[meta-freescale] [meta-fsl-arm][PATCH V2] asf : add recipes for Layerscape1 support

Otavio Salvador otavio at ossystems.com.br
Mon Jan 5 02:18:05 PST 2015


Hello Chunrong,

On Mon, Jan 5, 2015 at 7:15 AM,  <b40290 at freescale.com> wrote:
> From: Chunrong Guo <B40290 at freescale.com>
>
>    1. ASF depend on ipsec-tools in meta-openembeded.
>    2. ASF is Linux kernel implementation for accelerating the data path
>       processing on the Freescale family of processors
>
> Signed-off-by: Chunrong Guo <B40290 at freescale.com>
> ---
>  recipes-kernel/asf/asf_git.bb | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 recipes-kernel/asf/asf_git.bb
>
> diff --git a/recipes-kernel/asf/asf_git.bb b/recipes-kernel/asf/asf_git.bb
> new file mode 100644
> index 0000000..4ffe8b2
> --- /dev/null
> +++ b/recipes-kernel/asf/asf_git.bb
> @@ -0,0 +1,26 @@
> +DESCRIPTION = "Non-DPAA software Application Specific Fast-path"
> +SECTION = "asf"
> +LICENSE = "GPLv2 & GPLv2+ & BSD"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287"
> +
> +SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git;branch=sdk-v1.7.x"
> +SRCREV = "16eb472d6b2b34c8b605a86c469611bc8ddec1c9"
> +
> +inherit module
> +
> +S = "${WORKDIR}/git/asfmodule"
> +
> +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
> +export KERNEL_PATH = "${STAGING_KERNEL_DIR}"
> +
> +INHIBIT_PACKAGE_STRIP = "1"
> +
> +do_install(){
> +       mkdir -p ${D}/usr/lib/asf
> +       cp -rf ${S}/bin/full ${D}/usr/lib/asf
> +       cp -rf ${S}/bin/min  ${D}/usr/lib/asf
> +       cp -rf ${S}/../scripts ${D}/usr/lib/asf/.
> +}
> +
> +FILES_${PN} += "/usr/lib/asf"
> +RDEPENDS_${PN} += "ipsec-tools"

Please replace /usr/lib/asf with ${libexecdir} as it is by default set as:

meta/conf/bitbake.conf:export libexecdir = "${libdir}/${BPN}"

and it also allows for relocation. The full and min binaries shouldn't
be in ${bindir}? If they should, please use a asf prefix for them
(e.g. asf-full and asf-min).

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