syslinux: bump version to 4.04 and fix build error in 4.04
PATCH v2 1/2 syslinux: bump version to 4.04 and fix build error in 4.04
From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
--- boot/syslinux/syslinux-3.85-makefile.patch | 17 ----------------- boot/syslinux/syslinux.mk | 12 ++++++++++-- 2 files changed, 10 insertions(+), 19 deletions(-) delete mode 100644 boot/syslinux/syslinux-3.85-makefile.patch
boot/syslinux/syslinux-3.85-makefile.patch deleted +0 -17
@@ -1,17 +0,0 @@ ---- - Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: syslinux-3.85/Makefile -=================================================================== ---- syslinux-3.85.orig/Makefile -+++ syslinux-3.85/Makefile -@@ -43,7 +43,7 @@ - mbr/mbr_c.bin mbr/altmbr_c.bin mbr/gptmbr_c.bin \ - mbr/mbr_f.bin mbr/altmbr_f.bin mbr/gptmbr_f.bin \ - core/pxelinux.0 core/isolinux.bin core/isolinux-debug.bin \ -- gpxe/gpxelinux.0 dos/syslinux.com win32/syslinux.exe \ -+ gpxe/gpxelinux.0 dos/syslinux.com \ - dosutil/*.com dosutil/*.sys \ - $(MODULES) -
boot/syslinux/syslinux.mk +10 -2
@@ -4,15 +4,23 @@ # ############################################################# -SYSLINUX_VERSION = 3.85 +SYSLINUX_VERSION = 4.04 SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.bz2 -SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/3.xx/ +SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/4.xx/ SYSLINUX_INSTALL_TARGET = NO SYSLINUX_INSTALL_IMAGES = YES SYSLINUX_DEPENDENCIES = host-nasm +# syslinux-4.04 comes with a bundled mk-lba-img executable which +# may not work in our host environment. +define SYSLINUX_RM_MK_LBA_IMG + $(RM) $(@D)/diag/geodsp/mk-lba-img +endef + +SYSLINUX_POST_EXTRACT_HOOKS += SYSLINUX_RM_MK_LBA_IMG + define SYSLINUX_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) CC="$(HOSTCC)" AR="$(HOSTAR)" -C $(@D) endef
Signature · 1 line
1.7.5.4
PATCH v2 1/2 syslinux: bump version to 4.04 and fix build error in 4.04
Ping!
Quoted 62 lines · Arnout Vandecappelle (Essensium/Mind)
From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
--- boot/syslinux/syslinux-3.85-makefile.patch | 17 ----------------- boot/syslinux/syslinux.mk | 12 ++++++++++-- 2 files changed, 10 insertions(+), 19 deletions(-) delete mode 100644 boot/syslinux/syslinux-3.85-makefile.patch(quoted diff) +0
-0
b/boot/syslinux/syslinux-3.85-makefile.patchdeleted file mode 100644 index ff85b8d..0000000boot/syslinux/syslinux-3.85-makefile.patch deleted +0
-17@@ -1,17 +0,0 @@ ---- - Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: syslinux-3.85/Makefile -=================================================================== ---- syslinux-3.85.orig/Makefile -+++ syslinux-3.85/Makefile -@@ -43,7 +43,7 @@ - mbr/mbr_c.bin mbr/altmbr_c.bin mbr/gptmbr_c.bin \ - mbr/mbr_f.bin mbr/altmbr_f.bin mbr/gptmbr_f.bin \ - core/pxelinux.0 core/isolinux.bin core/isolinux-debug.bin \ -- gpxe/gpxelinux.0 dos/syslinux.com win32/syslinux.exe \ -+ gpxe/gpxelinux.0 dos/syslinux.com \ - dosutil/*.com dosutil/*.sys \ - $(MODULES) -boot/syslinux/syslinux.mk +10
-2@@ -4,15 +4,23 @@ # ############################################################# -SYSLINUX_VERSION = 3.85 +SYSLINUX_VERSION = 4.04 SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.bz2 -SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/3.xx/ +SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/4.xx/ SYSLINUX_INSTALL_TARGET = NO SYSLINUX_INSTALL_IMAGES = YES SYSLINUX_DEPENDENCIES = host-nasm +# syslinux-4.04 comes with a bundled mk-lba-img executable which +# may not work in our host environment. +define SYSLINUX_RM_MK_LBA_IMG + $(RM) $(@D)/diag/geodsp/mk-lba-img +endef + +SYSLINUX_POST_EXTRACT_HOOKS += SYSLINUX_RM_MK_LBA_IMG + define SYSLINUX_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) CC="$(HOSTCC)" AR="$(HOSTAR)" -C $(@D) endef
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
PATCH v2 2/2 syslinux: add support for host-install
In reply to Arnout Vandecappelle (Essensium/Mind)From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
--- boot/syslinux/syslinux.mk | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
boot/syslinux/syslinux.mk +15 -0
@@ -34,4 +34,19 @@ define SYSLINUX_INSTALL_IMAGES_CMDS done endef + +HOST_SYSLINUX_POST_EXTRACT_HOOKS += SYSLINUX_RM_MK_LBA_IMG + +define HOST_SYSLINUX_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_SYSLINUX_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) INSTALLROOT=$(HOST_DIR) install +endef + +define HOST_SYSLINUX_CLEAN_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) clean +endef + $(eval $(call GENTARGETS,boot,syslinux))
Signature · 1 line
1.7.5.4
PATCH v2 2/2 syslinux: add support for host-install
Hello,
Le Wed, 31 Aug 2011 08:06:53 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <[email protected]> a ?crit :
Quoted 25 lines
From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
--- boot/syslinux/syslinux.mk | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)boot/syslinux/syslinux.mk +9
-0@@ -34,4 +34,19 @@ define SYSLINUX_INSTALL_IMAGES_CMDS done endef + +HOST_SYSLINUX_POST_EXTRACT_HOOKS += SYSLINUX_RM_MK_LBA_IMG + +define HOST_SYSLINUX_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_SYSLINUX_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) INSTALLROOT=$(HOST_DIR)install +endef
boot/syslinux/syslinux.mk define SYSLINUX_INSTALL_IMAGES_CMDS · line 52
Quoted 6 lines
boot/syslinux/syslinux.mk +5
-0+ +define HOST_SYSLINUX_CLEAN_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) clean +endef + $(eval $(call GENTARGETS,boot,syslinux))
You don't have the $(eval $(call GENTARGETS,boot,syslinux,host)) line anymore, so the HOST_* variables are quite useless no ? This line was present in your previous posting.
Also can you comment how this host package is used ? It isn't part of the dependencies of any target package, so it doesn't seem to be used anywhere (except by manually running "make host-syslinux").
Not related to your patches directly, but could you elaborate a bit on how syslinux is used in practice by giving an example usage. This would explain a bit why a host version is needed, how to set up syslinux on the target, etc.
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v2 2/2 syslinux: add support for host-install
Quoted 3 lines · Thomas Petazzoni
You don't have the $(eval $(call GENTARGETS,boot,syslinux,host)) line anymore, so the HOST_* variables are quite useless no ? This line was present in your previous posting.
Oops! Messed up rebase, and I didn't think it was necessary to test...
Patch v3 coming up.
Quoted 3 lines
Also can you comment how this host package is used ? It isn't part of the dependencies of any target package, so it doesn't seem to be used anywhere (except by manually running "make host-syslinux").
Indeed, manually running "make host-syslinux" in the script that creates a
USB image. I guess the host-grub support that was submitted a couple of days ago had the same purpose.
Quoted 4 lines
Not related to your patches directly, but could you elaborate a bit on how syslinux is used in practice by giving an example usage. This would explain a bit why a host version is needed, how to set up syslinux on the target, etc.
To build a rescue disk that rewrites the disk of the target device. The idea
is that the whole thing can be sent as a zip file and the customer just has to unzip it to a USB stick and run syslinux (from Windows) and voila, he has a rescue USB stick. The compiled syslinux.exe is taken from the tar file for that. However, I also want to be able to create a rescue disk directly from buildroot, hence I want a working host-syslinux.
FYI the make_rescue script is attached.
Regards,
Arnout
Signature · 13 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43 -------------- next part -------------- A non-text attachment was scrubbed... Name: make_rescue.sh Type: application/x-shellscript Size: 4508 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110901/69f22f82/attachment.bin>
PATCH v2 2/2 syslinux: add support forhost-install
Quoted 6 lines
-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] On Behalf Of Arnout Vandecappelle
Sent: 01 September 2011 17:27
snip
Quoted 6 lines
Quoted 5 lines
Not related to your patches directly, but could you elaborate a bit on how syslinux is used in practice by giving an example usage. This would explain a bit why a host version is needed, how to set up syslinux on the target, etc.
Quoted 8 lines
To build a rescue disk that rewrites the disk of the target device. The idea
is that the whole thing can be sent as a zip file and the customer just has to unzip it to a USB stick and run syslinux (from Windows) and voila, he has a rescue USB stick. The compiled syslinux.exe is taken from the tar file for that. However, I also want to be able to create a rescue disk directly from buildroot, hence I want a working host-syslinux.FYI the
make_rescuescript is attached.
I use syslinux on an i486 target. I use host syslinux to make a bootable USB flash drive of buildroot Linux. I then plug the USB flash drive into the target and boot from it, then use target syslinux to make the target Disk on Module (DoM) flash drive bootable and install buildroot Linux. The USB flash drive is then unplugged and the target boots from the DoM evermore. I like having the same version of syslinux on host and target. Thanks for your work Arnout.
Quoted 14 lines
Regards,
Arnout--
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
PATCH v3 1/1 syslinux: add support for host-install
In reply to Thomas PetazzoniFrom: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
--- boot/syslinux/syslinux.mk | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)
boot/syslinux/syslinux.mk +17 -0
@@ -34,4 +34,21 @@ define SYSLINUX_INSTALL_IMAGES_CMDS done endef + +HOST_SYSLINUX_POST_EXTRACT_HOOKS += SYSLINUX_RM_MK_LBA_IMG + +define HOST_SYSLINUX_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_SYSLINUX_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) INSTALLROOT=$(HOST_DIR) install +endef + +define HOST_SYSLINUX_CLEAN_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) clean +endef + $(eval $(call GENTARGETS,boot,syslinux)) +$(eval $(call GENTARGETS,boot,syslinux,host)) +
Signature · 1 line
1.7.5.4