]> code.ossystems Code Review - meta-freescale.git/commitdiff
asf : add recipes for Layerscape1 support
authorChunrong Guo <B40290@freescale.com>
Thu, 8 Jan 2015 07:07:11 +0000 (15:07 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 13 Jan 2015 13:07:12 +0000 (11:07 -0200)
     1. ASF depend on ipsec-tools in meta-openembeded.
     2. ASF is Linux kernel implementation for accelerating the data pat
      processing on the Freescale family of processors

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/openembedded-layer/recipes-kernel/asf/asf_git.bb [new file with mode: 0644]

diff --git a/meta-fsl-arm/openembedded-layer/recipes-kernel/asf/asf_git.bb b/meta-fsl-arm/openembedded-layer/recipes-kernel/asf/asf_git.bb
new file mode 100644 (file)
index 0000000..676c547
--- /dev/null
@@ -0,0 +1,27 @@
+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}/${libexecdir} 
+       mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/asf
+       cp -rf ${S}/bin/full ${D}/lib/modules/${KERNEL_VERSION}/asf 
+       cp -rf ${S}/bin/min  ${D}/lib/modules/${KERNEL_VERSION}/asf
+       cp -rf ${S}/scripts ${D}/${libexecdir}/
+}
+
+FILES_${PN} += "${libexecdir} /lib/modules/${KERNEL_VERSION}/asf"
+RDEPENDS_${PN} += "ipsec-tools"