wok-next view ipxe/receipt @ rev 20905
Update packages from ISO and LFS backages (all but toolchain)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 07 00:30:45 2018 +0300 (2018-08-07) |
parents | b19ddba309f9 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ipxe"
4 VERSION="20180708"
5 COMMIT="d2063b7"
6 CATEGORY="system-tools"
7 SHORT_DESC="Open source network boot firmware"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2 UBDL"
10 WEB_SITE="http://ipxe.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GITHUB/ipxe/ipxe/tarball/$COMMIT"
15 BUILD_DEPENDS="perl xz-dev"
16 SPLIT="ipxe-pxe"
18 compile_rules() {
19 cd $src/src
21 # Fix https://git.ipxe.org/ipxe.git/commit/163f8acba0fbb6e3c44aec5286d3d076e1f44f22
22 sed -i 's/.*.section ".pages".*/.if64 ;\n&/;$a.endif' \
23 arch/x86/transitions/librm.S
25 #sed -i 's/^ASFLAGS.*/& -adhlns=$(<:.S=.lst)/' Makefile
26 sed -i 's|-llzma|& -lpthread|' Makefile.*
27 sed -i '
28 s|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|;
29 s|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
30 sed -i '
31 s|//\(#define.*IMAGE_PNG\)|\1|;
32 s|//\(#define.*CONSOLE_CMD\)|\1|;
33 s|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
34 # cp $stuff/lkrnprefix.S arch/i386/prefix
36 # refer to http://ipxe.org/appnote/buildtargets
37 case $ARCH in
38 i?86) platform='bin-i386-pcbios';;
39 x86_64) platform='bin-x86_64-pcbios';;
40 esac
42 make $platform || return 1
43 separator
45 make $platform/undionly.pxe $platform/undionly.kpxe \
46 $platform/undionly.kkpxe $platform/undionly.kkkpxe \
47 $platform/ipxe.pxe $platform/ipxe.kpxe \
48 $platform/ipxe.kkpxe $platform/ipxe.kkkpxe \
49 $platform/ipxe.nbi $platform/ipxe.lkrn \
50 EMBED=$stuff/ipxe.cmd || return 1
52 mkdir -p $install/boot/
53 cp -a $src/src/$platform/ipxe.lkrn $install/boot/ipxe
54 OFS=$((0x156))
55 unix2dos <<EOT | dd bs=1 of=$install/boot/ipxe conv=notrunc \
56 seek=$OFS count=$((0x1F0-$OFS))
57 $SHORT_DESC
58 EOT
60 mkdir -p $install/usr/share/boot/
61 cp -a $src/src/$platform/ipxe.kpxe $install/usr/share/boot/ipxe.pxe
62 cp -a $src/src/$platform/undionly.kpxe $install/usr/share/boot/undi.pxe
63 }
65 genpkg_rules() {
66 case $PACKAGE in
67 ipxe)
68 copy ipxe
69 ;;
70 ipxe-pxe)
71 copy *.pxe
72 CAT="system-tools|for pxe server"
73 ;;
74 esac
75 }