Include objtool in header package

This change updates the build script to include objtool in the header
package, which is necessary when building some out-of-tree modules (such as
the NVIDIA driver)
This commit is contained in:
Fabian Mastenbroek 2021-11-21 13:27:00 +01:00
parent 35badf1804
commit c2ad95159b
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
CONFIG_DEBUG_INFO=n
CONFIG_DEBUG_INFO=n # PVE strips debug info afterwards
CONFIG_INTEL_MEI_WDT=m
CONFIG_SND_PCM_OSS=n
CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
@ -12,6 +12,7 @@ CONFIG_JFS_FS=m
CONFIG_HFS_FS=m
CONFIG_HFSPLUS_FS=m
CONFIG_CIFS_SMB_DIRECT=y
CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_NETFILTER=y
CONFIG_BLK_DEV_SD=y

3
debian/rules vendored
View file

@ -187,7 +187,8 @@ debian/${PVE_HEADER_PKG}.%: debian/templates/pve-headers.%.in
find arch/${KERNEL_BUILD_ARCH} -maxdepth 1 -name Makefile\*; \
find arch/${KERNEL_BUILD_ARCH} -name module.lds -o -name Kbuild.platforms -o -name Platform; \
find $$(find arch/${KERNEL_BUILD_ARCH} -name include -o -name scripts -type d) -type f; \
find arch/${KERNEL_BUILD_ARCH}/include Module.symvers include scripts -type f \
find arch/${KERNEL_BUILD_ARCH}/include Module.symvers include scripts -type f; \
find tools/ -name 'objtool' -type f \
) | rsync -avq --files-from=- ${KERNEL_SRC} debian/${PVE_HEADER_PKG}/usr/src/linux-headers-${KVNAME}
mkdir -p debian/${PVE_HEADER_PKG}/lib/modules/${KVNAME}
ln -sf /usr/src/linux-headers-${KVNAME} debian/${PVE_HEADER_PKG}/lib/modules/${KVNAME}/build