diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:59:10 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:13:09 +0200 |
commit | e064c208e2c78663b0be1316117d963798839d6e (patch) | |
tree | d5d7bb0e950e5d6960d464f96f82f8132b8225c8 /recipes-kernel/cryptodev/cryptodev_1.5.bb | |
download | meta-fsl-ppc-daisy-enea.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-kernel/cryptodev/cryptodev_1.5.bb')
-rw-r--r-- | recipes-kernel/cryptodev/cryptodev_1.5.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/cryptodev_1.5.bb b/recipes-kernel/cryptodev/cryptodev_1.5.bb new file mode 100644 index 0000000..4c1dade --- /dev/null +++ b/recipes-kernel/cryptodev/cryptodev_1.5.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SECTION = "devel" | ||
2 | SUMMARY = "Linux Cryptodev KERNEL MODULE" | ||
3 | DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
6 | RCONFLICTS_${PN} = "ocf-linux" | ||
7 | |||
8 | inherit module | ||
9 | |||
10 | PR = "r1" | ||
11 | DEPENDS += "openssl" | ||
12 | |||
13 | SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7" | ||
14 | |||
15 | SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ | ||
16 | file://makefile_fixup.patch \ | ||
17 | file://Add-the-compile-and-install-rules-for-cryptodev-test.patch" | ||
18 | |||
19 | EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | python () { | ||
23 | ma = d.getVar("DISTRO_FEATURES", True) | ||
24 | arch = d.getVar("OVERRIDES", True) | ||
25 | |||
26 | # the : after the arch is to skip the message on 64b | ||
27 | if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch): | ||
28 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
29 | |||
30 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
31 | |||
32 | if promote_kernel == "1": | ||
33 | d.setVar('KERNEL_CC_append', ' -m64') | ||
34 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
35 | |||
36 | error_qa = d.getVar('ERROR_QA', True) | ||
37 | if 'arch' in error_qa: | ||
38 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
39 | } | ||
40 | |||
41 | do_compile_append() { | ||
42 | oe_runmake testprogs | ||
43 | } | ||
44 | |||
45 | do_install_append() { | ||
46 | oe_runmake install_tests | ||
47 | } | ||
48 | |||
49 | PACKAGES += "${PN}-tests" | ||
50 | FILES_${PN}-dbg += "${bindir}/tests_cryptodev/.debug" | ||
51 | FILES_${PN}-tests = "${bindir}/tests_cryptodev/*" | ||