summaryrefslogtreecommitdiff
path: root/com32/lua/src/syslinux.c
Commit message (Collapse)AuthorAgeFilesLines
* Added the native syslinux functions config_file(), ipappend_strs(), and ↵Hung-chi Lihn2012-09-221-0/+33
| | | | | | | | | | | | reboot() to Lua.c32. This allows the Lua script to query the config file name and the ipappend strings (pxelinux only), as well as to perform reboot (warm and cold) to the system. In Lua.c32, the extension will be used as the following: 1. syslinux.config_file() will return the config file string. 2. syslinux.ipappend_strs() will return a table of IPAPPEND strings with numerical indices. 3. syslinux.reboot() will perform cold reboot, while syslinux.reboot(1) will perform warm reboot. Signed-off-by: Hung-chi Lihn <hlihn@google.com> Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
* com32: Add device tree supportThierry Reding2012-06-291-2/+2
| | | | | | | | This commit adds support for passing a Flattened Device Tree (FDT) blob to the Linux kernel. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* com32/lua/src/syslinux.c: remove variables set but not usedH. Peter Anvin2011-03-161-6/+7
| | | | | | gcc 4.6 warns on variables set but not used, so remove them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lua: Making lua building with no gcc errorErwan Velu2011-02-061-11/+14
| | | | Simple patch to make gcc happy during build in -Wall -Werror
* lua: Add .syslinux.derivative() and .syslinux.version()Gert Hulselmans2010-07-071-1/+39
| | | | | | | Add .syslinux.derivative() and .syslinux.version(). Add an example script which shows how you can use .syslinux.derivative(). Signed-off-by: Gert Hulselmans <gerth@zytor.com>
* lua: remove obsolete header used for old sleep functionGert Hulselmans2010-07-061-1/+0
| | | | | | Remove obsolete header used for old sleep function. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
* lua: change syslinux.sleep() to seconds, syslinux.msleep() to msH. Peter Anvin2010-07-051-1/+10
| | | | | | | For consistency with just about everything else, make syslinux.sleep() count seconds, and syslinux.msleep() count milliseconds. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: add proper sleep()/msleep() functions and make Lua use themH. Peter Anvin2010-07-051-3/+4
| | | | | | | Add proper sleep() and msleep() functions, which among other things call syslinux_idle(), and make Lua use them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge remote branch 'marcel/luaext'H. Peter Anvin2010-07-051-11/+406
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge Marcel Ritter's work on the lua branch: The last time he wrote about the state of his lua branch: http://syslinux.zytor.com/archives/2009-October/013383.html The current state is: - VESA: - switching to vesa mode works - loading/displaying images works - display text works (s. com32/lua/test/vesa.lua) - PCI: - list PC devices + ID - get human-readable device name for device (s. com32/lua/test/pci.lua) - DMI: - get DMI info (BIOS, Hardware, etc). (s. com32/lua/test/dmi.lua) - syslinux: - loading files, kernel, initrd - start kernel, initrd, local boot ... just working on this, so no example lua file right now Most of the actual merging work was done by Gert Hulselmans <gerth@zytor.com>. Resolved Conflicts: com32/lib/sys/vesa/initvesa.c com32/lua/src/Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Loading of kernel and ramdisk worksMarcel Ritter2009-10-161-0/+120
| |
| * More debugging removedMarcel Ritter2009-10-151-0/+2
| |
| * Disabled debug outputMarcel Ritter2009-10-151-3/+4
| |
| * Added sleep()Marcel Ritter2009-10-091-39/+88
| | | | | | | | | | Added some comments Fixed cmdline parsing
| * Prepare for arg parsing supportMarcel Ritter2009-10-091-1/+229
| |
* | lua: add missing <syslinux/boot.h> to syslinux.cH. Peter Anvin2010-07-021-0/+1
|/ | | | | | Need header files for functions we invoke. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* COM32: lua - added simple syslinux_run_command functionMarcel Ritter2008-12-151-0/+29