[syslinux] [PATCH 0/4] Reduce core size

Matt Fleming matt at console-pimps.org
Thu Feb 17 14:03:24 PST 2011


From: Matt Fleming <matt.fleming at linux.intel.com>

These patches are based on the elflink branch.

This set of patches is my attempt at moving the command-line interface
functionality out of the core and into an ELF module to reduce the
size of the core.

The most interesting patch is [PATCH 4/4] which moves the cli code out
of core/elflink and into com32/elflink/modules. [PATCH 4/4] is an RFC
as I'd really like to start a discussion on whether the approach I've
taken to shrinking the size of the core is OK.

All comments appreciated!

Matt Fleming (4):
  gitignore: Add modules.dep
  elflink: Warn about unresolved symbols when creating modules.dep
  sys/times.h: Mark times() static inline
  elflink: Move cli lib code out of core

 .gitignore                      |    1 +
 com32/elflink/modules/Makefile  |   12 +-
 com32/elflink/modules/cli.c     |  437 +++++++++++++++++++++++++++++++++++++++
 com32/elflink/modules/cli.h     |    6 +-
 com32/elflink/modules/cmdline.c |   34 +++
 com32/elflink/modules/ui.c      |   56 +++++
 com32/include/sys/times.h       |    8 +-
 com32/lib/sys/times.c           |   42 ----
 core/elflink/abort_new.c        |   10 +
 core/elflink/cli.c              |  410 ------------------------------------
 core/elflink/cli.h              |   23 --
 core/elflink/execute.c          |    4 +-
 core/elflink/get_key.c          |  175 ----------------
 core/elflink/getkey.h           |   80 -------
 core/elflink/load_env32.c       |   50 +-----
 elf_gen_dep.sh                  |   22 ++-
 16 files changed, 584 insertions(+), 786 deletions(-)
 create mode 100644 com32/elflink/modules/cli.c
 create mode 100644 com32/elflink/modules/cmdline.c
 create mode 100644 com32/elflink/modules/ui.c
 delete mode 100644 com32/lib/sys/times.c
 delete mode 100644 core/elflink/cli.c
 delete mode 100644 core/elflink/cli.h
 delete mode 100644 core/elflink/get_key.c
 delete mode 100644 core/elflink/getkey.h

-- 
1.7.4




More information about the Syslinux mailing list