wok-next view ipxe/receipt @ rev 21382
updated nbd (3.3 -> 3.20)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 17:27:00 2020 +0100 (2020-04-16) |
parents | ac50637642b7 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ipxe"
4 VERSION="1.20.1"
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="https://github.com/ipxe/ipxe/archive/v$VERSION.tar.gz"
14 COOKOPTS="force-arch" # different ipxe, .pxe ?
16 BUILD_DEPENDS="perl xz-dev"
17 SPLIT="$PACKAGE-pxe"
19 compile_rules() {
20 cd $src/src
22 sed -i 's|\(SIZEOF_LOW_4GB\) / \(SIZEOF_2MB_PAGE\)|1<<(\1_LOG2-\2_LOG2)|' \
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|.*\(NET_PROTO_IPV6\)|#define \1|;
33 s|undef \(DOWNLOAD_PROTO_HTTPS\)|define \1|;
34 s|.*\(VLAN_CMD\)|#define \1|;
35 s|.*\(CERT_CMD\)|#define \1|;
36 s|//\(#define.*CONSOLE_CMD\)|\1|;
37 s|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
38 sed -i "s|\(TAG_LINE \"\)|\1${VERSION#*-} -- |" config/branding.h
39 sed -i 's|//\(#define.*CPUID_SETTINGS\)|\1|' config/settings.h
40 # cp $stuff/lkrnprefix.S arch/i386/prefix
42 # refer to http://ipxe.org/appnote/buildtargets
43 case $ARCH in
44 i?86) platform='bin-i386-pcbios';;
45 x86_64) platform='bin-x86_64-pcbios';;
46 esac
48 make $platform || return 1
49 separator
51 make $platform/undionly.pxe $platform/undionly.kpxe \
52 $platform/undionly.kkpxe $platform/undionly.kkkpxe \
53 $platform/ipxe.pxe $platform/ipxe.kpxe \
54 $platform/ipxe.kkpxe $platform/ipxe.kkkpxe \
55 $platform/ipxe.nbi $platform/ipxe.lkrn \
56 EMBED=$stuff/ipxe.cmd || return 1
58 mkdir -p $install/boot/
59 cp -a $src/src/$platform/ipxe.lkrn $install/boot/ipxe
60 OFS=$((0x156))
61 unix2dos <<EOT | dd bs=1 of=$install/boot/ipxe conv=notrunc \
62 seek=$OFS count=$((0x1F0-$OFS))
63 $SHORT_DESC
64 EOT
66 mkdir -p $install/usr/share/boot/
67 cp -a $src/src/$platform/ipxe.kpxe $install/usr/share/boot/ipxe.pxe
68 cp -a $src/src/$platform/undionly.kpxe $install/usr/share/boot/undi.pxe
69 }
71 genpkg_rules() {
72 case $PACKAGE in
73 ipxe)
74 copy ipxe
75 ;;
76 ipxe-pxe)
77 copy *.pxe
78 CAT="system-tools|for pxe server"
79 ;;
80 esac
81 }