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

@@ -1,5 +1,5 @@
#
# Copyright(c) 2012-2021 Intel Corporation
# Copyright(c) 2012-2022 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -30,13 +30,13 @@ archives:
@tools/pckgen $(PWD) tar zip
rpm:
@tools/pckgen $(PWD) rpm
@tools/pckgen $(PWD) rpm --debug
srpm:
@tools/pckgen $(PWD) srpm
deb:
@tools/pckgen $(PWD) deb
@tools/pckgen $(PWD) deb --debug
dsc:
@tools/pckgen $(PWD) dsc