summaryrefslogtreecommitdiff
path: root/core/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Merge syslinux/extlinux patch code and core codeH. Peter Anvin2010-06-201-7/+0
| | | | | | | | Merge the SYSLINUX and EXTLINUX patching code and core code, removing EXTLINUX as a separate derivative. All the disk-based systems now use the same code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: add missing dependenciesH. Peter Anvin2010-02-281-1/+1
| | | | | | We need to account for dependences as far down as we care about. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: drop accidental checkin of -DDEBUG=1syslinux-4.00-pre30H. Peter Anvin2010-02-271-1/+1
| | | | | | We should not be compiling with -DDEBUG=1 by default! Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* fat: use generic_getfssec(), fix generic_getfssec(), add dprintfH. Peter Anvin2010-02-261-1/+1
| | | | | | | | | | | | | Use generic_getfssec() for the FAT filesystem. Do a bunch of calculations based on clusters rather than on sectors, so we don't have to do the same thing N times for N sectors per cluster. Fix boundary conditions in generic_getfssec(). Adjust iso9660 to match the resulting interface change. Add dprintf's to generic_getfssec() and a few other routines. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: fix double free of pathbuf, constify iget filename, fix iso9660H. Peter Anvin2010-02-241-1/+3
| | | | | | | | | | Fix double free of pathbuf in searchdir(). Constify the pathname passed to ->iget(). Major cleanups of the iso9660 filesystem; it would use insufficiently dimensioned stack variables and do compares in a rather inefficient manner. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: use better malloc; add low memory malloc; fix com32 exitH. Peter Anvin2010-02-231-3/+4
| | | | | | | | | | | | | Use a better malloc for the core. In particular, use the same core that we should eventually be able to use for the entire system in Syslinux 5 -- with module awareness, etc. This code can also accommodate multiple heaps. Set up a separate heap for lowmem; the intent is to use explicit lowmem allocations instead of the static bounce buffer. The lowmem allocation is also exported via the pmapi mechanism, so modules can safely allocate lowmem. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: remove stray -DDEBUGH. Peter Anvin2010-02-161-2/+0
| | | | | | Remove stray -DDEBUG that should not have been committed. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ext2: drop any 64K limitH. Peter Anvin2010-02-161-0/+2
| | | | | | | There is no point in maintaining a 64K limit; this is handled at a lower level in the disk I/O library if appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* FAT: cache file position, re-enable codepagesH. Peter Anvin2010-02-041-3/+2
| | | | | | | | | | | Cache the position of the file rather than seeking through the FAT from the beginning every time. Re-enable the handling of codepages. This is not yet fully complete: when using WinNT case flags, we need an upper->lower case table as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: more filesystem-specific files into subdirectoriesH. Peter Anvin2009-08-121-3/+3
| | | | | | | Preemptively move filesystem-specific files into core/fs/<fsname> so we can start trying to pretend to be organized. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'core32' into fscH. Peter Anvin2009-08-091-10/+3
|\
| * core: remove hack for dynamic symbol table generationcore32H. Peter Anvin2009-08-091-10/+3
| | | | | | | | | | | | | | | | Kill hack we used to generate a dynamic symbol table. There is a much better technique for doing this which is already deployed on the "dynamic" branch. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'core32' into fscH. Peter Anvin2009-08-071-8/+15
|\ \ | |/ | | | | | | | | | | | | Resolved Conflicts: core/extlinux.asm core/pxelinux.asm Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * core: include exported symbol informationH. Peter Anvin2009-07-091-3/+12
| | | | | | | | | | | | | | Extract symbol table information to be exported to modules. This is a really hacky way of doing it, so replace it later. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * core: assume NASM 2.03 or later, so we can use -MD for depsH. Peter Anvin2009-06-241-3/+1
| | | | | | | | | | | | | | Let's require NASM 2.03 or later, so we can use the -MD and -MP options to generate dependencies. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * core: generate DWARF debugging info from NASMH. Peter Anvin2009-06-241-1/+1
| | | | | | | | | | | | | | | | NASM 2.03 or higher can generate DWARF debugging info, which is also what gcc produces. Mixing debugging info seems to cause a lot of problems. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Core:PXELINUX: pxelinux derivative merged succeesfullyLiu Aleaxander2009-08-061-3/+3
| | | | | | | | So, now we have all the fs converted, and the rest is to make it better and more simple
* | Core:PXELINUX: try to merge pxelinuxLiu Aleaxander2009-08-061-3/+3
| | | | | | | | the others Syslinux derivative disabled for now
* | Merge branch 'isolinux'Liu Aleaxander2009-06-231-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: core/Makefile core/diskstart.inc core/fs.c
| * | Core:ISOLINUX: make the isolinux do the workLiu Aleaxander2009-06-221-1/+0
| | |
| * | Core:ISOLINUX: convert the isolinux.asm to CLiu Aleaxander2009-06-211-1/+2
| | |
* | | Core:SYSLINUX: ldlinux.asm converted to CLiu Aleaxander2009-06-141-1/+2
|/ / | | | | | | | | Well, something goes ugly but it works. And I still need spend some more time to make the code much better.
* | extract the geting fs information code in asm to a C function fs_initLiu Aleaxander2009-06-031-1/+0
| | | | | | | | we use fs_init to initialize the fs information
* | Successed in converting the cache code to CLiu Aleaxander2009-06-031-1/+0
|/ | | | | | | It works well for extlinux(seems broken with ldlinux). With the printf function can not work well in the format string, like %d, I introduced a new function itoa(), that convert the number to string, for debugging.
* core: remove *.raw files when cleaning upH. Peter Anvin2009-05-241-1/+1
| | | | | | *.raw files are intermediate between .elf and .bin, remove on cleanup. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: LZO compress the PM part of the coreH. Peter Anvin2009-05-201-11/+13
| | | | | | | | Use LZO to compress the PM part of the core. LZO is not the best compression algorithm, but it is very fast, and the decompressor is only 447 bytes long. The LZO code is part of the LZO 2.03 library. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Move the NASM debugging options to a separate variableH. Peter Anvin2009-05-171-1/+2
| | | | | | | Move the NASM debugging options to a separate Makefile variable, NASMDEBUG, so they can be overridden if necessary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: move "-g -F stabs" to NASMOPTH. Peter Anvin2009-05-161-2/+5
| | | | | | | | Move -g -F stabs to NASMOPT. Eventually we might need to disable them for older versions of NASM, since the linker seems to get unhappy about mixing older NASM stabs with gcc stabs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: link with libcom32 and libgccH. Peter Anvin2009-05-141-2/+3
| | | | | | | Link libcom32 and libgcc into the core. That doesn't mean all the functionality of libcom32 is usable in the core!!! Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* First cut of doing 32-bit C code in the coreH. Peter Anvin2009-05-141-10/+20
| | | | | | | | | A very preliminary implementation of 32-bit C code in the core. This currently breaks ADV, because the installer assumes the ADV is the last two sectors in extlinux.sys -- need to figure out a way to deal with this hopefully without breaking the migration protocol. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix NASM dependency generationH. Peter Anvin2009-04-271-1/+1
| | | | | | | | | Fix missing -M from NASM dependency generation calls; adopt the uniform stanza "-M -DDEPEND" even for sites that were already correct. Also, use ">" not ">>" for obvious reasons... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generation: MCONFIG.embeddedH. Peter Anvin2009-04-271-1/+1
| | | | | | | Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generationH. Peter Anvin2009-04-271-17/+4
| | | | | | | | | | | | Make the dependency generation more common; have a general pattern in MCONFIG, and use it in rules (not in CFLAGS). For NASM source, in order to stay compatible with old versions of NASM, run NASM twice; newer versions of NASM is capable of generating dependencies simultaneously like gcc can, but that would break compatibility with older distros. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: unbreak "make depend", fix make spotlessH. Peter Anvin2009-04-061-1/+1
| | | | | | | cmdline.inc: Unbreak "make depend" Makefile: fix "make spotless" Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright notices; add Intel notices where appropriateH. Peter Anvin2009-04-041-0/+1
| | | | | | | Update copyright notices. Per agreement with my new employer, Intel Corporation, add Intel copyright notices where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* */Makefile: fixes for older versions of NASMH. Peter Anvin2009-03-161-2/+2
| | | | | | | Deal with issues that made older versions of nasm: a) prevent "make spotless" from running b) generate bad dependencies (no final newline)
* */Makefile: use -include when including dependenciesH. Peter Anvin2009-03-161-2/+2
| | | | This seems to have better behavior for "make spotless".
* core/Makefile: fix dependency generation with old versions of NASMH. Peter Anvin2008-12-011-1/+6
| | | | | | | Fix dependency generation with certain old versions of NASM, which omitted the '\n' between dependency lines. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core/Makefile: iso%.bin depends on checksumiso.plH. Peter Anvin2008-09-051-1/+1
| | | | | | iso%.bin depends on checksumiso.pl Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core/Makefile: The core is an embedded targetH. Peter Anvin2008-08-221-21/+1
| | | | The core is an embedded target, so use MCONFIG.embedded.
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-201-15/+14
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* gen-id: only truncate tags starting with syslinux-<version>-H. Peter Anvin2008-07-151-1/+1
| | | | | If git-describe comes up with a tag not starting with syslinux-<version>- then leave it as-is.
* Make version.mk optional, so cleaning commands worksyslinux-3.71-pre6H. Peter Anvin2008-07-071-1/+1
| | | | For cleaning commands, we need version.mk to be optional.
* Share the gen-id stuff between core and memdiskH. Peter Anvin2008-07-071-2/+2
| | | | Both core and memdisk wants to use the gen-id stuff, so let it.
* Centralize more of the version number machineryH. Peter Anvin2008-07-071-2/+3
| | | | Centralize more (most) of the version number machinery to version.pl.
* Include the git ID in the build stringH. Peter Anvin2008-07-071-1/+1
| | | | | | If we're doing an unofficial build from git, put the git id and a dirty flag in the build string, instead of a timestamp. This is a lot more useful.
* Build _bin.c files in libinstaller; clean up B/I separationH. Peter Anvin2008-06-271-33/+2
| | | | | | | Clean up the BSUBDIR/ISUBDIR separation further. Build _bin.c files, which are an intermediate stage toward building the installers, in the libinstaller directory, since that directory is used by all the installers anyway. That also lets us get bin2c.pl out of the root.
* Fix "make clean", "make installer"H. Peter Anvin2008-06-271-2/+2
| | | | | | | | | | - "make clean" should not clean up things that "make installer" cannot regenerate. - "make installer" should not descend into subdirectories which are target only, e.g. com32 and sample. The Linux platform stuff in com32 is old and bitrotted, and was only for debugging in the first place. Just ignore it.
* Whitespace cleanupH. Peter Anvin2008-06-091-1/+1
|
* FAT: make all codepage data derived from the same placeH. Peter Anvin2008-06-091-3/+3
| | | | | Make the codepage data all derive from the Unicode tables, and create files that could be dynamically loaded in the future.