| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
We need to account for dependences as far down as we care about.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
| |
We should not be compiling with -DDEBUG=1 by default!
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Remove stray -DDEBUG that should not have been committed.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
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>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ \
| |/
| |
| |
| |
| |
| |
| | |
Resolved Conflicts:
core/extlinux.asm
core/pxelinux.asm
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| | |
So, now we have all the fs converted, and the rest is to make it better and more simple
|
| | |
| |
| |
| | |
the others Syslinux derivative disabled for now
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
core/Makefile
core/diskstart.inc
core/fs.c
|
| | | | |
|
| | | | |
|
| |/ /
| |
| |
| |
| | |
Well, something goes ugly but it works. And I still need spend some more time
to make the code much better.
|
| | |
| |
| |
| | |
we use fs_init to initialize the fs information
|
| |/
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
*.raw files are intermediate between .elf and .bin, remove on cleanup.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
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 Makefile variable,
NASMDEBUG, so they can be overridden if necessary.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
| |
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 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 and move common rules into
MCONFIG.embedded.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
cmdline.inc: Unbreak "make depend"
Makefile: fix "make spotless"
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
Deal with issues that made older versions of nasm:
a) prevent "make spotless" from running
b) generate bad dependencies (no final newline)
|
| |
|
|
| |
This seems to have better behavior for "make spotless".
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
iso%.bin depends on checksumiso.pl
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
|
|
| |
The core is an embedded target, so use MCONFIG.embedded.
|
| |
|
|
|
| |
Cleanup and centralize the Makefile system even more.
Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
|
| |
|
|
|
| |
If git-describe comes up with a tag not starting with
syslinux-<version>- then leave it as-is.
|
| |
|
|
| |
For cleaning commands, we need version.mk to be optional.
|
| |
|
|
| |
Both core and memdisk wants to use the gen-id stuff, so let it.
|
| |
|
|
| |
Centralize more (most) of the version number machinery to version.pl.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
- "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.
|
| | |
|
| |
|
|
|
| |
Make the codepage data all derive from the Unicode tables, and create
files that could be dynamically loaded in the future.
|