From f0ec4e696ceb4b1e2c9b80daa5599431e6f9811c Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 19 Aug 2018 10:26:18 +0000 Subject: [PATCH] ci: fix kernel headers version diagnostics * ci/run-build-and-tests.sh: Honor $CPPFLAGS when printing kernel headers version. --- ci/run-build-and-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh index c3c382e9..3699ab09 100755 --- a/ci/run-build-and-tests.sh +++ b/ci/run-build-and-tests.sh @@ -33,6 +33,7 @@ case "${STACKTRACE-}" in ;; esac +CPPFLAGS= case "$KHEADERS" in */*) CPPFLAGS='-isystem /opt/kernel/include' @@ -62,7 +63,7 @@ $CC -print-multi-lib ||: make --version |head -1 autoconf --version |head -1 automake --version |head -1 -kver="$(printf '%s\n%s\n' '#include ' 'LINUX_VERSION_CODE' | $CC -E -P -)" +kver="$(printf '%s\n%s\n' '#include ' 'LINUX_VERSION_CODE' | $CC $CPPFLAGS -E -P -)" printf 'kernel-headers %s.%s.%s\n' $(($kver/65536)) $(($kver/256%256)) $(($kver%256)) echo 'END OF BUILD ENVIRONMENT INFORMATION' -- 2.50.0