diff options
Diffstat (limited to 'recipes-kernel/asf/asf_git.bb')
| -rw-r--r-- | recipes-kernel/asf/asf_git.bb | 48 |
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 @@ | |||
| 1 | DESCRIPTION = "Non-DPAA software Application Specific Fast-path" | ||
| 2 | SECTION = "asf" | ||
| 3 | LICENSE = "GPLv2 & GPLv2+ & BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287" | ||
| 5 | |||
| 6 | SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git;nobranch=1" | ||
| 7 | SRCREV = "c262d7701af325b50cae54279a021ae7b5081e24" | ||
| 8 | SRCREV_t2080qds = "6af9df06e2747bdee91c21d1626b5b53b97849c5" | ||
| 9 | SRCREV_t2080qds-64b = "6af9df06e2747bdee91c21d1626b5b53b97849c5" | ||
| 10 | |||
| 11 | DEPENDS="virtual/kernel" | ||
| 12 | RDEPENDS_${PN} += "ipsec-tools" | ||
| 13 | |||
| 14 | inherit module | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git/asfmodule" | ||
| 17 | |||
| 18 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
| 19 | export KERNEL_PATH = "${STAGING_KERNEL_DIR}" | ||
| 20 | |||
| 21 | python () { | ||
| 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 | |||
| 40 | do_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 | |||
| 47 | FILES_${PN} += "/usr/driver/asf" | ||
| 48 | INHIBIT_PACKAGE_STRIP = "1" | ||
