packaging: Fix debug package build

For debug symbols packages to build properly, we need to
instruct the compiler to produce debugging information
during the compilation process by adding a proper flag.
Additionally there is no point to create packages with
debug info in normal build, because it may crash the
package creation process if no debug info is found.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski
2022-05-18 15:15:53 +02:00
parent 8938310b61
commit 63f1c162b6
6 changed files with 45 additions and 17 deletions

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)"