From patchwork Tue Feb 26 10:16:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: christian.braunersorensen@prevas.dk X-Patchwork-Id: 223173 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 8DFF92C02F3 for ; Tue, 26 Feb 2013 21:16:32 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id EAF803F854 for ; Tue, 26 Feb 2013 11:16:30 +0100 (CET) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail02.prevas.se (mail02.prevas.se [62.95.78.10]) by hugin.dotsrc.org (Postfix) with ESMTPS id 5B2393F854 for ; Tue, 26 Feb 2013 11:16:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=2898; q=dns/txt; s=ironport2; t=1361873787; x=1393409787; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7ljyuRZVBzy4cqjDhQXbdV5RA+WqQ8OhTDpcQnBCUzY=; b=Fhx1pdeRCkrj75YQCIQt1eP6AZSu2ZDXDeyr/P8YB0aVA+BzzRmmvfuA Rm9c0Doo6+NMsirwbz8jh5v5KcYrCyAWyaO81v/ZTPZlOvAhdeXUb/y6J 9oC+YjufvPpgwcVjbEVHBFhF24+fAWpdDIcbwdsRPtgWF1xRpVBoe5WgH 4=; X-IronPort-AV: E=Sophos;i="4.84,739,1355094000"; d="scan'208";a="2184450" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/AES128-SHA; 26 Feb 2013 11:16:27 +0100 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.342.3; Tue, 26 Feb 2013 11:16:26 +0100 Received: by localhost (Postfix, from userid 30007) id E0D8668D44E; Tue, 26 Feb 2013 10:16:26 +0000 (UTC) From: To: Subject: [PATCH 3/3] syslinux: Add new recipe for syslinux Date: Tue, 26 Feb 2013 10:16:24 +0000 Message-ID: <42b3f748802aa93975527dcdbc4ef8f1f7c8aff5.1361873632.git.christian.braunersorensen@prevas.dk> X-Mailer: git-send-email 1.8.0.3 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Christian Sørensen --- recipes/syslinux/syslinux_5.01.oe | 59 +++++++++++++++++++++++++++++++++++ recipes/syslinux/syslinux_5.01.oe.sig | 1 + 2 files changed, 60 insertions(+) create mode 100644 recipes/syslinux/syslinux_5.01.oe create mode 100644 recipes/syslinux/syslinux_5.01.oe.sig diff --git a/recipes/syslinux/syslinux_5.01.oe b/recipes/syslinux/syslinux_5.01.oe new file mode 100644 index 0000000..24c8e78 --- /dev/null +++ b/recipes/syslinux/syslinux_5.01.oe @@ -0,0 +1,59 @@ +DESCRIPTION = "A multi-purpose linux bootloader" +HOMEPAGE = "http://syslinux.zytor.com/" +LICENSE = "GPLv2+" + +RECIPE_TYPES = "native machine" + +inherit c make auto-package-utils + +require conf/fetch/kernelorg.conf +SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/syslinux-${PV}.tar.bz2" + +DEPENDS += "libuuid" + +EXTRA_OEMAKE = " \ + BINDIR=${bindir} SBINDIR=${sbindir} LIBDIR=${libdir} \ + DATADIR=${datadir} MANDIR=${mandir} INCDIR=${includedir} \ +" +# syslinux uses $LD for linking, strip `-Wl,' so it can work +export LDFLAGS = "`echo $LDFLAGS | sed 's/-Wl,//g'`" + +do_configure() { + # drop win32 targets or build fails + sed -e 's,win32/\S*,,g' -i Makefile + + # clean installer executables included in source tarball + oe_runmake clean +} + +do_compile() { + # Rebuild only the installer; keep precompiled bootloaders + # as per author's request (doc/distrib.txt) + oe_runmake CC="${CC}" -C ${S}/com32/cmenu/ + oe_runmake CC="${CC}" installer +} + +do_install() { + oe_runmake install INSTALLROOT="${D}" + + install -d ${D}${libdir}/syslinux/ + install -m 644 ${S}/core/ldlinux.sys ${D}${libdir}/syslinux/ + install -m 644 ${S}/core/ldlinux.bss ${D}${libdir}/syslinux/ +} + +AUTO_PACKAGE_UTILS = "extlinux gethostip isohybrid isohybrid.pl \ + keytab-lilo lss16toppm md5pass memdiskfind \ + mkdiskimage ppmtolss16 pxelinux-options sha1pass \ + syslinux syslinux2ansi" + +PACKAGES += "${PN}-mbr ${PN}-chain ${PN}-pxelinux ${PN}-isolinux ${PN}-misc" + +FILES_${PN} = "${bindir}/syslinux" +FILES_${PN}-mbr = "${datadir}/${PN}/mbr.bin" +FILES_${PN}-chain = "${libdir}/${PN}/chain.c32" +FILES_${PN}-isolinux = "${libdir}/${PN}/isolinux.bin" +FILES_${PN}-pxelinux = "${libdir}/${PN}/pxelinux.0" +FILES_${PN}-dev += "${datadir}/${PN}/com32/lib*${SOLIBS} ${datadir}/${PN}/com32/include ${datadir}/${PN}/com32/com32.ld" +FILES_${PN}-staticdev += "${datadir}/${PN}/com32/lib*.a ${libdir}/${PN}/com32/lib*.a" +FILES_${PN}-misc = "${libdir}/${PN}/* ${bindir}/* ${datadir}" + diff --git a/recipes/syslinux/syslinux_5.01.oe.sig b/recipes/syslinux/syslinux_5.01.oe.sig new file mode 100644 index 0000000..566fee9 --- /dev/null +++ b/recipes/syslinux/syslinux_5.01.oe.sig @@ -0,0 +1 @@ +c41eecaad46a6d90bbdc7a855a6c2561aabc1e03 syslinux-5.01.tar.bz2