From: H. Peter Anvin Date: Fri, 21 Sep 2007 23:54:57 +0000 (-0700) Subject: localboot.c32: sample/test program for invoking syslinux_local_boot() X-Git-Tag: syslinux-3.52~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ac4d898c0dee05c6e2d00e4ecbf208dbd4915e8;p=platform%2Fupstream%2Fsyslinux.git localboot.c32: sample/test program for invoking syslinux_local_boot() Simple test program which simply invokes syslinux_local_boot(). --- diff --git a/com32/samples/Makefile b/com32/samples/Makefile index 6d0815c..5ac2aad 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 0000000..579c7b0 --- /dev/null +++ b/com32/samples/localboot.c @@ -0,0 +1,9 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + syslinux_local_boot(argc > 1 ? atoi(argv[1]) : 0); + + return 0; +}