diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:41:56 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:41:56 +0100 |
commit | 177ef53047019757b70b5ca87171b2c88e26ba07 (patch) | |
tree | 70e3284e64755ae93c130e00f810ba5c501801b9 /recipes-kernel/asf/asf_git.bb | |
download | meta-fsl-ppc-enea_linux_3.tar.gz |
initial commit of Enea Linux 3.1enea_linux_3
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-kernel/asf/asf_git.bb')
-rw-r--r-- | recipes-kernel/asf/asf_git.bb | 45 |
1 files changed, 45 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..7cc23cd --- /dev/null +++ b/recipes-kernel/asf/asf_git.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | DESCRIPTION = "Non-DPAA software Application Specific Fast-path" | ||
2 | SECTION = "asf" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=9960b017720861b8c50c8c08723e57aa" | ||
5 | |||
6 | SRC_URI = "git://git.freescale.com/ppc/sdk/asf.git" | ||
7 | SRCREV = "0b80c1df6a7490486d5106b28103598906793da0" | ||
8 | |||
9 | DEPENDS="virtual/kernel" | ||
10 | |||
11 | inherit module | ||
12 | |||
13 | S = "${WORKDIR}/git/asfmodule" | ||
14 | |||
15 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
16 | export KERNEL_PATH = "${STAGING_KERNEL_DIR}" | ||
17 | |||
18 | python () { | ||
19 | ma = d.getVar("DISTRO_FEATURES", True) | ||
20 | arch = d.getVar("OVERRIDES", True) | ||
21 | |||
22 | # the : after the arch is to skip the message on 64b | ||
23 | if not "multiarch" in ma and "e6500:" in arch: | ||
24 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
25 | |||
26 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
27 | |||
28 | if promote_kernel == "1": | ||
29 | d.setVar('KERNEL_CC_append', ' -m64') | ||
30 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
31 | |||
32 | error_qa = d.getVar('ERROR_QA', True) | ||
33 | if 'arch' in error_qa: | ||
34 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
35 | } | ||
36 | |||
37 | do_install(){ | ||
38 | mkdir -p ${D}/usr/driver/asf | ||
39 | cp -rf ${S}/bin/full ${D}/usr/driver/asf | ||
40 | cp -rf ${S}/bin/min ${D}/usr/driver/asf | ||
41 | cp -rf ${S}/../scripts ${D}/usr/driver/asf/. | ||
42 | } | ||
43 | |||
44 | FILES_${PN} += "/usr/driver/asf" | ||
45 | INHIBIT_PACKAGE_STRIP = "1" | ||