mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
bump(sys-boot/syslinux): Add syslinux with EFI support.
This commit is contained in:
parent
1b0e4e877e
commit
510094683a
@ -1 +1,2 @@
|
||||
DIST syslinux-4.07.tar.bz2 5761877 SHA256 1240a4e4219b518bdaef78931b6e901befeff35e6894ac6db785115848a7a05a SHA512 8efbd14803ec74c5ee699a754b4727e4b975c08afd4dbb39f4b7ccdb90743e4459cd4609c6f1065c7b7efaa26c9d465806254891795d363758f35a2fe5704ae5 WHIRLPOOL b68966ed87055a157812f36f2881b4a86797eacef1894b70c1a063327547264daa4b4ca1ea52ccb286ab86332c2163e57004d3503215497278e073b48583a9dc
|
||||
DIST syslinux-6.03-pre9.tar.xz 6820056 SHA256 adeda4dfbaf0e7604561d59d73f5f156d398f87411ca5f56f56fe15675f3e3b0 SHA512 9b3d14c496a5fe8fa446d1ce265e17508334b1cdae4443c6965861b6dcccb96099b9c97e492761af19732cb5dcabd0ad6642119a6defd0e18e072a0a752278d8 WHIRLPOOL 3a5a21927c3c00399c7ff8d64346c29706a0f0060c9ec05d38140529108b59bdb7ef1e83bd24afd9cbb80eb8b0d00185004c403e84e70fe7a8c0077e09d886b5
|
||||
|
84
sdk_container/src/third_party/coreos-overlay/sys-boot/syslinux/syslinux-6.03_pre9.ebuild
vendored
Normal file
84
sdk_container/src/third_party/coreos-overlay/sys-boot/syslinux/syslinux-6.03_pre9.ebuild
vendored
Normal file
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-boot/syslinux/syslinux-6.03_pre1.ebuild,v 1.2 2014/02/09 18:04:43 zerochaos Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
|
||||
HOMEPAGE="http://www.syslinux.org/"
|
||||
SRC_URI="mirror://kernel/linux/utils/boot/syslinux/Testing/${PV:0:4}/${P/_/-}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 x86"
|
||||
IUSE="custom-cflags +perl"
|
||||
|
||||
RDEPEND="sys-apps/util-linux
|
||||
sys-fs/mtools
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/Crypt-PasswdMD5
|
||||
dev-perl/Digest-SHA1
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/nasm
|
||||
virtual/os-headers"
|
||||
|
||||
S=${WORKDIR}/${P/_/-}
|
||||
|
||||
QA_PREBUILT="usr/share/${PN}/*.c32"
|
||||
|
||||
src_prepare() {
|
||||
# Don't prestrip or override user LDFLAGS, bug #305783
|
||||
local SYSLINUX_MAKEFILES="extlinux/Makefile linux/Makefile mtools/Makefile \
|
||||
sample/Makefile utils/Makefile"
|
||||
sed -i ${SYSLINUX_MAKEFILES} -e '/^LDFLAGS/d' || die "sed failed"
|
||||
|
||||
if use custom-cflags; then
|
||||
sed -i ${SYSLINUX_MAKEFILES} \
|
||||
-e 's|-g -Os||g' \
|
||||
-e 's|-Os||g' \
|
||||
-e 's|CFLAGS[[:space:]]\+=|CFLAGS +=|g' \
|
||||
|| die "sed custom-cflags failed"
|
||||
else
|
||||
QA_FLAGS_IGNORED="
|
||||
/sbin/extlinux
|
||||
/usr/bin/memdiskfind
|
||||
/usr/bin/gethostip
|
||||
/usr/bin/isohybrid
|
||||
/usr/bin/syslinux
|
||||
"
|
||||
fi
|
||||
case ${ARCH} in
|
||||
amd64) loaderarch="efi64" ;;
|
||||
x86) loaderarch="efi32" ;;
|
||||
*) ewarn "Unsupported architecture, building installers only." ;;
|
||||
esac
|
||||
|
||||
# Don't build/install scripts if perl is disabled
|
||||
if ! use perl; then
|
||||
sed -i utils/Makefile \
|
||||
-e 's/$(TARGETS)/$(C_TARGETS)/' \
|
||||
-e 's/$(ASIS)//' \
|
||||
|| die "sed remove perl failed"
|
||||
rm man/{lss16toppm.1,ppmtolss16.1,syslinux2ansi.1} || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# build system abuses the LDFLAGS variable to pass arguments to ld
|
||||
unset LDFLAGS
|
||||
if [[ ! -z ${loaderarch} ]]; then
|
||||
emake CC=$(tc-getCC) LD=$(tc-getLD) ${loaderarch}
|
||||
fi
|
||||
emake CC=$(tc-getCC) LD=$(tc-getLD) ${loaderarch} installer
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# parallel install fails sometimes
|
||||
einfo "loaderarch=${loaderarch}"
|
||||
emake -j1 LD=$(tc-getLD) INSTALLROOT="${D}" MANDIR=/usr/share/man bios ${loaderarch} install
|
||||
dodoc README NEWS doc/*.txt
|
||||
}
|
Loading…
Reference in New Issue
Block a user