diff options
Diffstat (limited to 'common/recipes-extended/qat/qat16.inc')
-rw-r--r-- | common/recipes-extended/qat/qat16.inc | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/common/recipes-extended/qat/qat16.inc b/common/recipes-extended/qat/qat16.inc deleted file mode 100644 index cf112bbd..00000000 --- a/common/recipes-extended/qat/qat16.inc +++ /dev/null | |||
@@ -1,123 +0,0 @@ | |||
1 | DESCRIPTION = "Intel(r) QuickAssist Technology API" | ||
2 | HOMEPAGE = "https://01.org/packet-processing/intel%C2%AE-quickassist-technology-drivers-and-patches" | ||
3 | |||
4 | #Dual BSD and GPLv2 License | ||
5 | LICENSE = "BSD & GPLv2" | ||
6 | LIC_FILES_CHKSUM = "\ | ||
7 | file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \ | ||
8 | file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb \ | ||
9 | " | ||
10 | |||
11 | DEPENDS += "zlib openssl" | ||
12 | PROVIDES += "virtual/qat" | ||
13 | |||
14 | SRC_URI="file://qat16_2.3.0-34-qat-fix-for-cross-compilation-issue.patch \ | ||
15 | file://qat16_2.3.0-34-qat-remove-local-path-from-makefile.patch \ | ||
16 | file://qat16_2.3.0-34-make-sure-CFLAGS-are-correct.patch \ | ||
17 | file://qat16_2.5.0-80-qat-change-in-return-type-of-func-in-kernel-v4.4.patch \ | ||
18 | file://qat16_2.5.0-80-qat-Added-include-dir-path.patch \ | ||
19 | " | ||
20 | |||
21 | COMPATIBLE_MACHINE = "crystalforest|intel-corei7-64" | ||
22 | COMPATIBLE_HOST_linux-gnux32 = "null" | ||
23 | |||
24 | S = "${WORKDIR}/${ICP_DRIVER_TYPE}" | ||
25 | ICP_TOOLS = "accelcomp" | ||
26 | SAMPLE_CODE_DIR = "${S}/quickassist/lookaside/access_layer/src/sample_code" | ||
27 | TARGET_CC_ARCH += "$(LDFLAGS)" | ||
28 | |||
29 | export ICP_DRIVER_TYPE = "QAT1.6" | ||
30 | export ICP_FIRMWARE_DIR="dh895xcc" | ||
31 | export ICP_ROOT = "${S}" | ||
32 | export ICP_ENV_DIR = "${S}/quickassist/build_system/build_files/env_files" | ||
33 | export ICP_BUILDSYSTEM_PATH = "${S}/quickassist/build_system" | ||
34 | export ICP_TOOLS_TARGET = "${ICP_TOOLS}" | ||
35 | export FUNC_PATH = "${ICP_ROOT}/quickassist/lookaside/access_layer/src/sample_code/functional" | ||
36 | export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}" | ||
37 | export ICP_BUILD_OUTPUT = "${D}" | ||
38 | export DEST_LIBDIR = "${libdir}" | ||
39 | export DEST_BINDIR = "${bindir}" | ||
40 | export QAT_KERNEL_VER = "${KERNEL_VERSION}" | ||
41 | export SAMPLE_BUILD_OUTPUT = "${D}" | ||
42 | export MODULE_DIR = "${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers" | ||
43 | |||
44 | inherit module | ||
45 | inherit update-rc.d | ||
46 | INITSCRIPT_NAME = "qat_service" | ||
47 | |||
48 | PARALLEL_MAKE = "" | ||
49 | |||
50 | #To get around the double slashes in paths in QAT makefiles | ||
51 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | ||
52 | |||
53 | EXTRA_OEMAKE_append = " CFLAGS+='-fgnu89-inline -fPIC'" | ||
54 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
55 | do_unpack2() { | ||
56 | cd ${S}/ | ||
57 | tar xzvf ${ICP_DRIVER_TYPE}.L.${PV}.tar.gz | ||
58 | } | ||
59 | |||
60 | addtask unpack2 after do_unpack before do_patch | ||
61 | |||
62 | do_compile () { | ||
63 | export LD="${CC} -Wl,--hash-style=gnu -nostartfiles -nodefaultlibs" | ||
64 | export MACHINE="${TARGET_ARCH}" | ||
65 | cd ${S}/quickassist | ||
66 | oe_runmake | ||
67 | |||
68 | cd ${SAMPLE_CODE_DIR} | ||
69 | touch ${SAMPLE_CODE_DIR}/performance/compression/calgary | ||
70 | touch ${SAMPLE_CODE_DIR}/performance/compression/canterbury | ||
71 | |||
72 | #build the whole sample code: fips, functional, performance | ||
73 | oe_runmake 'all' | ||
74 | oe_runmake 'fips_user_code' | ||
75 | } | ||
76 | |||
77 | do_install() { | ||
78 | export MACHINE="${TARGET_ARCH}" | ||
79 | cd ${S}/quickassist | ||
80 | oe_runmake install | ||
81 | |||
82 | cd ${SAMPLE_CODE_DIR} | ||
83 | oe_runmake install | ||
84 | |||
85 | install -d ${D}/etc/udev/rules.d \ | ||
86 | ${D}${includedir} \ | ||
87 | ${D}${includedir}/dc \ | ||
88 | ${D}${includedir}/lac \ | ||
89 | ${D}${sysconfdir}/dh895xcc \ | ||
90 | ${D}${base_libdir}/firmware | ||
91 | |||
92 | echo 'KERNEL=="icp_adf_ctl" MODE="0600"' > ${D}/etc/udev/rules.d/00-dh895xcc_qa.rules | ||
93 | echo 'KERNEL=="icp_dev[0-9]*" MODE="0600"' >> ${D}/etc/udev/rules.d/00-dh895xcc_qa.rules | ||
94 | echo 'KERNEL=="icp_dev_mem?" MODE="0600"' >> ${D}/etc/udev/rules.d/00-dh895xcc_qa.rules | ||
95 | |||
96 | install -m 640 ${S}/quickassist/include/*.h ${D}${includedir} | ||
97 | install -m 640 ${S}/quickassist/include/dc/*.h ${D}${includedir}/dc/ | ||
98 | install -m 640 ${S}/quickassist/include/lac/*.h ${D}${includedir}/lac/ | ||
99 | install -m 640 ${S}/quickassist/lookaside/access_layer/include/*.h ${D}${includedir} | ||
100 | |||
101 | install -m 0755 ${SAMPLE_CODE_DIR}/performance/compression/calgary ${D}${base_libdir}/firmware | ||
102 | install -m 0755 ${SAMPLE_CODE_DIR}/performance/compression/canterbury ${D}${base_libdir}/firmware | ||
103 | |||
104 | install -m 660 ${S}/quickassist/config/dh* ${D}${sysconfdir}/dh895xcc | ||
105 | } | ||
106 | |||
107 | PACKAGES += "${PN}-app" | ||
108 | |||
109 | FILES_${PN}-dev = "${includedir}" | ||
110 | |||
111 | FILES_${PN} += "\ | ||
112 | ${base_libdir}/firmware/ \ | ||
113 | ${sysconfdir}/ \ | ||
114 | ${sysconfdir}/udev/rules.d/ \ | ||
115 | ${sysconfdir}/init.d/ \ | ||
116 | ${libdir}/ \ | ||
117 | " | ||
118 | |||
119 | FILES_${PN}-dbg += "${sysconfdir}/init.d/.debug" | ||
120 | |||
121 | FILES_${PN}-app += "${bindir}/*" | ||
122 | |||
123 | EXCLUDE_FROM_WORLD_core2-32-intel-common = "1" | ||