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; +} +