From ba48db8275730fbc512c0872ae426970a09b5619 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 22 Sep 2022 14:03:07 +0200 Subject: add support for STM32F746G-DISCO device Tested with toolbox / simpleinit as userland. FDPIC/FLAT support both successfully tested. No LCD or Ethernet support. --- target/linux/patches/4.14.293/vdso2.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 target/linux/patches/4.14.293/vdso2.patch (limited to 'target/linux/patches/4.14.293/vdso2.patch') diff --git a/target/linux/patches/4.14.293/vdso2.patch b/target/linux/patches/4.14.293/vdso2.patch new file mode 100644 index 000000000..b6c32f31b --- /dev/null +++ b/target/linux/patches/4.14.293/vdso2.patch @@ -0,0 +1,27 @@ +diff -Nur linux-4.14.44.orig/arch/x86/entry/vdso/vdso2c.c linux-4.14.44/arch/x86/entry/vdso/vdso2c.c +--- linux-4.14.44.orig/arch/x86/entry/vdso/vdso2c.c 2018-05-25 16:18:02.000000000 +0200 ++++ linux-4.14.44/arch/x86/entry/vdso/vdso2c.c 2018-05-31 02:09:00.000000000 +0200 +@@ -64,7 +64,15 @@ + #include + + #include ++#ifdef __linux__ + #include ++#else ++typedef _Bool bool; ++enum { ++ false = 0, ++ true = 1 ++}; ++#endif + + const char *outfilename; + +@@ -86,6 +94,7 @@ + sym_hvclock_page, + }; + ++ + struct vdso_sym { + const char *name; + bool export; -- cgit v1.2.3