summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/asf/asf_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/asf/asf_git.bb')
-rw-r--r--recipes-kernel/asf/asf_git.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-kernel/asf/asf_git.bb b/recipes-kernel/asf/asf_git.bb
new file mode 100644
index 0000000..c9948ee
--- /dev/null
+++ b/recipes-kernel/asf/asf_git.bb
@@ -0,0 +1,48 @@
1DESCRIPTION = "Non-DPAA software Application Specific Fast-path"
2SECTION = "asf"
3LICENSE = "GPLv2 & GPLv2+ & BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287"
5
6SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git;nobranch=1"
7SRCREV = "c262d7701af325b50cae54279a021ae7b5081e24"
8SRCREV_t2080qds = "6af9df06e2747bdee91c21d1626b5b53b97849c5"
9SRCREV_t2080qds-64b = "6af9df06e2747bdee91c21d1626b5b53b97849c5"
10
11DEPENDS="virtual/kernel"
12RDEPENDS_${PN} += "ipsec-tools"
13
14inherit module
15
16S = "${WORKDIR}/git/asfmodule"
17
18EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
19export KERNEL_PATH = "${STAGING_KERNEL_DIR}"
20
21python () {
22 ma = d.getVar("DISTRO_FEATURES", True)
23 arch = d.getVar("OVERRIDES", True)
24
25 # the : after the arch is to skip the message on 64b
26 if not "multiarch" in ma and "e6500:" in arch:
27 raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
28
29 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
30
31 if promote_kernel == "1":
32 d.setVar('KERNEL_CC_append', ' -m64')
33 d.setVar('KERNEL_LD_append', ' -melf64ppc')
34
35 error_qa = d.getVar('ERROR_QA', True)
36 if 'arch' in error_qa:
37 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
38}
39
40do_install(){
41 mkdir -p ${D}/usr/driver/asf
42 cp -rf ${S}/bin/full ${D}/usr/driver/asf
43 cp -rf ${S}/bin/min ${D}/usr/driver/asf
44 cp -rf ${S}/../scripts ${D}/usr/driver/asf/.
45}
46
47FILES_${PN} += "/usr/driver/asf"
48INHIBIT_PACKAGE_STRIP = "1"