QAT:Integrate user space packages QATzip

Intel 4th generation Xeon Scalable Processor (Sapphire Rapids) support
has been introduced for the platform. In order to leverage the
integrated QAT device of the SP-MCC SKUs, QAT user space packages
QATzip need be integrated.

QATzip provides extended accelerated compression and decompression
services by offloading the actual compression and decompression
request(s) to the Intel® Chipset Series. Intel QATzip project
repository link is
	https://github.com/intel/QATzip

Test plan:
	- PASS: build test
	- PASS: qzip -O 7z FILE1 FILE2 FILE3... -o result.7z
	- PASS: qzip -d result.7z
	- PASS: qzip -k $your_input_file  -O gzipext -A deflate

Story: 2010796
Task: 48568

Change-Id: I59e62d81e40b8d062bf780c681a38bed79fb520e
Signed-off-by: Peng Zhang <Peng.Zhang2@windriver.com>
This commit is contained in:
Peng Zhang 2023-09-14 23:41:04 +08:00
parent 1d2b5fc39a
commit 19252c45ff
8 changed files with 112 additions and 0 deletions

View File

@ -112,3 +112,4 @@ srptools
#mstflint
mstflint
qatzip

View File

@ -20,3 +20,4 @@ userspace/mellanox/rdma-core
userspace/mellanox/mstflint
userspace/mellanox/mlnx-tools
userspace/initramfs-trigger
userspace/qat/qatzip

View File

@ -0,0 +1,5 @@
qatzip (1.1.2-1) unstable; urgency=medium
* Initial release
-- Peng Zhang2 <peng.zhang2@windriver.com> Wed, 24 May 2023 07:42:06 +0000

View File

@ -0,0 +1,13 @@
source: qatzip
Section: net
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13), autotools-dev, pkg-config, libudev-dev, yasm, libssl-dev, libz-dev, pciutils, libboost-dev, openssl, libboost-regex-dev, nasm, qat2.0.l-common, liblz4-dev
Standards-Version: 4.5.2
Rules-Requires-Root: no
package: qatzip
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: This package provides extended accelerated compression and decompression services by offloading the actual compression and decompression request(s) to the Intel® Chipset Series
This package provides extended accelerated compression and decompression services by offloading the actual compression and decompression request(s) to the Intel® Chipset Series

View File

@ -0,0 +1,13 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name:QATzip
Upstream-Contact: Intel Corporation
Source: https://github.com/intel/QATzip/archive/refs/tags/v1.1.2.tar.gz
Files: *
Copyright: (C) Intel Corporation 2023
License:
The Licensing of the files within this project is split as follows:
Intel® Quickassist Technology (QAT) QATzip - BSD License. Please see the
LICENSE file contained in the top level folder.
Example Intel® Quickassist Technology Driver Configuration Files contained
within the folder hierarchy config_file - Dual BSD/GPLv2 License.

View File

@ -0,0 +1,66 @@
#!/usr/bin/make -f
#
# Copyright (c) 2022-2023 Wind River Systems, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
%:
dh $@
export DEB_BUILD_OPTIONS=noddebs
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
pkg_name=qatzip
_bindir=/usr/bin
_incdir=/usr/include
_libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
_pkgconfigdir=/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
_sbindir=usr/sbin
_sharedir=/usr/share/man/man1
destdir=debian/tmp
export ICP_ROOT=/usr/src/qat/
override_dh_auto_configure:
dh_auto_configure -- --with-ICP_ROOT=$(ICP_ROOT)
override_dh_auto_install:
mkdir -p $(destdir)
make install DESTDIR=$(CURDIR)/$(destdir)
dh_installdirs -p$(pkg_name) $(_libdir)
dh_install -p$(pkg_name) $(destdir)/$(_libdir)/* $(_libdir)/
dh_installdirs -p$(pkg_name) $(_pkgconfigdir)
dh_install -p$(pkg_name) $(destdir)/$(_pkgconfigdir)/* $(_pkgconfigdir)/
dh_installdirs -p$(pkg_name) $(_incdir)
dh_install -p$(pkg_name) $(destdir)/$(_incdir)/* $(_incdir)/
dh_installdirs -p$(pkg_name) $(_mandir)
dh_install -p$(pkg_name) $(destdir)/$(_mandir)/* $(_mandir)/
dh_installdirs -p$(pkg_name) $(_bindir)
dh_install -p$(pkg_name) $(destdir)/$(_bindir)/* $(_bindir)/
override_dh_auto_test:
true

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,12 @@
---
debver: 1.1.2
debname: qatzip
dl_path:
name: v1.1.2.tar.gz
url: https://github.com/intel/QATzip/archive/refs/tags/v1.1.2.tar.gz
sha256sum: 31419fa4b42d217b3e55a70a34545582cbf401a4f4d44738d21b4a3944b1e1ef
revision:
dist: $STX_DIST
GITREVCOUNT:
BASE_SRCREV: 3a55c2449120d1682351c4b9af671768ba3dae51
SRC_DIR: ${MY_REPO}/stx/kernel/userspace/qat/qatzip