wok annotate ipxe/receipt @ rev 20039

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