@@ -20,6 +20,8 @@ config LKL
select DMA_DIRECT_OPS
select PHYS_ADDR_T_64BIT if 64BIT
select 64BIT if "$(OUTPUT_FORMAT)" = "elf64-x86-64"
+ select 64BIT if "$(OUTPUT_FORMAT)" = "pe-x86-64"
+ select HAVE_UNDERSCORE_SYMBOL_PREFIX if "$(OUTPUT_FORMAT)" = "pe-i386"
select 64BIT if "$(OUTPUT_FORMAT)" = "elf64-x86-64-freebsd"
select NET
select MULTIUSER
new file mode 100644
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* empty file to avoid #include_next<stdarg.h> error */
@@ -154,7 +154,11 @@
* gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-format-function-attribute
* clang: https://clang.llvm.org/docs/AttributeReference.html#format
*/
+#ifdef __MINGW32__
+#define __printf(a, b) __attribute__((__format__(gnu_printf, a, b)))
+#else
#define __printf(a, b) __attribute__((__format__(printf, a, b)))
+#endif
#define __scanf(a, b) __attribute__((__format__(scanf, a, b)))
/*
@@ -2,7 +2,9 @@
# Generated files
#
gen_crc32table
+gen_crc32table.exe
gen_crc64table
+gen_crc64table.exe
crc32table.h
crc64table.h
oid_registry_data.c
@@ -1,4 +1,5 @@
mktables
+mktables.exe
altivec*.c
int*.c
tables.c
@@ -4,8 +4,10 @@
bin2c
conmakehash
kallsyms
+kallsyms.exe
pnmtologo
unifdef
+unifdef.exe
recordmcount
sortextable
asn1_compiler
@@ -1 +1,2 @@
fixdep
+fixdep.exe
@@ -8,6 +8,7 @@
# configuration programs
#
conf
+conf.exe
mconf
nconf
qconf
@@ -209,6 +209,7 @@ fi;
# final build of init/
${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init
+if [ -e scripts/mod/modpost ]; then
#link vmlinux.o
info LD vmlinux.o
modpost_link vmlinux.o
@@ -218,6 +219,7 @@ ${MAKE} -f "${srctree}/scripts/Makefile.modpost" MODPOST_VMLINUX=1
info MODINFO modules.builtin.modinfo
${OBJCOPY} -j .modinfo -O binary vmlinux.o modules.builtin.modinfo
+fi
kallsymso=""
kallsyms_vmlinux=""
@@ -1,4 +1,5 @@
elfconfig.h
mk_elfconfig
modpost
+modpost.exe
devicetable-offsets.h