summaryrefslogtreecommitdiff
path: root/com32/lua/src/syslinux.c
Commit message (Collapse)AuthorAgeFilesLines
* lua: return the modified object from the initramfs methodsFerenc Wágner2014-10-131-2/+4
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: initramfs: enable adding nonempty filesFerenc Wágner2014-10-131-4/+11
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: don't do a local boot when asked to final_cleanupFerenc Wágner2014-10-131-2/+1
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: do not leak initramfs data chunks on garbage collectionFerenc Wágner2014-10-131-0/+16
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: make initramfs structures full userdata objects with methodsFerenc Wágner2014-10-131-25/+43
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: unused optional arguments can goFerenc Wágner2014-10-121-10/+0
| | | | | | Not expecting them does not cause any problems, they are ignored by Lua anyway. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: make the file operations methodsFerenc Wágner2014-10-121-2/+7
| | | | | | This also enables manual unloading of files by callig f:__gc(). Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: garbage collect file objectsFerenc Wágner2014-10-121-0/+15
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: represent syslinux files as full userdataFerenc Wágner2014-10-121-21/+13
| | | | | | | | | Light userdata don't have individual metatables, thus they aren't suitable for type checking. Also, a200ad6d replaced relying on reused memory (from luaL_checkstring) with writing to uninitialized pointers; copy the filename instead into freshly allocated memory. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: Remove even more cruft from syslinux.cFerenc Wágner2014-10-121-44/+2
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: share the export macro (CPP only change)Ferenc Wágner2014-10-111-39/+39
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: add the IMAGE_TYPE table to the syslinux moduleFerenc Wágner2014-10-111-0/+13
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: make kernel and initrd progress output match in sl_boot_linuxFerenc Wágner2014-10-111-4/+4
| | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* lua: Remove additional old cruft from sl_boot_linux()syslinux-6.03-pre9H. Peter Anvin2014-03-131-4/+0
| | | | | | More obsolete cruft... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lua: Remove obsolete crap from sl_boot_linux()syslinux-6.03-pre8H. Peter Anvin2014-03-131-29/+0
| | | | | | sl_boot_linux() contained a bunch of random obsolete garbage. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* lua: In sl_initramfs_add_file(), actually use the real file nameH. Peter Anvin2014-03-131-3/+3
| | | | | | Instead of "/testfile1", actually use the real file name... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* lua: bind get_key() in the syslinux moduleFerenc Wágner2014-03-011-0/+49
|
* lua: reactivate the syslinux extension moduleFerenc Wágner2014-03-011-2/+2
| | | | | Under Lua 5.2 modules are not expected to set global variables to reduce namespace pollution. Explicit require() is preferred.
* 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