blob: bceb96e122f8851a362da16412d83a4f2779e5f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From: Benjamin ROBIN <dev@benjarobin.fr>
Date: Sun, 12 May 2024 17:45:43 +0200
Subject: [PATCH 2/3] Fix conftest to use a short wchar_t
Fix build error about ``const efi_char16_t *v = L"SecureBoot"``
when including include/linux/efi.h
---
conftest.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/conftest.sh b/conftest.sh
index 6e6da83..678b79c 100755
--- a/conftest.sh
+++ b/conftest.sh
@@ -101,7 +101,7 @@ test_header_presence() {
build_cflags() {
BASE_CFLAGS="-O2 -D__KERNEL__ \
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM \
+-nostdinc -isystem $ISYSTEM -fshort-wchar \
-Wno-implicit-function-declaration -Wno-strict-prototypes"
if [ "$OUTPUT" != "$SOURCES" ]; then
--
2.45.0
|