aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/samples/Makefile1
-rw-r--r--com32/samples/localboot.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/com32/samples/Makefile b/com32/samples/Makefile
index 6d0815c5..5ac2aad3 100644
--- a/com32/samples/Makefile
+++ b/com32/samples/Makefile
@@ -41,6 +41,7 @@ LNXLIBS = ../libutil/libutil_lnx.a
.SUFFIXES: .lss .c .o .elf .c32 .lnx
all: hello.c32 cat.c32 resolv.c32 vesainfo.c32 serialinfo.c32 \
+ localboot.c32 \
fancyhello.c32 fancyhello.lnx \
keytest.c32 keytest.lnx \
diff --git a/com32/samples/localboot.c b/com32/samples/localboot.c
new file mode 100644
index 00000000..579c7b03
--- /dev/null
+++ b/com32/samples/localboot.c
@@ -0,0 +1,9 @@
+#include <syslinux/boot.h>
+#include <stdlib.h>
+
+int main(int argc, char *argv[])
+{
+ syslinux_local_boot(argc > 1 ? atoi(argv[1]) : 0);
+
+ return 0;
+}