blob: 4c1dadebb6ea6138514cd13841cd8d4068d678b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
SECTION = "devel"
SUMMARY = "Linux Cryptodev KERNEL MODULE"
DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
RCONFLICTS_${PN} = "ocf-linux"
inherit module
PR = "r1"
DEPENDS += "openssl"
SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7"
SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \
file://makefile_fixup.patch \
file://Add-the-compile-and-install-rules-for-cryptodev-test.patch"
EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
S = "${WORKDIR}/git"
python () {
ma = d.getVar("DISTRO_FEATURES", True)
arch = d.getVar("OVERRIDES", True)
# the : after the arch is to skip the message on 64b
if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch):
raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
if promote_kernel == "1":
d.setVar('KERNEL_CC_append', ' -m64')
d.setVar('KERNEL_LD_append', ' -melf64ppc')
error_qa = d.getVar('ERROR_QA', True)
if 'arch' in error_qa:
d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
}
do_compile_append() {
oe_runmake testprogs
}
do_install_append() {
oe_runmake install_tests
}
PACKAGES += "${PN}-tests"
FILES_${PN}-dbg += "${bindir}/tests_cryptodev/.debug"
FILES_${PN}-tests = "${bindir}/tests_cryptodev/*"
|