summaryrefslogtreecommitdiff
path: root/packages/linux-kernel/build-intel-qat.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-09-03 23:03:56 +0200
committerChristian Poessinger <christian@poessinger.com>2020-09-03 23:03:56 +0200
commitef44aa7a3551410605b967f666ccb632873fcfd2 (patch)
tree92d5bc6e09f3c2f9b7c8ccecfee21f03a0953569 /packages/linux-kernel/build-intel-qat.sh
parent68c5264a88756c2aa7cee00c37e0f74ffc02e6ea (diff)
downloadvyos-build-ef44aa7a3551410605b967f666ccb632873fcfd2.tar.gz
vyos-build-ef44aa7a3551410605b967f666ccb632873fcfd2.zip
Kernel: move to fpm build script
Diffstat (limited to 'packages/linux-kernel/build-intel-qat.sh')
-rwxr-xr-xpackages/linux-kernel/build-intel-qat.sh22
1 files changed, 6 insertions, 16 deletions
diff --git a/packages/linux-kernel/build-intel-qat.sh b/packages/linux-kernel/build-intel-qat.sh
index 3313abbe..bf431b04 100755
--- a/packages/linux-kernel/build-intel-qat.sh
+++ b/packages/linux-kernel/build-intel-qat.sh
@@ -74,25 +74,15 @@ do
chmod 644 ${DEBIAN_DIR}/lib/firmware/*
chmod 755 ${DEBIAN_DIR}/etc/init.d/* ${DEBIAN_DIR}/usr/local/bin/*
- mkdir -p $(dirname "${DEBIAN_CONTROL}")
- cat << EOF >${DEBIAN_CONTROL}
-Package: vyos-intel-${DRIVER_NAME}
-Version: ${DRIVER_VERSION}${DRIVER_VERSION_EXTRA}
-Section: kernel
-Priority: extra
-Architecture: ${DEBIAN_ARCH}
-Maintainer: VyOS Package Maintainers <maintainers@vyos.net>
-Description: Vendor based driver for Intel ${DRIVER_NAME}
-Depends: linux-image-${KERNEL_VERSION}${KERNEL_SUFFIX}
-EOF
-
+ # build Debian package
+ echo "I: Building Debian package vyos-intel-${DRIVER_NAME}"
# delete non required files which are also present in the kernel package
# und thus lead to duplicated files
find ${DEBIAN_DIR} -name "modules.*" | xargs rm -f
-
- # build Debian package
- echo "I: Building Debian package vyos-intel-${DRIVER_NAME}"
- fakeroot dpkg-deb --build ${DEBIAN_DIR}
+ cd ${CWD}
+ fpm --input-type dir --output-type deb --name vyos-intel-${DRIVER_NAME} \
+ --version ${DRIVER_VERSION}${DRIVER_VERSION_EXTRA} --deb-compression gz \
+ -C ${DEBIAN_DIR} --after-install ${CWD}/vyos-intel-qat.postinst
echo "I: Cleanup ${DRIVER_NAME} source"
cd ${CWD}