diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-05-08 22:36:19 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-05-08 22:42:35 +0200 |
| commit | 2a26e18a7cb2673ee56d1183426ae02752ff4f95 (patch) | |
| tree | cd214587cd5f5413e20dcd0e29b6c339a76ad41a /scripts | |
| parent | fbd704281e46668387d2201ba696091b97343a3a (diff) | |
| download | vyos-build-2a26e18a7cb2673ee56d1183426ae02752ff4f95.tar.gz vyos-build-2a26e18a7cb2673ee56d1183426ae02752ff4f95.zip | |
Kernel: T6847: cleanup Intel QAT driver source after build
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/package-build/linux-kernel/build-intel-qat.sh | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/scripts/package-build/linux-kernel/build-intel-qat.sh b/scripts/package-build/linux-kernel/build-intel-qat.sh index e393a4bc..ba4dcefb 100755 --- a/scripts/package-build/linux-kernel/build-intel-qat.sh +++ b/scripts/package-build/linux-kernel/build-intel-qat.sh @@ -110,17 +110,17 @@ fpm --input-type dir --output-type deb --name vyos-intel-${DRIVER_NAME} \ --depends linux-image-${KERNEL_VERSION}${KERNEL_SUFFIX} \ --license "GPL2" -C ${DEBIAN_DIR} --after-install ${DEBIAN_POSTINST} -# echo "I: Cleanup ${DRIVER_NAME} source" -# cd ${CWD} -# if [ -e ${DRIVER_FILE} ]; then -# rm -f ${DRIVER_FILE} -# fi -# if [ -d ${DRIVER_DIR} ]; then -# rm -rf ${DRIVER_DIR} -# fi -# if [ -d ${DEBIAN_DIR} ]; then -# rm -rf ${DEBIAN_DIR} -# fi -# if [ -f ${DEBIAN_POSTINST} ]; then -# rm -f ${DEBIAN_POSTINST} -# fi +echo "I: Cleanup ${DRIVER_NAME} source" +cd ${CWD} +if [ -e ${DRIVER_FILE} ]; then + rm -f ${DRIVER_FILE} +fi +if [ -d ${DRIVER_DIR} ]; then + rm -rf ${DRIVER_DIR} +fi +if [ -d ${DEBIAN_DIR} ]; then + rm -rf ${DEBIAN_DIR} +fi +if [ -f ${DEBIAN_POSTINST} ]; then + rm -f ${DEBIAN_POSTINST} +fi |
