eclass/coreos-kernel: add -Werror=misleading-indentation

To ensure that tested patches are correctly indented.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
Mathieu Tortuyaux 2024-09-05 14:48:13 +02:00
parent 9905d72e59
commit 565daaba2c
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8

View File

@ -113,9 +113,9 @@ kernel_target() {
}
kmake() {
local kernel_arch=$(tc-arch-kernel) kernel_cflags=
local kernel_arch=$(tc-arch-kernel) kernel_cflags="-Werror=misleading-indentation"
if gcc-specs-pie; then
kernel_cflags="-nopie -fstack-check=no"
kernel_cflags="-nopie -fstack-check=no ${kernel_cflags}"
fi
emake "--directory=${S}/source" \
ARCH="${kernel_arch}" \