Merge pull request #1208 from rafalste/debug_packages

packaging: Fix debug package build
This commit is contained in:
Robert Baldyga
2022-09-06 11:45:23 +02:00
committed by GitHub
7 changed files with 56 additions and 25 deletions

View File

@@ -4,8 +4,8 @@ BUILT_MODULE_NAME[0]="cas_disk"
BUILT_MODULE_NAME[1]="cas_cache"
BUILT_MODULE_LOCATION[0]="modules/cas_disk/"
BUILT_MODULE_LOCATION[1]="modules/cas_cache/"
DEST_MODULE_LOCATION[0]="/extra/block/opencas"
DEST_MODULE_LOCATION[1]="/extra/block/opencas"
DEST_MODULE_LOCATION[0]="/<CAS_MODULES_DIR>"
DEST_MODULE_LOCATION[1]="/<CAS_MODULES_DIR>"
PRE_BUILD="./configure"
MAKE[0]="make -j -C modules/ KERNEL_VERSION=$kernelver"
AUTOINSTALL=yes

View File

@@ -4,6 +4,12 @@
-- <PACKAGE_MAINTAINER> <PACKAGE_DATE>
open-cas-linux (22.03.0.0683-1) trusty; urgency=medium
* Fix debug packages creation
-- Rafal Stefanowski <rafal.stefanowski@intel.com> Wed, 18 May 2022 12:03:22 +0100
open-cas-linux (20.03.3.0303-1) trusty; urgency=medium
* Update dependencies

View File

@@ -10,26 +10,29 @@
%:
dh $@ --with dkms
override_dh_auto_configure :
override_dh_auto_configure:
override_dh_auto_build :
override_dh_auto_build:
(cd tools/; ./cas_version_gen build)
make -C casadm
<MAKE_BUILD>
override_dh_auto_install :
override_dh_auto_install:
(cd casadm; make install_files DESTDIR="$(shell pwd)/debian/tmp")
(cd utils; make install_files DESTDIR="$(shell pwd)/debian/tmp")
# clean and generate version again before installing sources for DKMS
make distclean
(cd tools/; ./cas_version_gen)
override_dh_dkms :
override_dh_dkms:
dh_dkms -V $(DEB_VERSION_UPSTREAM)
override_dh_installsystemd :
override_dh_installsystemd:
dh_installsystemd --no-start
override_dh_missing :
override_dh_strip:
<DEBUG_PACKAGE>
override_dh_gencontrol :
override_dh_missing:
override_dh_gencontrol:
dh_gencontrol -- -Vkver="$(shell uname -r)"