wok-next view ipxe/receipt @ rev 19618

memtest: update for GCC5
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 06 18:15:00 2017 +0100 (2017-02-06)
parents 997d9f1a70ea
children ab0405bc4658
line source
1 # SliTaz package receipt.
3 PACKAGE="ipxe"
4 VERSION="41f786c"
5 CATEGORY="system-tools"
6 SHORT_DESC="Open source network boot firmware."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 UBDL"
9 WEB_SITE="http://ipxe.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GITHUB/ipxe/ipxe/tarball/$VERSION"
14 DEPENDS=""
15 BUILD_DEPENDS="perl liblzma-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
21 sed -i 's/-llzma/& -lpthread/' Makefile.*
22 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
23 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
24 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
25 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
26 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
27 cp $stuff/lkrnprefix.S arch/i386/prefix
29 make all
30 separator
32 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \
33 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \
34 bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir $fs/boot
41 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
42 OFS=$((0x156))
43 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
44 seek=$OFS count=$((0x1F0-$OFS))
45 $SHORT_DESC
46 EOT
47 }