2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Multi-purpose linux bootloader"
|
2010-06-17 09:23:20 +00:00
|
|
|
HOMEPAGE = "http://syslinux.zytor.com/"
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
|
2013-09-17 13:32:13 +00:00
|
|
|
file://README;beginline=35;endline=41;md5=558f2c71cb1fb9ba511ccd4858e48e8a"
|
2010-06-17 09:23:20 +00:00
|
|
|
|
|
|
|
# If you really want to run syslinux, you need mtools. We just want the
|
|
|
|
# ldlinux.* stuff for now, so skip mtools-native
|
2015-02-13 08:59:08 +00:00
|
|
|
DEPENDS = "nasm-native util-linux e2fsprogs"
|
2010-06-17 09:23:20 +00:00
|
|
|
|
2015-07-10 09:33:07 +00:00
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/syslinux-${PV}.tar.xz \
|
2014-06-20 06:06:30 +00:00
|
|
|
file://syslinux-fix-parallel-building-issue.patch \
|
2014-08-16 05:15:02 +00:00
|
|
|
file://syslinux-libupload-depend-lib.patch \
|
2014-12-10 18:26:33 +00:00
|
|
|
file://syslinux-remove-clean-script.patch \
|
2015-02-13 08:59:08 +00:00
|
|
|
file://0001-linux-syslinux-support-ext2-3-4-device.patch \
|
|
|
|
file://0002-linux-syslinux-implement-open_ext2_fs.patch \
|
|
|
|
file://0003-linux-syslinux-implement-install_to_ext2.patch \
|
|
|
|
file://0004-linux-syslinux-add-ext_file_read-and-ext_file_write.patch \
|
|
|
|
file://0005-linux-syslinux-implement-handle_adv_on_ext.patch \
|
|
|
|
file://0006-linux-syslinux-implement-write_to_ext-and-add-syslin.patch \
|
|
|
|
file://0007-linux-syslinux-implement-ext_construct_sectmap_fs.patch \
|
|
|
|
file://0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch \
|
|
|
|
file://0009-linux-syslinux-implement-install_bootblock.patch \
|
2015-09-09 08:26:06 +00:00
|
|
|
file://0010-gcc46-compatibility.patch \
|
2015-09-10 05:32:59 +00:00
|
|
|
file://0011-mk-MMD-does-not-take-any-arguments.patch \
|
2017-02-22 20:02:32 +00:00
|
|
|
file://syslinux-6.03-sysmacros.patch \
|
2014-06-20 06:06:30 +00:00
|
|
|
"
|
2010-06-17 09:23:20 +00:00
|
|
|
|
2014-12-10 18:26:33 +00:00
|
|
|
SRC_URI[md5sum] = "92a253df9211e9c20172796ecf388f13"
|
|
|
|
SRC_URI[sha256sum] = "26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2010-10-04 23:00:16 +00:00
|
|
|
COMPATIBLE_HOST = '(x86_64|i.86).*-(linux|freebsd.*)'
|
2013-09-17 13:32:13 +00:00
|
|
|
# Don't let the sanity checker trip on the 32 bit real mode BIOS binaries
|
|
|
|
INSANE_SKIP_${PN}-misc = "arch"
|
|
|
|
INSANE_SKIP_${PN}-chain = "arch"
|
2010-06-17 09:23:20 +00:00
|
|
|
|
|
|
|
EXTRA_OEMAKE = " \
|
|
|
|
BINDIR=${bindir} SBINDIR=${sbindir} LIBDIR=${libdir} \
|
|
|
|
DATADIR=${datadir} MANDIR=${mandir} INCDIR=${includedir} \
|
|
|
|
"
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
# drop win32 targets or build fails
|
|
|
|
sed -e 's,win32/\S*,,g' -i Makefile
|
|
|
|
|
|
|
|
# clean installer executables included in source tarball
|
2013-09-17 13:32:13 +00:00
|
|
|
oe_runmake clean firmware="efi32" EFIINC="${includedir}"
|
|
|
|
# NOTE: There is a temporary work around above to specify
|
|
|
|
# the efi32 as the firmware else the pre-built bios
|
|
|
|
# files get erased contrary to the doc/distib.txt
|
|
|
|
# In the future this should be "bios" and not "efi32".
|
2010-06-17 09:23:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_compile() {
|
2014-08-07 03:05:22 +00:00
|
|
|
# Make sure the recompile is OK.
|
|
|
|
# Though the ${B} should always exist, still check it before find and rm.
|
|
|
|
[ -d "${B}" ] && find ${B} -name '.*.d' -type f -exec rm -f {} \;
|
|
|
|
|
2010-06-17 09:23:20 +00:00
|
|
|
# Rebuild only the installer; keep precompiled bootloaders
|
|
|
|
# as per author's request (doc/distrib.txt)
|
2016-01-15 18:38:52 +00:00
|
|
|
oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" LDFLAGS="${LDFLAGS}" firmware="bios" installer
|
2010-06-17 09:23:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2016-01-15 18:38:52 +00:00
|
|
|
oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" install INSTALLROOT="${D}" firmware="bios"
|
2010-06-17 09:23:20 +00:00
|
|
|
|
2013-05-09 03:24:02 +00:00
|
|
|
install -d ${D}${datadir}/syslinux/
|
2013-09-17 13:32:13 +00:00
|
|
|
install -m 644 ${S}/bios/core/ldlinux.sys ${D}${datadir}/syslinux/
|
|
|
|
install -m 644 ${S}/bios/core/ldlinux.bss ${D}${datadir}/syslinux/
|
2015-04-13 06:48:38 +00:00
|
|
|
install -m 755 ${S}/bios/linux/syslinux-nomtools ${D}${bindir}/
|
2010-06-17 09:23:20 +00:00
|
|
|
}
|
|
|
|
|
2015-04-13 09:05:17 +00:00
|
|
|
PACKAGES += "${PN}-nomtools ${PN}-extlinux ${PN}-mbr ${PN}-chain ${PN}-pxelinux ${PN}-isolinux ${PN}-misc"
|
2011-05-02 19:09:15 +00:00
|
|
|
|
2011-05-22 13:21:45 +00:00
|
|
|
RDEPENDS_${PN} += "mtools"
|
2015-04-13 09:05:17 +00:00
|
|
|
RDEPENDS_${PN}-nomtools += "libext2fs"
|
2014-08-18 06:11:48 +00:00
|
|
|
RDEPENDS_${PN}-misc += "perl"
|
2011-05-22 13:21:45 +00:00
|
|
|
|
2011-05-02 19:09:15 +00:00
|
|
|
FILES_${PN} = "${bindir}/syslinux"
|
2015-04-13 09:05:17 +00:00
|
|
|
FILES_${PN}-nomtools = "${bindir}/syslinux-nomtools"
|
2011-05-02 19:09:15 +00:00
|
|
|
FILES_${PN}-extlinux = "${sbindir}/extlinux"
|
2013-05-09 03:24:02 +00:00
|
|
|
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"
|
2013-02-04 09:20:17 +00:00
|
|
|
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"
|
2013-05-09 03:24:02 +00:00
|
|
|
FILES_${PN}-misc = "${datadir}/${BPN}/* ${libdir}/${BPN}/* ${bindir}/*"
|
2011-05-02 19:09:15 +00:00
|
|
|
|
2013-12-03 10:27:05 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|