diff options
Diffstat (limited to 'recipes-extended/qat/qat17_4.1.0-00022.bb')
-rw-r--r-- | recipes-extended/qat/qat17_4.1.0-00022.bb | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/recipes-extended/qat/qat17_4.1.0-00022.bb b/recipes-extended/qat/qat17_4.1.0-00022.bb new file mode 100644 index 0000000..d68007b --- /dev/null +++ b/recipes-extended/qat/qat17_4.1.0-00022.bb | |||
@@ -0,0 +1,152 @@ | |||
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 | DEPENDS += "boost udev zlib openssl" | ||
11 | PROVIDES += "virtual/qat" | ||
12 | |||
13 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
14 | |||
15 | SRC_URI="https://01.org/sites/default/files/downloads/intelr-quickassist-technology/qat1.7.l.${PV}.tar.gz;subdir=qat17 \ | ||
16 | file://qat16_2.3.0-34-qat-remove-local-path-from-makefile.patch \ | ||
17 | file://qat16_2.6.0-65-qat-override-CC-LD-AR-only-when-it-is-not-define.patch \ | ||
18 | file://qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch \ | ||
19 | file://qat17_0.8.0-37-qat-added-include-dir-path.patch \ | ||
20 | file://qat17_0.9.0-4-qat-add-install-target-and-add-folder.patch \ | ||
21 | file://qat17_4.1.0-00022-qat-use-static-lib-for-linking.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[md5sum] = "29ab942f9c151d3c0e025accfd971ee6" | ||
25 | SRC_URI[sha256sum] = "6caa72c65b9350f1708b2ed341e40ae3c6881953c501d0fbb7e2f8affaa5e025" | ||
26 | |||
27 | COMPATIBLE_MACHINE = "null" | ||
28 | COMPATIBLE_HOST_x86-x32 = 'null' | ||
29 | COMPATIBLE_HOST_libc-musl_class-target = 'null' | ||
30 | |||
31 | S = "${WORKDIR}/qat17" | ||
32 | ICP_TOOLS = "accelcomp" | ||
33 | SAMPLE_CODE_DIR = "${S}/quickassist/lookaside/access_layer/src/sample_code" | ||
34 | export INSTALL_MOD_PATH = "${D}" | ||
35 | export ICP_ROOT = "${S}" | ||
36 | export ICP_ENV_DIR = "${S}/quickassist/build_system/build_files/env_files" | ||
37 | export ICP_BUILDSYSTEM_PATH = "${S}/quickassist/build_system" | ||
38 | export ICP_TOOLS_TARGET = "${ICP_TOOLS}" | ||
39 | export FUNC_PATH = "${ICP_ROOT}/quickassist/lookaside/access_layer/src/sample_code/functional" | ||
40 | export INSTALL_FW_PATH = "${D}${base_libdir}/firmware" | ||
41 | export KERNEL_SOURCE_ROOT = "${STAGING_KERNEL_DIR}" | ||
42 | export ICP_BUILD_OUTPUT = "${D}" | ||
43 | export DEST_LIBDIR = "${libdir}" | ||
44 | export DEST_BINDIR = "${bindir}" | ||
45 | export QAT_KERNEL_VER = "${KERNEL_VERSION}" | ||
46 | export SAMPLE_BUILD_OUTPUT = "${D}" | ||
47 | export INSTALL_MOD_DIR = "${D}${base_libdir}/modules/${KERNEL_VERSION}" | ||
48 | export KERNEL_BUILDDIR = "${STAGING_KERNEL_BUILDDIR}" | ||
49 | export SC_EPOLL_DISABLED = "1" | ||
50 | export WITH_UPSTREAM = "1" | ||
51 | export WITH_CMDRV = "1" | ||
52 | export KERNEL_SOURCE_DIR = "${ICP_ROOT}/quickassist/qat/" | ||
53 | export ICP_NO_CLEAN = "1" | ||
54 | |||
55 | inherit module | ||
56 | inherit update-rc.d | ||
57 | INITSCRIPT_NAME = "qat_service" | ||
58 | |||
59 | PARALLEL_MAKE = "" | ||
60 | |||
61 | EXTRA_OEMAKE_append = " CFLAGS+='-fgnu89-inline -fPIC'" | ||
62 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
63 | |||
64 | do_compile () { | ||
65 | export LD="${LD} --hash-style=gnu" | ||
66 | export MACHINE="${TARGET_ARCH}" | ||
67 | |||
68 | cd ${S}/quickassist | ||
69 | oe_runmake | ||
70 | |||
71 | cd ${S}/quickassist/qat | ||
72 | oe_runmake 'clean' | ||
73 | oe_runmake 'modules_install' | ||
74 | |||
75 | cd ${S}/quickassist/utilities/adf_ctl | ||
76 | oe_runmake | ||
77 | |||
78 | cd ${S}/quickassist/utilities/libusdm_drv | ||
79 | oe_runmake | ||
80 | |||
81 | #build the whole sample code: per_user only | ||
82 | cd ${SAMPLE_CODE_DIR} | ||
83 | oe_runmake 'perf_user' | ||
84 | } | ||
85 | |||
86 | do_install() { | ||
87 | export MACHINE="${TARGET_ARCH}" | ||
88 | |||
89 | cd ${S}/quickassist | ||
90 | oe_runmake install | ||
91 | |||
92 | cd ${S}/quickassist/qat | ||
93 | oe_runmake modules_install | ||
94 | |||
95 | install -d ${D}${sysconfdir}/udev/rules.d | ||
96 | install -d ${D}${sbindir} | ||
97 | install -d ${D}${sysconfdir}/conf_files | ||
98 | install -d ${D}${prefix}/src/qat | ||
99 | |||
100 | echo 'KERNEL=="qat_adf_ctl" MODE="0660" GROUP="qat"' > ${D}/etc/udev/rules.d/00-qat.rules | ||
101 | echo 'KERNEL=="qat_dev_processes" MODE="0660" GROUP="qat"' >> ${D}/etc/udev/rules.d/00-qat.rules | ||
102 | echo 'KERNEL=="usdm_drv" MODE="0660" GROUP="qat"' >> ${D}/etc/udev/rules.d/00-qat.rules | ||
103 | echo 'KERNEL=="uio*" MODE="0660" GROUP="qat"' >> ${D}/etc/udev/rules.d/00-qat.rules | ||
104 | echo 'KERNEL=="hugepages" MODE="0660" GROUP="qat"' >> ${D}/etc/udev/rules.d/00-qat.rules | ||
105 | |||
106 | install -D -m 0755 ${S}/quickassist/lookaside/access_layer/src/build/linux_2.6/user_space/libqat_s.so ${D}${base_libdir} | ||
107 | install -D -m 0755 ${S}/quickassist/utilities/libusdm_drv/libusdm_drv_s.so ${D}${base_libdir} | ||
108 | install -D -m 0750 ${S}/quickassist/utilities/adf_ctl/adf_ctl ${D}${sbindir} | ||
109 | |||
110 | install -D -m 640 ${S}/quickassist/utilities/adf_ctl/conf_files/c3xxx_dev0.conf ${D}${sysconfdir} | ||
111 | install -D -m 640 ${S}/quickassist/utilities/adf_ctl/conf_files/*.conf ${D}${sysconfdir}/conf_files | ||
112 | install -D -m 640 ${S}/quickassist/utilities/adf_ctl/conf_files/*.conf.vm ${D}${sysconfdir}/conf_files | ||
113 | |||
114 | install -m 0755 ${S}/quickassist/qat/fw/qat_c3xxx.bin ${D}${base_libdir}/firmware | ||
115 | install -m 0755 ${S}/quickassist/qat/fw/qat_c3xxx_mmp.bin ${D}${base_libdir}/firmware | ||
116 | install -m 0755 ${S}/quickassist/qat/fw/qat_c62x.bin ${D}${base_libdir}/firmware | ||
117 | install -m 0755 ${S}/quickassist/qat/fw/qat_c62x_mmp.bin ${D}${base_libdir}/firmware | ||
118 | install -m 0755 ${S}/quickassist/qat/fw/qat_895xcc.bin ${D}${base_libdir}/firmware | ||
119 | install -m 0755 ${S}/quickassist/qat/fw/qat_895xcc_mmp.bin ${D}${base_libdir}/firmware | ||
120 | install -m 0755 ${S}/quickassist/qat/fw/qat_d15xx.bin ${D}${base_libdir}/firmware | ||
121 | install -m 0755 ${S}/quickassist/qat/fw/qat_d15xx_mmp.bin ${D}${base_libdir}/firmware | ||
122 | |||
123 | install -m 0755 ${S}/quickassist/lookaside/access_layer/src/sample_code/performance/compression/calgary ${D}${base_libdir}/firmware | ||
124 | install -m 0755 ${S}/quickassist/lookaside/access_layer/src/sample_code/performance/compression/calgary32 ${D}${base_libdir}/firmware | ||
125 | install -m 0755 ${S}/quickassist/lookaside/access_layer/src/sample_code/performance/compression/canterbury ${D}${base_libdir}/firmware | ||
126 | |||
127 | #install qat source | ||
128 | cp ${DL_DIR}/qat1.7.l.${PV}.tar.gz ${D}${prefix}/src/qat/ | ||
129 | } | ||
130 | |||
131 | PACKAGES += "${PN}-app ${PN}-src" | ||
132 | |||
133 | FILES_${PN}-dev = "${includedir}/ \ | ||
134 | " | ||
135 | |||
136 | FILES_${PN} += "\ | ||
137 | ${libdir}/ \ | ||
138 | ${base_libdir}/firmware \ | ||
139 | ${sysconfdir}/ \ | ||
140 | ${sbindir}/ \ | ||
141 | ${base_libdir}/*.so \ | ||
142 | " | ||
143 | |||
144 | FILES_${PN}-dbg += "${sysconfdir}/init.d/.debug/ \ | ||
145 | " | ||
146 | |||
147 | FILES_${PN}-app += "${bindir}/* \ | ||
148 | ${prefix}/qat \ | ||
149 | " | ||
150 | |||
151 | FILES_${PN}-src += "${prefix}/src/* \ | ||
152 | " | ||