[syslinux] [PATCH 0/4] efi: Makefile improvement

celelibi at gmail.com celelibi at gmail.com
Sun Sep 13 20:50:55 PDT 2015


From: Sylvain Gault <sylvain.gault at gmail.com>

These few patches contain a few improvement about the Makefiles for EFI.
Mainly, to rebuild the files when needed, and only when needed. The three shell
scripts efi/{check,build,clean}-gnu-efi.sh disappeared and are now integrated
as makefile recipes.

You'll notice an argument ARFLAGS=rvU to the recursive make calls to gnu-efi.
This is because, the default value is just "rv" and gnu-efi uses the implicit
rules of make that uses $(ARFLAGS). Without the U flag, the timestamp of the
members of the generated archive is set to 0, which is always outdated from the
make's point of view, and thus always rebuilt.

This U flags forces ar to write the actual timestamp of the file in the
archive, which may not be the default behavior of every distribution (no longer
the default in Debian apparently). I will probably submit a patch to add this
flag in the gnu-efi Makefiles.

Once this patch merged in gnu-efi, and our gnu-efi submodule updated, those
ARFLAGS argument shall be removed.

Sylvain Gault


Sylvain Gault (4):
  efi: Don't unnecessarily rebuild syslinux.so
  efi: Proper dependencies to gnu-efi
  mk/efi.mk: Build gnu-efi with the Makefile
  efi: move clean-gnu-efi.sh to mk/efi.mk

 efi/Makefile         | 18 +++++++++++-------
 efi/build-gnu-efi.sh | 45 ---------------------------------------------
 efi/check-gnu-efi.sh | 38 --------------------------------------
 efi/clean-gnu-efi.sh | 37 -------------------------------------
 gnu-efi              |  2 +-
 mk/efi.mk            | 30 ++++++++++++++++++++++++------
 6 files changed, 36 insertions(+), 134 deletions(-)
 delete mode 100755 efi/build-gnu-efi.sh
 delete mode 100755 efi/check-gnu-efi.sh
 delete mode 100755 efi/clean-gnu-efi.sh

-- 
2.5.1



More information about the Syslinux mailing list