wok-next annotate ipxe/receipt @ rev 19622
ipxe: Generate page tables for 64-bit builds *only*
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 08 15:37:19 2017 +0100 (2017-02-08) |
parents | 18c4d15a72df |
children | 0e7893ac206d |
rev | line source |
---|---|
pascal@13422 | 1 # SliTaz package receipt. |
pascal@13422 | 2 |
pascal@13422 | 3 PACKAGE="ipxe" |
al@19601 | 4 VERSION="41f786c" |
pascal@13422 | 5 CATEGORY="system-tools" |
pascal@13422 | 6 SHORT_DESC="Open source network boot firmware." |
pascal@13422 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
al@19601 | 8 LICENSE="GPL2 UBDL" |
pascal@13422 | 9 WEB_SITE="http://ipxe.org/" |
al@19601 | 10 |
al@19601 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19601 | 12 WGET_URL="$GITHUB/ipxe/ipxe/tarball/$VERSION" |
pascal@13422 | 13 |
pascal@13422 | 14 DEPENDS="" |
al@19601 | 15 BUILD_DEPENDS="perl liblzma-dev" |
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@19622 | 21 |
pascal@19622 | 22 # Fix https://git.ipxe.org/ipxe.git/commit/163f8acba0fbb6e3c44aec5286d3d076e1f44f22 |
pascal@19622 | 23 sed -i 's/.*.section ".pages".*/.if64 ;\n&/;$a.endif' \ |
pascal@19622 | 24 arch/x86/transitions/librm.S |
pascal@19622 | 25 |
pascal@19622 | 26 #sed -i 's/^ASFLAGS.*/& -adhlns=$(<:.S=.lst)/' Makefile |
pascal@18836 | 27 sed -i 's/-llzma/& -lpthread/' Makefile.* |
pascal@18836 | 28 sed -i 's|//\(#define.*CONSOLE_FRAMEBUFFER\)|\1|' config/console.h |
pascal@18901 | 29 sed -i 's|//\(#define.*CONSOLE_SERIAL\)|\1|' config/console.h |
pascal@18836 | 30 sed -i -e 's|//\(#define.*IMAGE_PNG\)|\1|' \ |
pascal@18836 | 31 -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \ |
pascal@18836 | 32 -e 's|//\(#define.*REBOOT_CMD\)|\1|' config/general.h |
pascal@15368 | 33 cp $stuff/lkrnprefix.S arch/i386/prefix |
al@19601 | 34 |
al@19601 | 35 make all |
al@19601 | 36 separator |
al@19601 | 37 |
pascal@19333 | 38 make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \ |
pascal@19333 | 39 bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \ |
pascal@19333 | 40 bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn EMBED=$stuff/ipxe.cmd |
pascal@13422 | 41 } |
pascal@13422 | 42 |
pascal@13422 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13422 | 44 genpkg_rules() |
pascal@13422 | 45 { |
pascal@13422 | 46 mkdir $fs/boot |
pascal@13422 | 47 cp -a $src/src/bin/ipxe.lkrn $fs/boot/ipxe |
pascal@17475 | 48 OFS=$((0x156)) |
pascal@15368 | 49 unix2dos <<EOT | dd bs=1 of=$fs/boot/ipxe conv=notrunc \ |
pascal@15368 | 50 seek=$OFS count=$((0x1F0-$OFS)) |
pascal@15368 | 51 $SHORT_DESC |
pascal@13422 | 52 EOT |
pascal@13422 | 53 } |