linux-image-dbg: Include debugging symbols for VDSOs
This commit is contained in:
parent
1b7e85a275
commit
9a6aa4816a
|
@ -25,6 +25,7 @@ class Gencontrol(Base):
|
|||
'build': {
|
||||
'debug-info': config.SchemaItemBoolean(),
|
||||
'modules': config.SchemaItemBoolean(),
|
||||
'vdso': config.SchemaItemBoolean(),
|
||||
},
|
||||
'description': {
|
||||
'parts': config.SchemaItemList(),
|
||||
|
@ -369,6 +370,9 @@ class Gencontrol(Base):
|
|||
if extra.get('headers_arch_depends'):
|
||||
extra['headers_arch_depends'].append('%s (= ${binary:Version})' % packages_own[-1]['Package'])
|
||||
|
||||
if config_entry_build.get('vdso', False):
|
||||
makeflags['VDSO'] = True
|
||||
|
||||
build_debug = config_entry_build.get('debug-info')
|
||||
|
||||
if os.getenv('DEBIAN_KERNEL_DISABLE_DEBUG'):
|
||||
|
|
|
@ -9,6 +9,7 @@ linux (4.3.3-6) UNRELEASED; urgency=medium
|
|||
(Closes: #810472)
|
||||
* gpio: Enable GPIO_SYSFS wherever GPIOLIB is enabled (Closes: #810085)
|
||||
* [armhf] udeb: Include usbhid in input-modules (Closes: #809521)
|
||||
* linux-image-dbg: Include debugging symbols for VDSOs
|
||||
|
||||
-- Ben Hutchings <ben@decadent.org.uk> Fri, 08 Jan 2016 12:08:13 +0000
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ kernel-arch: x86
|
|||
[build]
|
||||
debug-info: true
|
||||
image-file: arch/x86/boot/bzImage
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
bootloaders: grub-pc grub-efi extlinux
|
||||
|
|
|
@ -6,6 +6,7 @@ featuresets:
|
|||
[build]
|
||||
debug-info: true
|
||||
image-file: arch/arm64/boot/Image
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
install-stem: vmlinuz
|
||||
|
|
|
@ -6,6 +6,7 @@ kernel-arch: arm
|
|||
|
||||
[build]
|
||||
image-file: arch/arm/boot/zImage
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
suggests: fdutils
|
||||
|
|
|
@ -7,6 +7,7 @@ kernel-arch: x86
|
|||
|
||||
[build]
|
||||
image-file: arch/x86/boot/bzImage
|
||||
vdso: true
|
||||
|
||||
[description]
|
||||
part-long-pae: This kernel requires PAE (Physical Address Extension).
|
||||
|
|
|
@ -7,6 +7,7 @@ kernel-arch: powerpc
|
|||
|
||||
[build]
|
||||
image-file: vmlinux
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
configs:
|
||||
|
|
|
@ -5,6 +5,7 @@ kernel-arch: powerpc
|
|||
|
||||
[build]
|
||||
image-file: vmlinux
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
suggests: mkvmlinuz
|
||||
|
|
|
@ -5,6 +5,7 @@ kernel-arch: powerpc
|
|||
|
||||
[build]
|
||||
image-file: vmlinux
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
configs:
|
||||
|
|
|
@ -5,6 +5,7 @@ kernel-arch: powerpc
|
|||
|
||||
[build]
|
||||
image-file: vmlinux
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
configs:
|
||||
|
|
|
@ -5,6 +5,7 @@ kernel-arch: s390
|
|||
|
||||
[build]
|
||||
image-file: arch/s390/boot/image
|
||||
vdso: true
|
||||
|
||||
[image]
|
||||
bootloaders: s390-tools
|
||||
|
|
|
@ -429,6 +429,17 @@ ifeq ($(MODULES),True)
|
|||
find $(DEBUG_DIR)/lib/modules/$(REAL_VERSION)/ -mindepth 1 -maxdepth 1 \! -name kernel -exec rm {} \+
|
||||
rm $(DEBUG_DIR)/lib/firmware -rf
|
||||
endif
|
||||
ifeq ($(VDSO),True)
|
||||
+$(MAKE_CLEAN) -C $(DIR) vdso_install INSTALL_MOD_PATH='$(CURDIR)'/$(DEBUG_DIR)
|
||||
# Fix .build-id links
|
||||
find $(DEBUG_DIR)/lib/modules/$(REAL_VERSION)/vdso/.build-id -name '*.debug' | while read link; do \
|
||||
rel_path="$${link#$(DEBUG_DIR)/lib/modules/$(REAL_VERSION)/vdso/.build-id/}" && \
|
||||
mkdir -p "$(DEBUG_DIR)/.build-id/$$(dirname "$$rel_path")" && \
|
||||
ln -s -r -L "$$link" "$(DEBUG_DIR)/.build-id/$$rel_path" || \
|
||||
exit; \
|
||||
done
|
||||
rm -r $(DEBUG_DIR)/lib/modules/$(REAL_VERSION)/vdso/.build-id
|
||||
endif
|
||||
# Add symlinks to vmlinux from the locations expected by kdump-tools,
|
||||
# systemtap and others
|
||||
ln -s boot/vmlinux-$(REAL_VERSION) $(DEBUG_DIR)/
|
||||
|
|
Loading…
Reference in New Issue