Skip to contentSkip to conversation

boot/syslinux: Bump to 6.04-pre2

PATCH Superseded Alexander Sverdlin 2 participants 4 messages Aug 30 – Sep 19

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 boot/syslinux: Bump to 6.04-pre2

And change the source URL to use new upstream GIT repo:
http://repo.or.cz/syslinux.git
The revision to build comes from Archlinux syslinux package.

---
 ...bios-Fix-alignment-change-with-gcc-5.patch |  82 ---
 ...Use-the-host-toolchain-for-prepcore.patch} |   8 +-
 ...-Disable-PIE-to-avoid-FTBFS-on-amd64.patch |  30 -
 ...nux-Use-the-host-toolchain-to-build.patch} |   0
 ...-binutils-note-gnu-property-section.patch} |   0
 ...sk-Force-ld-output-format-to-32-bits.patch |  32 -
 ...0004-efi-main.c-include-efisetjmp.h.patch} |   0
 ...tils-Use-the-host-toolchain-to-build.patch |  60 --
 ...ition-is-now-part-of-the-exports-of-.patch |  37 --
 ...ump-calls-to-fit-the-new-declaration.patch |  37 --
 ...per-build-it-with-the-host-toolchain.patch |  32 -
 ...-try-to-guess-the-sections-alignment.patch | 295 ---------
 ...10-core-Clean-up-the-i386-bios-build.patch | 622 ------------------
 ...-sysmacros-h-for-major-minor-makedev.patch |  34 -
 ...multiple-definition-of-symbol-errors.patch |  25 +-
 boot/syslinux/syslinux.hash                   |   3 +-
 boot/syslinux/syslinux.mk                     |   6 +-
 17 files changed, 12 insertions(+), 1291 deletions(-)
 delete mode 100644 boot/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch
 rename boot/syslinux/{0005-lzo-Use-the-host-toolchain-for-prepcore.patch => 0001-lzo-Use-the-host-toolchain-for-prepcore.patch} (84%)
 delete mode 100644 boot/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch
 rename boot/syslinux/{0011-extlinux-Use-the-host-toolchain-to-build.patch => 0002-extlinux-Use-the-host-toolchain-to-build.patch} (100%)
 rename boot/syslinux/{0014-Fix-build-with-binutils-note-gnu-property-section.patch => 0003-Fix-build-with-binutils-note-gnu-property-section.patch} (100%)
 delete mode 100644 boot/syslinux/0003-memdisk-Force-ld-output-format-to-32-bits.patch
 rename boot/syslinux/{0015-efi-main.c-include-efisetjmp.h.patch => 0004-efi-main.c-include-efisetjmp.h.patch} (100%)
 delete mode 100644 boot/syslinux/0004-utils-Use-the-host-toolchain-to-build.patch
 delete mode 100644 boot/syslinux/0006-The-VPrint-definition-is-now-part-of-the-exports-of-.patch
 delete mode 100644 boot/syslinux/0007-Update-the-longjump-calls-to-fit-the-new-declaration.patch
 delete mode 100644 boot/syslinux/0008-efi-wrapper-build-it-with-the-host-toolchain.patch
 delete mode 100644 boot/syslinux/0009-bios-Don-t-try-to-guess-the-sections-alignment.patch
 delete mode 100644 boot/syslinux/0010-core-Clean-up-the-i386-bios-build.patch
 delete mode 100644 boot/syslinux/0012-pull-in-sys-sysmacros-h-for-major-minor-makedev.patch
boot/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch deleted +0 -82
deleted file mode 100644
index 633d996ed1..0000000000
@@ -1,82 +0,0 @@
-From da5cbd1a3b248f2d32281a1766a3d1414c0e8e03 Mon Sep 17 00:00:00 2001
-From: Sylvain Gault <[email protected]>
-Date: Tue, 29 Sep 2015 02:38:25 +0200
-Subject: [PATCH] bios: Fix alignment change with gcc 5
-
-The section aligment specified in the ld scripts have to be greater or
-equal to those in the .o files generated by gcc.
-
-Signed-off-by: Sylvain Gault <[email protected]>
-Tested-by: poma <[email protected]>
-Signed-off-by: Paulo Alcantara <[email protected]>
-Signed-off-by: Frank Hunleth <[email protected]>
----
- core/i386/syslinux.ld   | 6 +++---
- core/x86_64/syslinux.ld | 6 +++---
- 2 files changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
-index 7b4e012..7390451 100644
---- a/core/i386/syslinux.ld
-+++ b/core/i386/syslinux.ld
-@@ -266,7 +266,7 @@ SECTIONS
- 		__text_end = .;
- 	}
- 
--	. = ALIGN(16);
-+	. = ALIGN(32);
- 
- 	__rodata_vma = .;
- 	__rodata_lma = __rodata_vma + __text_lma - __text_vma;
-@@ -361,7 +361,7 @@ SECTIONS
- 		__dynamic_end = .;
- 	}
- 
--	. = ALIGN(16);
-+	. = ALIGN(32);
- 
- 	__data_vma = .;
- 	__data_lma = __data_vma + __text_lma - __text_vma;
-@@ -377,7 +377,7 @@ SECTIONS
- 	__pm_code_dwords = (__pm_code_len + 3) >> 2;
- 
- 	. = ALIGN(128);
--	
-+
- 	__bss_vma = .;
- 	__bss_lma = .;		/* Dummy */
- 	.bss (NOLOAD) : AT (__bss_lma) {
-diff --git a/core/x86_64/syslinux.ld b/core/x86_64/syslinux.ld
-index 1057112..bf815c4 100644
---- a/core/x86_64/syslinux.ld
-+++ b/core/x86_64/syslinux.ld
-@@ -266,7 +266,7 @@ SECTIONS
- 		__text_end = .;
- 	}
- 
--	. = ALIGN(16);
-+	. = ALIGN(32);
- 
- 	__rodata_vma = .;
- 	__rodata_lma = __rodata_vma + __text_lma - __text_vma;
-@@ -361,7 +361,7 @@ SECTIONS
- 		__dynamic_end = .;
- 	}
- 
--	. = ALIGN(16);
-+	. = ALIGN(32);
- 
- 	__data_vma = .;
- 	__data_lma = __data_vma + __text_lma - __text_vma;
-@@ -377,7 +377,7 @@ SECTIONS
- 	__pm_code_dwords = (__pm_code_len + 3) >> 2;
- 
- 	. = ALIGN(128);
--	
-+
- 	__bss_vma = .;
- 	__bss_lma = .;		/* Dummy */
- 	.bss (NOLOAD) : AT (__bss_lma) {
--- 
-2.7.4
-
boot/syslinux/0001-lzo-Use-the-host-toolchain-for-prepcore.patch renamed from boot/syslinux/0005-lzo-Use-the-host-toolchain-for-prepcore.patch +4 -4
similarity index 84%
rename from boot/syslinux/0005-lzo-Use-the-host-toolchain-for-prepcore.patch
rename to boot/syslinux/0001-lzo-Use-the-host-toolchain-for-prepcore.patch
index c6fa7febf7..877fe61cd0 100644
@@ -1,4 +1,4 @@
-From 83e1f00990c25554723609bb549e18b987034317 Mon Sep 17 00:00:00 2001
+From 32c79a83a054762f8d0fa3df586ca3631aa6dd3d Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
 Date: Thu, 6 Apr 2017 09:43:46 +0200
 Subject: [PATCH] lzo: Use the host toolchain for prepcore
@@ -12,7 +12,7 @@ Signed-off-by: Benoît Allard <[email protected]>
  1 file changed, 5 insertions(+), 2 deletions(-)
 
 diff --git a/lzo/Makefile b/lzo/Makefile
-index 29f1fa6..c016e5a 100644
+index 29f1fa62..c016e5a3 100644
 --- a/lzo/Makefile
 +++ b/lzo/Makefile
 @@ -11,10 +11,13 @@
@@ -27,7 +27,7 @@ index 29f1fa6..c016e5a 100644
 +%.o: %.c
 +	$(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS_FOR_BUILD) $(INCLUDES) -c -o $@ $<
 +
- LIBOBJS = $(patsubst %.c,%.o,$(subst $(SRC)/,,$(wildcard $(SRC)/src/*.c)))
+ LIBOBJS = $(patsubst %.c,%.o,$(subst $(SRC)/,,$(sort $(wildcard $(SRC)/src/*.c))))
  LIB     = lzo.a
  BINS    = prepcore
 @@ -30,7 +33,7 @@ $(LIB) : $(LIBOBJS)
@@ -40,5 +40,5 @@ index 29f1fa6..c016e5a 100644
  tidy dist clean spotless:
  	rm -f $(BINS)
 -- 
-2.1.4
+2.31.1
 
boot/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch deleted +0 -30
deleted file mode 100644
index 64a08b8575..0000000000
@@ -1,30 +0,0 @@
-From 250bf2c921713434627dc7bc8b0918fa0841f9b7 Mon Sep 17 00:00:00 2001
-From: Graham Inggs <[email protected]>
-Date: Wed, 5 Apr 2017 22:03:12 +0200
-Subject: [PATCH] Disable PIE to avoid FTBFS on amd64
-
-gcc 6.x has PIE support enabled by default, which causes a build issue
-with syslinux. This patch disables PIE support in the relevant
-syslinux Makefile.
-
-Signed-off-by: Ryan Coe <[email protected]>
----
- gpxe/src/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gpxe/src/Makefile b/gpxe/src/Makefile
-index cc91d78..077af64 100644
---- a/gpxe/src/Makefile
-+++ b/gpxe/src/Makefile
-@@ -4,7 +4,7 @@
- #
- 
- CLEANUP		:=
--CFLAGS		:=
-+CFLAGS		:= -fno-PIE
- ASFLAGS		:=
- LDFLAGS		:=
- MAKEDEPS	:= Makefile
--- 
-2.7.4
-
boot/syslinux/0002-extlinux-Use-the-host-toolchain-to-build.patch renamed from boot/syslinux/0011-extlinux-Use-the-host-toolchain-to-build.patch +0 -0
similarity index 100%
rename from boot/syslinux/0011-extlinux-Use-the-host-toolchain-to-build.patch
rename to boot/syslinux/0002-extlinux-Use-the-host-toolchain-to-build.patch
boot/syslinux/0003-Fix-build-with-binutils-note-gnu-property-section.patch renamed from boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch +0 -0
similarity index 100%
rename from boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch
rename to boot/syslinux/0003-Fix-build-with-binutils-note-gnu-property-section.patch
boot/syslinux/0003-memdisk-Force-ld-output-format-to-32-bits.patch deleted +0 -32
deleted file mode 100644
index 4eedf4973e..0000000000
@@ -1,32 +0,0 @@
-From c0287594239d5af2082cac20817f8e8b11a4b1b2 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
-Date: Wed, 5 Apr 2017 14:18:09 +0200
-Subject: [PATCH] memdisk: Force ld output format to 32-bits
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-On toolchains where the default output is x86_64, we need to be
-consistent with the other .o files
-
-Signed-off-by: Benoît Allard <[email protected]>
----
- memdisk/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/memdisk/Makefile b/memdisk/Makefile
-index e6557d8..06613ff 100644
---- a/memdisk/Makefile
-+++ b/memdisk/Makefile
-@@ -78,7 +78,7 @@ memdisk16.o: memdisk16.asm
- 	$(NASM) -f bin $(NASMOPT) $(NFLAGS) $(NINCLUDE) -o $@ -l $*.lst $<
- 
- memdisk_%.o: memdisk_%.bin
--	$(LD) -r -b binary -o $@ $<
-+	$(LD) --oformat elf32-i386 -r -b binary -o $@ $<
- 
- memdisk16.elf: $(OBJS16)
- 	$(LD) -Ttext 0 -o $@ $^
--- 
-2.7.4
-
boot/syslinux/0004-efi-main.c-include-efisetjmp.h.patch renamed from boot/syslinux/0015-efi-main.c-include-efisetjmp.h.patch +0 -0
similarity index 100%
rename from boot/syslinux/0015-efi-main.c-include-efisetjmp.h.patch
rename to boot/syslinux/0004-efi-main.c-include-efisetjmp.h.patch
boot/syslinux/0004-utils-Use-the-host-toolchain-to-build.patch deleted +0 -60

60 lines not on this page · raw message

boot/syslinux/0006-The-VPrint-definition-is-now-part-of-the-exports-of-.patch deleted +0 -37
deleted file mode 100644
index c376010232..0000000000
@@ -1,37 +0,0 @@
-From 39274503292a6003b1b0c93f694e34f11e85ea44 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
-Date: Fri, 9 Jun 2017 11:55:14 +0200
-Subject: [PATCH] The VPrint definition is now part of the exports of
- gnu-efi
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Benoît Allard <[email protected]>
----
- efi/fio.h | 9 ---------
- 1 file changed, 9 deletions(-)
-
-diff --git a/efi/fio.h b/efi/fio.h
-index 65fff8d..a1bfe68 100644
---- a/efi/fio.h
-+++ b/efi/fio.h
-@@ -11,15 +11,6 @@
- #define MAX_EFI_ARGS		64
- #define WS(c16)         (c16 == L' ' || c16 == CHAR_TAB)
- 
--/* VPrint is not in export declarations in gnu-efi lib yet
-- * although it is a global function; declare it here
-- */
--extern UINTN
--VPrint (
--    IN CHAR16   *fmt,
--    va_list     args
--    );
--
- extern EFI_STATUS efi_errno;
- 
- void efi_memcpy(unsigned char *dst, unsigned char *src, size_t len);
--- 
-2.1.4
-
boot/syslinux/0007-Update-the-longjump-calls-to-fit-the-new-declaration.patch deleted +0 -37
deleted file mode 100644
index 90d0b81f06..0000000000
@@ -1,37 +0,0 @@
-From 3bd5c2d951421a89f76b2423e5810862f53486c1 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
-Date: Fri, 9 Jun 2017 11:59:43 +0200
-Subject: [PATCH] Update the longjump calls to fit the new declaration
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Benoît Allard <[email protected]>
----
- efi/main.c | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/efi/main.c b/efi/main.c
-index 208fee4f..71d31a5c 100644
---- a/efi/main.c
-+++ b/efi/main.c
-@@ -10,7 +10,6 @@
- #include <syslinux/firmware.h>
- #include <syslinux/linux.h>
- #include <sys/ansi.h>
--#include <setjmp.h>
- 
- #include "efi.h"
- #include "fio.h"
-@@ -30,7 +29,7 @@ uint32_t timer_irq;
- __export uint8_t KbdMap[256];
- char aux_seg[256];
- 
--static jmp_buf load_error_buf;
-+static jmp_buf *load_error_buf;
- 
- static inline EFI_STATUS
- efi_close_protocol(EFI_HANDLE handle, EFI_GUID *guid, EFI_HANDLE agent,
--- 
-2.13.3
-
boot/syslinux/0008-efi-wrapper-build-it-with-the-host-toolchain.patch deleted +0 -32
deleted file mode 100644
index 9ec12a1791..0000000000
@@ -1,32 +0,0 @@
-From ca8aaded0c7c3900397029bd9520132b62629308 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
-Date: Mon, 12 Jun 2017 14:59:16 +0200
-Subject: [PATCH] efi/wrapper: build it with the host toolchain.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-The wrapper program is executed on the build machine, so it should be
-built with CC_FOR_BUILD.
-
-Signed-off-by: Benoît Allard <[email protected]>
----
- efi/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/efi/Makefile b/efi/Makefile
-index d5443bd5..d24d16db 100644
---- a/efi/Makefile
-+++ b/efi/Makefile
-@@ -79,7 +79,7 @@ syslinux.so: $(OBJS) $(CORE_OBJS) $(LIB_OBJS)
- #	cp $^ $@
- 
- wrapper: wrapper.c
--	$(CC) $^ -o $@
-+	$(CC_FOR_BUILD) $^ -o $@
- 
- #
- # Build the wrapper app and wrap our .so to produce a .efi
--- 
-2.13.3
-
boot/syslinux/0009-bios-Don-t-try-to-guess-the-sections-alignment.patch deleted +0 -295

295 lines not on this page · raw message

boot/syslinux/0010-core-Clean-up-the-i386-bios-build.patch deleted +0 -622

622 lines not on this page · raw message

boot/syslinux/0012-pull-in-sys-sysmacros-h-for-major-minor-makedev.patch deleted +0 -34
deleted file mode 100644
index beba5cc245..0000000000
@@ -1,34 +0,0 @@
-From 1a74985b2a404639b08882c57f3147229605dfd5 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <[email protected]>
-Date: Tue, 19 Apr 2016 06:50:31 -0400
-Subject: [PATCH] extlinux: pull in sys/sysmacros.h for major/minor/makedev
-
-These functions are defined in sys/sysmacros.h, so add the include to
-main.c.  This is already handled correctly in mountinfo.c.  Otherwise
-we get build failures like:
-
-main.o: In function 'find_device_sysfs':
-extlinux/main.c:1131: undefined reference to 'minor'
-
-Signed-off-by: Mike Frysinger <[email protected]>
-Signed-off-by: Gene Cumm <[email protected]>
-Signed-off-by: Alexander Sverdlin <[email protected]>
----
- extlinux/main.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/extlinux/main.c b/extlinux/main.c
-index a7ebd49..ebff7ea 100644
---- a/extlinux/main.c
-+++ b/extlinux/main.c
-@@ -38,6 +38,7 @@
- #include <sysexits.h>
- #include <sys/ioctl.h>
- #include <sys/stat.h>
-+#include <sys/sysmacros.h>
- #include <sys/types.h>
- #include <sys/mount.h>
- #include <sys/vfs.h>
--- 
-2.10.5.GIT
-
boot/syslinux/0016-Workaround-multiple-definition-of-symbol-errors.patch +4 -21
index ea91de5cb3..5157197e44 100644
@@ -73,15 +73,11 @@ diff --git a/core/Makefile b/core/Makefile
 index ad0acb5a..3bee4dc9 100644
 --- a/core/Makefile
 +++ b/core/Makefile
-@@ -164,7 +164,7 @@ AUXLIBS = libisolinux.a libisolinux-debug.a libldlinux.a \
- LDSCRIPT = $(SRC)/$(ARCH)/syslinux.ld
- 
+@@ -164,3 +164,3 @@ AUXLIBS = libisolinux.a libisolinux-debug.a libldlinux.a \
  %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS)
--	$(LD) $(LDFLAGS) -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T $(LDSCRIPT) -M -o $@ $< \
-+	$(LD) $(LDFLAGS) -z muldefs -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T $(LDSCRIPT) -M -o $@ $< \
- 		--start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group \
- 		> $(@:.elf=.map)
- 	$(OBJDUMP) -h $@ > $(@:.elf=.sec)
+-	$(LD) $(LDFLAGS) -pie -Bsymbolic \
++	$(LD) $(LDFLAGS) -pie -z muldefs -Bsymbolic \
+ 		-T $(LDSCRIPT) \
 diff --git a/dos/Makefile b/dos/Makefile
 index b9c337d5..2af87346 100644
 --- a/dos/Makefile
@@ -108,19 +104,6 @@ index d24d16db..7c714ebf 100644
  
  # We need to rename the .hash section because the EFI firmware
  # linker really doesn't like it.
-diff --git a/gpxe/src/arch/i386/Makefile b/gpxe/src/arch/i386/Makefile
-index dd8da802..be1d00ff 100644
---- a/gpxe/src/arch/i386/Makefile
-+++ b/gpxe/src/arch/i386/Makefile
-@@ -55,7 +55,7 @@ ASFLAGS		+= --32
- ifeq ($(HOST_OS),FreeBSD)
- LDFLAGS		+= -m elf_i386_fbsd
- else
--LDFLAGS		+= -m elf_i386
-+LDFLAGS		+= -z muldefs -m elf_i386
- endif
- 
- # EFI requires -fshort-wchar, and nothing else currently uses wchar_t
 -- 
 2.30.1
 
boot/syslinux/syslinux.hash +1 -2
index 9bec3a20e7..2a98641da5 100644
@@ -1,4 +1,3 @@
-# From https://www.kernel.org/pub/linux/utils/boot/syslinux/sha256sums.asc
-sha256  26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e  syslinux-6.03.tar.xz
 # Locally computed
+sha256  d6d6ed482ff30358ce203d74d4e35413185485ebb315e89db24790e769e23e4c  syslinux-bf6db5b4-br1.tar.gz
 sha256  dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa  COPYING
boot/syslinux/syslinux.mk +3 -3
index f938634c35..3d24869e59 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-SYSLINUX_VERSION = 6.03
-SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.xz
-SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux
+SYSLINUX_VERSION = bf6db5b4
+SYSLINUX_SITE = http://repo.or.cz/syslinux.git
+SYSLINUX_SITE_METHOD = git
 
 SYSLINUX_LICENSE = GPL-2.0+
 SYSLINUX_LICENSE_FILES = COPYING
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 boot/syslinux: Don't delete host syslinux installer

With 6.04-pre2 the installer is being built properly with host toolchain and can be successfully used to install BIOS bootloader into the target image.

---
 ...ost-toolchain-for-syslinux-installer.patch | 48 +++++++++++++++++++
 boot/syslinux/syslinux.mk                     |  8 ----
 2 files changed, 48 insertions(+), 8 deletions(-)
 create mode 100644 boot/syslinux/0005-mtools-Use-the-host-toolchain-for-syslinux-installer.patch
boot/syslinux/0005-mtools-Use-the-host-toolchain-for-syslinux-installer.patch new file +48 -0
new file mode 100644
index 0000000000..3fe431ac37
@@ -0,0 +1,48 @@
+From 3eb38370b831ede21ecb8cda7ed04b6123531df4 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
+Date: Thu, 6 Apr 2017 09:43:46 +0200
+Subject: [PATCH] mtools: Use the host toolchain for syslinux installer
+
+Signed-off-by: Alexander Sverdlin <[email protected]>
+---
+ mtools/Makefile | 13 ++++++++-----
+ 1 file changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/mtools/Makefile b/mtools/Makefile
+index 632b185b..b67354d4 100755
+--- a/mtools/Makefile
++++ b/mtools/Makefile
+@@ -1,5 +1,8 @@
+ include $(MAKEDIR)/syslinux.mk
+ 
++CC_FOR_BUILD	?= $(CC)
++STRIP_FOR_BUILD	?= $(STRIP)
++
+ OPTFLAGS = -g -Os
+ INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libfat -I$(SRC)/../libinstaller
+ CFLAGS	 = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
+@@ -35,16 +38,16 @@ spotless: clean
+ installer: syslinux
+ 
+ syslinux: $(OBJS)
+-	$(CC) $(LDFLAGS) -o $@ $^
++	$(CC_FOR_BUILD) $(LDFLAGS) -o $@ $^
+ 
+ strip:
+-	$(STRIP) syslinux
++	$(STRIP_FOR_BUILD) syslinux
+ 
+ %.o: %.c
+-	$(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
++	$(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
+ %.i: %.c
+-	$(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
++	$(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
+ %.s: %.c
+-	$(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
++	$(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
+ 
+ -include .*.d
+-- 
+2.31.1
+
boot/syslinux/syslinux.mk +0 -8
index 3d24869e59..ab531f69fd 100644
@@ -98,14 +98,6 @@ define SYSLINUX_INSTALL_TARGET_CMDS
 		-C $(@D) $(SYSLINUX_TARGET) install
 endef
 
-# That 'syslinux' binary is an installer actually built for the target.
-# However, buildroot makes no usage of it, so better delete it than have it
-# installed at the wrong place
-define SYSLINUX_POST_INSTALL_CLEANUP
-	rm -rf $(HOST_DIR)/bin/syslinux
-endef
-SYSLINUX_POST_INSTALL_TARGET_HOOKS += SYSLINUX_POST_INSTALL_CLEANUP
-
 SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_ISOLINUX) += bios/core/isolinux.bin
 SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += bios/core/pxelinux.bin
 SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_LPXELINUX) += bios/core/lpxelinux.bin
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] boot/syslinux: Don't delete host syslinux installer

boot/syslinux/0005-mtools-Use-the-host-toolchain-for-syslinux-installer.patch line 4

Quoted 10 lines · Alexander Sverdlin
boot/syslinux/0005-mtools-Use-the-host-toolchain-for-syslinux-installer.patch new file +4 -0
new file mode 100644
index 0000000000..3fe431ac37
@@ -0,0 +1,48 @@
+From 3eb38370b831ede21ecb8cda7ed04b6123531df4 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <[email protected]>
+Date: Thu, 6 Apr 2017 09:43:46 +0200
+Subject: [PATCH] mtools: Use the host toolchain for syslinux installer

A more detailed description would be relevant.

boot/syslinux/0005-mtools-Use-the-host-toolchain-for-syslinux-installer.patch line 6

Quoted 2 lines
boot/syslinux/0005-mtools-Use-the-host-toolchain-for-syslinux-installer.patch new file +2 -0
+
+Signed-off-by: Alexander Sverdlin <[email protected]>

We require all patches to be submitted upstream, and carry an
Upstream: tag pointing to the upstream submission (PR, or link to the mailing list archive pointing to the patch submission).

Could you send a v2 taking into account this feedback?

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Alexander Sverdlin
Quoted 5 lines · Alexander Sverdlin

And change the source URL to use new upstream GIT repo:
http://repo.or.cz/syslinux.git
The revision to build comes from Archlinux syslinux package.

Thanks for your patch. You received some feedback from Andreas. Could you take it into account a send a new iteration?

Another request: could you improve your commit log to provide for each patch a status: why is it removed, or why is it kept but changed, etc.

Thanks a lot!

Thomas Petazzoni

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot