Skip to contentSkip to conversation

syslinux: Update to 4.06

PATCH Superseded Jonathan Liu 1 participant 2 messages Apr 30, 2013

v2 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 syslinux: Update to 4.06

Patches are now part of upstream or no longer needed. Added new util-linux-native dependency for isohybrid. Paths updated to reflect directory structure changes.

---
 meta/classes/boot-directdisk.bbclass               |   2 +-
 .../syslinux/files/cross-build.patch               |  71 --
 .../libinstaller-Avoid-using-linux-ext2_fs.h.patch | 975 ---------------------
 .../recipes-devtools/syslinux/files/no-strip.patch |  31 -
 .../{syslinux_4.03.bb => syslinux_4.06.bb}         |  25 +-
 5 files changed, 12 insertions(+), 1092 deletions(-)
 delete mode 100644 meta/recipes-devtools/syslinux/files/cross-build.patch
 delete mode 100644 meta/recipes-devtools/syslinux/files/libinstaller-Avoid-using-linux-ext2_fs.h.patch
 delete mode 100644 meta/recipes-devtools/syslinux/files/no-strip.patch
 rename meta/recipes-devtools/syslinux/{syslinux_4.03.bb => syslinux_4.06.bb} (70%)
meta/classes/boot-directdisk.bbclass +1 -1
index d265485..1506b42 100644
@@ -82,7 +82,7 @@ build_boot_dd() {
 	parted $IMAGE print
 
 	OFFSET=`expr $END2 / 512`
-	dd if=${STAGING_LIBDIR}/syslinux/mbr.bin of=$IMAGE conv=notrunc
+	dd if=${STAGING_DATADIR}/syslinux/mbr.bin of=$IMAGE conv=notrunc
 	dd if=${HDDIMG} of=$IMAGE conv=notrunc seek=1 bs=512
 	dd if=${ROOTFS} of=$IMAGE conv=notrunc seek=$OFFSET bs=512
 
meta/recipes-devtools/syslinux/files/cross-build.patch deleted +0 -71

71 lines not on this page · raw message

meta/recipes-devtools/syslinux/files/libinstaller-Avoid-using-linux-ext2_fs.h.patch deleted +0 -975

975 lines not on this page · raw message

meta/recipes-devtools/syslinux/files/no-strip.patch deleted +0 -31
deleted file mode 100644
index 775851a..0000000
@@ -1,31 +0,0 @@
-Disable stripping of binaries
-
-We don't want to strip these as this is handled separately at package
-time.
-
-Upstream-Status: Inappropriate [configuration]
-
-Signed-off-by: Paul Eggleton <[email protected]>
-
---- syslinux-4.03.orig/mtools/Makefile
-+++ syslinux-4.03/mtools/Makefile
-@@ -4,7 +4,7 @@ include $(topdir)/MCONFIG
- OPTFLAGS = -g -Os
- INCLUDES = -I. -I.. -I../libfat -I../libinstaller
- CFLAGS	 = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
--LDFLAGS	 = -s
-+LDFLAGS	 =
- 
- SRCS     = syslinux.c \
- 	   ../libinstaller/fat.c \
---- syslinux-4.03.orig/utils/Makefile
-+++ syslinux-4.03/utils/Makefile
-@@ -18,7 +18,7 @@ topdir = ..
- include $(topdir)/MCONFIG
- 
- CFLAGS   = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
--LDFLAGS  = -O2 -s
-+LDFLAGS  = -O2
- 
- TARGETS	 = mkdiskimage isohybrid gethostip memdiskfind
- TARGETS += isohybrid.pl  # about to be obsoleted
meta/recipes-devtools/syslinux/syslinux_4.06.bb renamed from meta/recipes-devtools/syslinux/syslinux_4.03.bb +11 -14
similarity index 70%
rename from meta/recipes-devtools/syslinux/syslinux_4.03.bb
rename to meta/recipes-devtools/syslinux/syslinux_4.06.bb
index 7c3ecda..b860115 100644
@@ -2,20 +2,17 @@ DESCRIPTION = "A multi-purpose linux bootloader"
 HOMEPAGE = "http://syslinux.zytor.com/"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
-                    file://README;beginline=28;endline=34;md5=a4607efd4a6392017186d08099e7d546"
+                    file://README;beginline=35;endline=41;md5=f7249a750bc692d1048b2626752aa415"
 
 # If you really want to run syslinux, you need mtools.  We just want the
 # ldlinux.* stuff for now, so skip mtools-native
-DEPENDS = "nasm-native"
-PR = "r9"
+DEPENDS = "nasm-native util-linux-native"
+PR = "r0"
 
-SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/4.xx/syslinux-${PV}.tar.bz2 \
-           file://cross-build.patch \
-           file://no-strip.patch \
-           file://libinstaller-Avoid-using-linux-ext2_fs.h.patch"
+SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/4.xx/syslinux-${PV}.tar.bz2"
 
-SRC_URI[md5sum] = "a7ca38a0a5786b6efae8fb01a1ae8070"
-SRC_URI[sha256sum] = "c65567e324f9d1f7f794ae8f9578a0292bbd47d7b8d895a004d2f0152d0bda38"
+SRC_URI[md5sum] = "0384ef35b724615074e77b1fc89d5b47"
+SRC_URI[sha256sum] = "dbb7774e36c4596de68fa5e6788ad57809ab31a1760e5d7626e697766d30ad26"
 
 COMPATIBLE_HOST = '(x86_64|i.86).*-(linux|freebsd.*)'
 
@@ -54,12 +51,12 @@ RDEPENDS_${PN} += "mtools"
 
 FILES_${PN} = "${bindir}/syslinux"
 FILES_${PN}-extlinux = "${sbindir}/extlinux"
-FILES_${PN}-mbr = "${libdir}/${BPN}/mbr.bin"
-FILES_${PN}-chain = "${libdir}/${BPN}/chain.c32"
-FILES_${PN}-isolinux = "${libdir}/${BPN}/isolinux.bin"
-FILES_${PN}-pxelinux = "${libdir}/${BPN}/pxelinux.0"
+FILES_${PN}-mbr = "${datadir}/${BPN}/mbr.bin"
+FILES_${PN}-chain = "${datadir}/${BPN}/chain.c32"
+FILES_${PN}-isolinux = "${datadir}/${BPN}/isolinux.bin"
+FILES_${PN}-pxelinux = "${datadir}/${BPN}/pxelinux.0"
 FILES_${PN}-dev += "${datadir}/${BPN}/com32/lib*${SOLIBS} ${datadir}/${BPN}/com32/include ${datadir}/${BPN}/com32/com32.ld"
 FILES_${PN}-staticdev += "${datadir}/${BPN}/com32/lib*.a ${libdir}/${BPN}/com32/lib*.a"
-FILES_${PN}-misc = "${libdir}/${BPN}/* ${bindir}/*"
+FILES_${PN}-misc = "${datadir}/${BPN}/* ${libdir}/${BPN}/* ${bindir}/*"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
1.8.2.1
#1 lore raw
Quoted 12 lines · Jonathan Liu

Patches are now part of upstream or no longer needed. Added new util-linux-native dependency for isohybrid. Paths updated to reflect directory structure changes.

---
  meta/classes/boot-directdisk.bbclass               |   2 +-
  .../syslinux/files/cross-build.patch               |  71 --
  .../libinstaller-Avoid-using-linux-ext2_fs.h.patch | 975 ---------------------
  .../recipes-devtools/syslinux/files/no-strip.patch |  31 -
  .../{syslinux_4.03.bb => syslinux_4.06.bb}         |  25 +-
  5 files changed, 12 insertions(+), 1092 deletions(-)
Quoted 4 lines

delete mode 100644 meta/recipes-devtools/syslinux/files/cross-build.patch
delete mode 100644 meta/recipes-devtools/syslinux/files/libinstaller-Avoid-using-linux-ext2_fs.h.patch delete mode 100644 meta/recipes-devtools/syslinux/files/no-strip.patch
rename meta/recipes-devtools/syslinux/{syslinux_4.03.bb => syslinux_4.06.bb} (70%)

I am getting an issue doing a clean build of syslinux 4.06. | isohybrid.c:39:23: fatal error: uuid/uuid.h: No such file or directory

Any ideas what I need to do to resolve it?

Regards,
Jonathan