wok-next view ipxe/receipt @ rev 21196

updated scrollz again (2.2.3 -> 2.3)
author Hans-G?nter Theisgen
date Thu Oct 03 16:09:40 2019 +0100 (2019-10-03)
parents e19ff076dc63
children b8b2390cca8a
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 COOKOPTS="force-arch" # different ipxe, .pxe ?
17 BUILD_DEPENDS="perl xz-dev"
18 SPLIT="$PACKAGE-pxe"
20 compile_rules() {
21 cd $src/src
23 # Fix https://git.ipxe.org/ipxe.git/commit/163f8acba0fbb6e3c44aec5286d3d076e1f44f22
24 sed -i 's/.*.section ".pages".*/.if64 ;\n&/;$a.endif' \
25 arch/x86/transitions/librm.S
27 #sed -i 's/^ASFLAGS.*/& -adhlns=$(<:.S=.lst)/' Makefile
28 sed -i 's|-llzma|& -lpthread|' Makefile.*
29 sed -i '
30 s|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|;
31 s|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
32 sed -i '
33 s|//\(#define.*IMAGE_PNG\)|\1|;
34 s|//\(#define.*CONSOLE_CMD\)|\1|;
35 s|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
36 # cp $stuff/lkrnprefix.S arch/i386/prefix
38 # refer to http://ipxe.org/appnote/buildtargets
39 case $ARCH in
40 i?86) platform='bin-i386-pcbios';;
41 x86_64) platform='bin-x86_64-pcbios';;
42 esac
44 make $platform || return 1
45 separator
47 make $platform/undionly.pxe $platform/undionly.kpxe \
48 $platform/undionly.kkpxe $platform/undionly.kkkpxe \
49 $platform/ipxe.pxe $platform/ipxe.kpxe \
50 $platform/ipxe.kkpxe $platform/ipxe.kkkpxe \
51 $platform/ipxe.nbi $platform/ipxe.lkrn \
52 EMBED=$stuff/ipxe.cmd || return 1
54 mkdir -p $install/boot/
55 cp -a $src/src/$platform/ipxe.lkrn $install/boot/ipxe
56 OFS=$((0x156))
57 unix2dos <<EOT | dd bs=1 of=$install/boot/ipxe conv=notrunc \
58 seek=$OFS count=$((0x1F0-$OFS))
59 $SHORT_DESC
60 EOT
62 mkdir -p $install/usr/share/boot/
63 cp -a $src/src/$platform/ipxe.kpxe $install/usr/share/boot/ipxe.pxe
64 cp -a $src/src/$platform/undionly.kpxe $install/usr/share/boot/undi.pxe
65 }
67 genpkg_rules() {
68 case $PACKAGE in
69 ipxe)
70 copy ipxe
71 ;;
72 ipxe-pxe)
73 copy *.pxe
74 CAT="system-tools|for pxe server"
75 ;;
76 esac
77 }