X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fsyslinux;h=b2eec0d5be82c749d05d7273329dc09958b05b05;hb=9e245967d21883c6b921c0f1d9101a526ef9b084;hp=4a2f28489fb16d4f9748890ab573ea954c36c8d2;hpb=1d4ec104efe17ae5bc8aba2af9721e657691799a;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/syslinux b/lfs/syslinux index 4a2f28489f..b2eec0d5be 100644 --- a/lfs/syslinux +++ b/lfs/syslinux @@ -1,22 +1,20 @@ ############################################################################### -# This file is part of the IPCop Firewall. # # # -# IPCop is free software; you can redistribute it and/or modify # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # -# the Free Software Foundation; either version 2 of the License, or # +# the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # -# IPCop is distributed in the hope that it will be useful, # +# This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # -# along with IPCop; if not, write to the Free Software # -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# # -# Makefiles are based on LFSMake, which is # -# Copyright (C) 2002 Rod Roard # +# along with this program. If not, see . # # # ############################################################################### @@ -26,13 +24,17 @@ include Config -VER = 3.11 +VER = 6.04-pre1 THISAPP = syslinux-$(VER) -DL_FILE = $(THISAPP).tar.gz +DL_FILE = $(THISAPP).tar.xz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) +SUP_ARCH = x86_64 i586 + +# Clear compiler flags (mainly hardening) +CFLAGS = ############################################################################### # Top-level Rules @@ -42,7 +44,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 4aa8643bad413e5cf99fee4065f75734 +$(DL_FILE)_MD5 = f9c956fde0de29be297402ecbc8ff4d0 install : $(TARGET) @@ -71,9 +73,24 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) - @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - #cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/syslinux-3.11-nossp.patch - #cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/syslinux-3.11-nopie.patch - cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + + # Apply patches + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/syslinux-6.03-sysmacros.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/syslinux-6.04_replace-builtin-strlen-that-appears-to-get-optimized.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/syslinux-6.04_pre1-fcommon.patch + + # Build + cd $(DIR_APP) && make bios $(MAKETUNING) +ifeq "$(BUILD_ARCH)" "x86_64" + cd $(DIR_APP) && make efi64 $(MAKETUNING) +endif + + # Install + cd $(DIR_APP) && make bios install +ifeq "$(BUILD_ARCH)" "x86_64" + cd $(DIR_APP) && make efi64 install +endif + @rm -rf $(DIR_APP) @$(POSTBUILD)