Apply cflags to linux perf

This commit is contained in:
Antoine Martin 2025-01-20 22:18:52 -05:00
parent b7fd88854c
commit 2b2132432d
Signed by: forge
GPG key ID: D62A472A4AA7D541

2
debian/rules vendored
View file

@ -59,7 +59,6 @@ override_dh_auto_build:
# Kernel # Kernel
dh_auto_build -D ${KERNEL_SRC} -- \ dh_auto_build -D ${KERNEL_SRC} -- \
CC="${PVE_KERNEL_CC}" \ CC="${PVE_KERNEL_CC}" \
KCFLAGS="${PVE_KERNEL_CFLAGS}" \
EXTRAVERSION="${EXTRAVERSION}" \ EXTRAVERSION="${EXTRAVERSION}" \
LOCALVERSION="${LOCALVERSION}" \ LOCALVERSION="${LOCALVERSION}" \
KBUILD_BUILD_VERSION_TIMESTAMP="${PKG_DISTRIBUTOR} ${DEB_VERSION} (${PKG_DATE_UTC_ISO})" KBUILD_BUILD_VERSION_TIMESTAMP="${PKG_DISTRIBUTOR} ${DEB_VERSION} (${PKG_DATE_UTC_ISO})"
@ -133,6 +132,7 @@ debian/${PVE_KERNEL_PKG}.%: debian/templates/pve-kernel.%.in
NO_LIBPYTHON=1 \ NO_LIBPYTHON=1 \
NO_LIBPERL=1 \ NO_LIBPERL=1 \
NO_LIBCRYPTO=1 \ NO_LIBCRYPTO=1 \
CFLAGS="${PVE_KERNEL_CFLAGS}" \
PYTHON=python3 PYTHON=python3
# echo "checking GPL-2 only perf binary for library linkage with incompatible licenses.." # echo "checking GPL-2 only perf binary for library linkage with incompatible licenses.."
# ! ldd ${KERNEL_SRC}/tools/perf/perf | grep -q -E '\blibbfd' # ! ldd ${KERNEL_SRC}/tools/perf/perf | grep -q -E '\blibbfd'