wok view ipxe/receipt @ rev 19982
mosh: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:40:28 2017 +0200 (2017-06-22) |
parents | 00f617fc019e |
children | 49e861a5cc92 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ipxe"
4 VERSION="1.0.0-20170417"
5 GIT_TAG="2d79b20f2a3eba199012de3bd11f8aef0a5b9dbf"
6 CATEGORY="system-tools"
7 SHORT_DESC="Open source network boot firmware."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://ipxe.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://git.ipxe.org/ipxe.git/snapshot/$GIT_TAG.tar.bz2"
14 DEPENDS=""
15 BUILD_DEPENDS="perl wget liblzma-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
21 sed -i 's|SIZEOF_LOW_4GB / SIZEOF_2MB_PAGE|1 << (SIZEOF_LOW_4GB_LOG2 - SIZEOF_2MB_PAGE_LOG2)|' arch/x86/transitions/librm.S
22 sed -i 's/-llzma/& -lpthread/' Makefile.*
23 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
24 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
25 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
26 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
27 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
28 cp $stuff/lkrnprefix.S arch/i386/prefix
29 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \
30 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \
31 bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir $fs/boot
38 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe
39 OFS=$((0x156))
40 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \
41 seek=$OFS count=$((0x1F0-$OFS))
42 $SHORT_DESC
43 EOT
44 }