wok-next view ipxe/receipt @ rev 20859

Update ALSA stack (1.1.6)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 27 13:35:43 2018 +0300 (2018-06-27)
parents 4396aed7eb01
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="perl xz-dev"
15 SPLIT="ipxe-pxe"
17 compile_rules() {
18 cd $src/src
20 # Fix https://git.ipxe.org/ipxe.git/commit/163f8acba0fbb6e3c44aec5286d3d076e1f44f22
21 sed -i 's/.*.section ".pages".*/.if64 ;\n&/;$a.endif' \
22 arch/x86/transitions/librm.S
24 #sed -i 's/^ASFLAGS.*/& -adhlns=$(<:.S=.lst)/' Makefile
25 sed -i 's/-llzma/& -lpthread/' Makefile.*
26 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h
27 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h
28 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \
29 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
30 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h
31 cp $stuff/lkrnprefix.S arch/i386/prefix
33 # refer to http://ipxe.org/appnote/buildtargets
34 case $ARCH in
35 i?86) platform='bin-i386-pcbios';;
36 x86_64) platform='bin-x86_64-pcbios';;
37 esac
39 make $platform || return 1
40 separator
42 make $platform/undionly.pxe $platform/undionly.kpxe \
43 $platform/undionly.kkpxe $platform/undionly.kkkpxe \
44 $platform/ipxe.pxe $platform/ipxe.kpxe \
45 $platform/ipxe.kkpxe $platform/ipxe.kkkpxe \
46 $platform/ipxe.nbi $platform/ipxe.lkrn \
47 EMBED=$stuff/ipxe.cmd || return 1
49 mkdir -p $install/boot/
50 cp -a $src/src/$platform/ipxe.lkrn $install/boot/ipxe
51 OFS=$((0x156))
52 unix2dos <<EOT | dd bs=1 of=$install/boot/ipxe conv=notrunc \
53 seek=$OFS count=$((0x1F0-$OFS))
54 $SHORT_DESC
55 EOT
57 mkdir -p $install/usr/share/boot/
58 cp -a $src/src/$platform/ipxe.kpxe $install/usr/share/boot/ipxe.pxe
59 cp -a $src/src/$platform/undionly.kpxe $install/usr/share/boot/undi.pxe
60 }
62 genpkg_rules() {
63 case $PACKAGE in
64 ipxe)
65 copy ipxe
66 ;;
67 ipxe-pxe)
68 copy *.pxe
69 CAT="system-tools|for pxe server"
70 ;;
71 esac
72 }