aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * lua: Remove even more cruft from syslinux.cFerenc Wágner2014-10-121-44/+2
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: condense the PCI exampleFerenc Wágner2014-10-111-29/+6
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: remove printf from loadfile exampleFerenc Wágner2014-10-111-10/+3
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: loadfile() is not TFTP-specificFerenc Wágner2014-10-111-1/+1
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * libansi.h: depends on stdbool.h and stdio.hFerenc Wágner2014-10-111-0/+3
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: remove overall indentation and some verbose cruft from the examplesFerenc Wágner2014-10-111-104/+99
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: bring documentation up to dateFerenc Wágner2014-10-111-31/+42
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: vesa: delete stray would-be-debug outputFerenc Wágner2014-10-111-2/+0
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: add new bindings to syslinux.ascFerenc Wágner2014-10-111-1/+21
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: do not reference removed exampleFerenc Wágner2014-10-111-1/+0
| | | | | | | | 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>
* | txt/syslinux.txt: --onceAdy2015-01-051-1/+1
| | | | | | | | | | | | remove mention of the deprecated "-o" option Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | txt/syslinux.txt: updatesAdy2015-01-051-10/+12
| | | | | | | | | | | | | | | | | | | | Correct typos. Improve format for asciidoc-to-manpage conversion. Wrap text. Correct info. Help phase-out deprecated and/or conflicting options. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | check-gnu-efi.sh: print the output of build-gnu-efi.shRobert Yang2015-01-051-1/+1
| | | | | | | | | | | | | | | | | | The build would be failed and exit if build-gnu-efi.sh is failed, so we'd better not suppress the output of build-gnu-efi.sh, which is good for debugging. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | efi: prevent git command in non-git tree #2Gene Cumm2015-01-051-1/+3
| | | | | | | | | | | | efi/clean-gnu-efi.sh presumes it's in a git repo. Test first. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | efi: prevent git command in non-git treeErwan Velu2015-01-051-1/+3
| | | | | | | | | | | | efi/build-gnu-efi.sh presumes it's in a git repo. Test first. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | txt/syslinux.cfg.txt: Fix SYSAPPEND FSUUIDGene Cumm2015-01-051-4/+6
| | | | | | | | | | | | Reflow for proper AsciiDoc formatting. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | com32: Use z size specifier for printf-ing size_t variableMartin Str|mberg2015-01-056-8/+8
| | | | | | | | | | | | | | | | | | Use the z size specifier to printf-ing size_t variables to get rid of gcc warning format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | SYSAPPEND: Fix space strippingDany St-Amant2015-01-053-3/+3
| | | | | | | | | | | | | | | | The description of SYSAPPEND for the DMI information states that the spaces are replaced by underscores, but this replacement does not occur in 6.03. Signed-off-by: Dany St-Amant <dany.ephemeral.2014@icloud.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | build: sort sources to build in a more deterministic wayPhilippe Coval2015-01-0515-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has been observed that binaries contents are depending on the order of linked objects. This order is caused by GNU make's wildcard function and the position of sources on filesystem. This change tries to prevent this kind of randomness. Also consider building using -j1 flag to make it even more reproductible. Change-Id: Ie8eee7f336e6f1fa2863c4150d967afd15519f1d Bug: http://bugzilla.syslinux.org/show_bug.cgi?id=57#related Signed-off-by: Philippe Coval <philippe.coval at open.eurogiciel.org>
* | com32: change '%llx' to use PRIx64Martin Str|mberg2015-01-056-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ Use <inttypes.h> PRIx64 instead of llx to get rid of gcc warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | com32: parallel depsGene Cumm2015-01-051-4/+2
| | | | | | | | | | | | Resort and collapse the list; add libutil to dep lib Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | gpllib: fix parallel building issueChong Lu2015-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From: Chong Lu <Chong.Lu at windriver.com> There might be an error when parallel build: [snip] cp: cannot create directory `tmp/sysroots/x86_64-linux/usr/share/ syslinux/com32/include/gplinclude': No such file or directory make[4]: *** [install] Error 1 make[3]: *** [gpllib] Error 2 [snip] This is a potential issue. In ${S}/com32/gpllib/Makefile file, install target wants to copy $(SRC)/../gplinclude to $(INSTALLROOT)$(COM32DIR)/include/ directory, but in ${S}/com32/lib/Makefile file, the install target will remove $(INSTALLROOT)$(COM32DIR)/include directory. We need to do com32/lib first. The patch make com32/gpllib depends on com32/lib to fix this issue. Upstream-Status: Pending Signed-off-by: Chong Lu <Chong.Lu at windriver.com> Signed-off-by: Robert Yang <liezhi.yang at windriver.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | libupload: fix parallel build issueRobert Yang2015-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed: cp -r syslinux-6.01/com32/libupload/*.h image/usr/share/syslinux/com32/include/ [snip] rm -rf image/usr/share/syslinux/com32/include [snip] cp: cannot create regular file `image/usr/share/syslinux/com32/include/serial.h': No such file or directory The cp is happened in the "libupload" dir, while "rm -fr" is happend in "lib" dir, let "libupload" depend "lib" will fix the problem. Signed-off-by: Robert Yang <liezhi.yang at windriver.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | doc/syslinux.txt, txt/syslinux.cfg.txt: Adjust bit valuesGene Cumm2015-01-052-13/+18
| | | | | | | | | | | | Accidentally misdocumented. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | doc/syslinux.txt: SYSAPPEND 0x20000 FSUUIDGene Cumm2015-01-051-0/+5
| | | | | | | | | | | | Document the change introduced in 386b59e1 and extended in 7c5efd0 Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | btrfs: Suffix 64b macroMartinS2015-01-051-1/+1
| | | | | | | | | | | | | | | | gcc complains about the size of the constant of BTRFS_MAGIC_N. It is a 64bit value, so it needs the ULL suffix. Signed-off-by: MartinS <ams@luminous.ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | version: bump to 6.04/2015Gene Cumm2015-01-051-1/+1
|/ | | | | | Begin 6.04 in 2015. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* NEWS: Update for 6.03 releasesyslinux-6.03H. Peter Anvin2014-10-061-0/+75
| | | | | | Thanks to Ady <ady-sf@hotmail.com> for most of this writeup. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* define _DEFAULT_SOURCE for glibc-2.20Chanho Park2014-09-293-0/+6
| | | | | | | | | | | | | _BSD_SOURCE was deprecated in favour of _DEFAULT_SOURCE since glibc 2.20[1]. To avoid build warning on glibc2.20, _DEFAULT_SOURCE should also be defined. [1]: https://sourceware.org/glibc/wiki/Release/2.20 Signed-off-by: Chanho Park <chanho61.park@samsung.com> _BSD_SOURCE was fist used at 1769d57c94d7a965168b72b6fd8d48251710b452 Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* chain/partiter: correct gpt header checkssyslinux-6.03-pre20Michal Soltys2014-08-261-4/+8
| | | | | | | In gpt header, lba_cur and lba_alt alternate depending on whether we read primary or backup copy. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain: implement strict=<0|1|2>Michal Soltys2014-08-265-22/+53
| | | | | | | | | | | | | | | This provides more fine grained control than single relax flag. to cover case with wrong disk sizes. relax and nostrict are equivalent to strict=0 norelax and strict are equivalent to strict=2 strict=1 does the same as strict=2, but ignores checks against disk size The current default is strict=1. Options: 'fixchs', '[un]hide[all]' and 'save' will forcibly enable strict=2 (can be overridden by the user). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain: add missing pi_del() in find*() functionsMichal Soltys2014-08-261-35/+25
| | | | | | | As partiter doesn't deallocate itself after finish (anymore), it should be deleted after each loop iteration. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain/partiter: adjust error reportingMichal Soltys2014-08-263-10/+5
| | | | | | | | | | Use <0 for errors, 0 for normal state, and >0 for clean completion. In future this would be necessary if it's decided to make partiter a generic lib (similar to disklib) - though it has to be quieted first and provide strerr()-like functionality in place of its verbosity. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain/partiter: fix possible non-NULL value returned by pi_begin() on errorMichal Soltys2014-08-261-8/+10
| | | | | | | | This patch fixes non-NULL value returned from pi_begin() in case of an error (which resulted in further hang instead of proper exit). Probably a leftover from pi_dealloc() times. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain/partiter: fix and improve gpt handling in buggy casesMichal Soltys2014-08-261-76/+128
| | | | | | | | | | | | | | | | | | | | | | Previous version had some issues in case of error situations, among those: - backup gpt header was not read if reading of primary failed - alternating nature of lba_cur and lba_alt was ignored This patch fixes this and extends the gpt handling. The current behavior is: - try primary header; if unreadable or checksum fails (or sanity checks fail unless relax flag is set) - try secondary header - try main partition table referenced in the header that was read; if it's unreadable or if its crc check fails - try alternative (so if we managed to read primary header, table at the end would be considered as alternative - if we managed to read secondary header, table at the beginning would be treated as such) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* PXE ISR: Force polling on select hardware #3 WORKAROUNDGene Cumm2014-08-021-0/+1
| | | | | | | | Like 2fe3a7bd, certain Dell machines (Latitude E6510) state interrupts should work but effectively don't. Force polling. Reported-by: Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* core, pxe: Don't push on one stack and pop from the other in pxenvsyslinux-6.03-pre19H. Peter Anvin2014-07-291-0/+4
| | | | | | | | | | | | | | When saving/restoring the flags around the stack switch test, we cannot leave live data on the stack *across* the stack switch that we are going to use on the other side (unlike the "big" stack frame which we only use once we are back on the original stack.) Use register BP, which is not live at either point, as a temporary holding place for the flags from the stack. Reported-by: Frank Mehnert <frank.mehnert@googlemail.com> Link: http://bugzilla.syslinux.org/show_bug.cgi?id=54 Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* PXE ISR: Force polling on select hardware WORKAROUNDGene Cumm2014-07-131-3/+2
| | | | | | | | Like 2fe3a7bd, certain Dell machines (OptiPlex 990) state interrupts should work but effectively don't. Force polling. Reported-by: Alexander Perlis <aperlis@math.lsu.edu> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* lzo: Upgrade to LZO 2.07H. Peter Anvin2014-06-2753-2126/+7217
| | | | | | Use version 2.07 of the LZO compression library. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Test for Watcom C presencesyslinux-6.03-pre18Lubomir Rintel2014-06-241-0/+8
| | | | | | | | | This adds checks for Watcom C DOS cross-compiler in a manner analogous to mingw compiler for Windows. The compiler is not commonly present in Linux distributions due to a non-free license. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* utils/isohybrid.c: Enable promised options -u, -m, -bThomas Schmitt2014-06-241-1/+1
| | | | | | | This change enables the single-letter options -u, -m, -b as promised by the help text. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* efi: Tag __syslinux_adv* with __exportMatt Fleming2014-06-241-2/+2
| | | | | | | | | | | | | | | | | | | | | commit 415d571 ("adv: Remove double defintion") introduced a regression for the EFI boot loader. The commit is correct, but should have tagged the __syslinux_adv_ptr and __syslinux_adv_size data objects in the EFI core as __export. This change is required because symbols in the EFI code are not global by default, and so, when ldlinux.{e32,e64} tries to bind to the adv symbols it fails. The following demonstrates the ELF symbol changes, Before: 659: 0000000000034f40 8 OBJECT LOCAL DEFAULT 16 __syslinux_adv_ptr After: 957: 0000000000036fe0 8 OBJECT GLOBAL DEFAULT 16 __syslinux_adv_ptr Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* isohybrid: Function to write UTF-16LE stringsH. Peter Anvin2014-06-231-9/+19
| | | | | | | Rather than open-coding the content of UTF-16LE strings, just add a simple function to convert ASCII (only) strings to UTF-16LE. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* utils/isohybrid.c: Introduce option --mbr and make isohybrid.c compilable ↵Thomas Schmitt2014-06-231-2/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | standalone Although isohybrid.c is supposed to be a companion of the local SYSLINUX installation, there may be situations where the file isolinux.bin and the matching MBR template do not stem directly from such an installation. This change adds an option --mbr, which allows to load an MBR template file. This may be an isohdp[fp]x*.bin MBR template from the local SYSLINUX installation, or the first 512 bytes of the isohybrid-capable ISO image from which isolinux.bin and the other ISOLINUX files are taken. If macro ISOHYBRID_C_STANDALONE is defined, then the hardcoded MBR templates are not accessible and isohdpfx.o is not needed at compile time. In this case, option --mbr becomes mandatory. I used this for testing my changes with Fedora-Live-Desktop-x86_64-20-1.iso. isohybrid.c is then compilable without further components of ISOLINUX by: cc -DISOHYBRID_C_STANDALONE -Wall -o isohybrid isohybrid.c -luuid Test run: cp Fedora-Live-Desktop-x86_64-20-1.iso \ Fedora-Live-Desktop-x86_64-20-1-rehybrid.iso valgrind ./isohybrid --uefi --mac \ --mbr Fedora-Live-Desktop-x86_64-20-1.mbr \ Fedora-Live-Desktop-x86_64-20-1-rehybrid.iso yields: ==13828== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 1) ... ==13828== LEAK SUMMARY: ==13828== definitely lost: 2,048 bytes in 1 blocks. (Not that valgrind would have detected the memcpy() abuse of patch 001. But at least i seem to have not introduced more obvious sins.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* utils/isohybrid.c: Change all fseek(3) to fseeko(3)Thomas Schmitt2014-06-231-10/+9
| | | | | | | | | | It seems unwise to offer future programmers fseek(3) calls for copy+paste. They are simply insufficient for large image files. This change switches all calls of fseek(3) to fseeko(3) and takes care that the offset value if of type off_t. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* utils/isohybrid.c: Write GPT backup to the very end of the imageThomas Schmitt2014-06-231-3/+3
| | | | | | | | | | The GPT backup header block should start 512 bytes before the end of the image file (resp. end of the disk device). This block and the backup GPT array were wrongly written 512 bytes too early. This change brings the backup GPT at its correct position. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* utils/isohybrid.c: Correct end block address of first GPT partitionThomas Schmitt2014-06-231-1/+1
| | | | | | | | | | | The GPT partition 1 covers the whole ISO filesystem size. GPT specs demand that the partition end block number shall be the last valid block in the partition. isohybrid.c rather wrote the number of the first block after the partition end. This change reduces the number by 1. Signed-off-by: H. Peter Anvin <hpa@zytor.com>