From 9132641100b95641fed66bda974e422dbcbd6d07 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 3 Jun 2018 08:24:21 -0700 Subject: [PATCH] Add the pc86emu skeleton. --- plat/pc86/emu/README.md | 5 ++++- plat/pc86/emu/build.lua | 19 +++++++++++++++++++ plat/pc86/emu/main.c | 9 +++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 plat/pc86/emu/build.lua create mode 100644 plat/pc86/emu/main.c diff --git a/plat/pc86/emu/README.md b/plat/pc86/emu/README.md index 85ffd0507..d63cb0275 100644 --- a/plat/pc86/emu/README.md +++ b/plat/pc86/emu/README.md @@ -1 +1,4 @@ -The x86emu directory contains a copy of the xorg 8086 emulation library from the X server. It's distributable under the MIT/X11 license, and so is compatible with the ACK. \ No newline at end of file +The x86emu directory contains a copy of the xorg 8086 emulation library from +the X server. It's distributable under the MIT/X11 license, and so is +compatible with the ACK. + diff --git a/plat/pc86/emu/build.lua b/plat/pc86/emu/build.lua new file mode 100644 index 000000000..ee94bea47 --- /dev/null +++ b/plat/pc86/emu/build.lua @@ -0,0 +1,19 @@ +clibrary { + name = "x86emu", + vars = { + ["+cflags"] = {"-Iplat/pc86/emu/x86emu"} + }, + srcs = {"./x86emu/*.c"} +} + +cprogram { + name = "pc86emu", + srcs = {"./main.c"}, + vars = { + ["+cflags"] = {"-Iplat/pc86/emu/x86emu"} + }, + deps = { + "+x86emu" + } +} + diff --git a/plat/pc86/emu/main.c b/plat/pc86/emu/main.c new file mode 100644 index 000000000..70ec1d915 --- /dev/null +++ b/plat/pc86/emu/main.c @@ -0,0 +1,9 @@ +#include +#include +#include + +int main(int argc, const char* argv[]) +{ + return 1; +} + -- 2.34.1