wok rev 23940

ipxe: fix snponly.efi & ipxelinux.efi builds
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 12 17:42:55 2020 +0000 (10 days ago)
parents e7cc0973e277
children 1b16d6618288
files ipxe/receipt
line diff
     1.1 --- a/ipxe/receipt	Sat Sep 12 12:54:45 2020 +0000
     1.2 +++ b/ipxe/receipt	Sat Sep 12 17:42:55 2020 +0000
     1.3 @@ -29,17 +29,19 @@
     1.4  	    -e 's|//\(#define.*CONSOLE_CMD\)|\1|' \
     1.5  	    -e 's|//\(#define.*REBOOT_CMD\)|\1|' -i config/general.h
     1.6  	sed -i "s|\(TAG_LINE \"\)|\1${VERSION#*-} -- |" config/branding.h
     1.7 -	sed -e 's|//\(#define.*CPUID_SETTINGS\)|\1|' \
     1.8 -	    -e 's|//\(#define.*MEMMAP_SETTINGS\)|\1|' -i config/settings.h
     1.9 +	sed -i 's|//\(#define.*CPUID_SETTINGS\)|\1|' config/settings.h
    1.10  	pxelinux="$(ls $WOK/syslinux/source/*/core/pxelinux.0)"
    1.11 +	make bin-i386-efi/snponly.efi EMBED=$stuff/ipxelinux.ipxe,$pxelinux &&
    1.12 +		mv bin-i386-efi/snponly.efi bin-i386-efi/ipxelinux.efi
    1.13 +	make bin-i386-efi/ipxe.efi bin-i386-efi/snponly.efi EMBED=$stuff/ipxe.cmd
    1.14 +
    1.15 +	sed -i 's|//\(#define.*MEMMAP_SETTINGS\)|\1|' config/settings.h
    1.16  	make bin/undionly.kkkpxe EMBED=$stuff/ipxelinux.ipxe,$pxelinux &&
    1.17  		mv bin/undionly.kkkpxe bin/ipxelinux.0
    1.18 -	make bin-i386-efi/snponly.efi EMBED=$stuff/ipxelinux.ipxe,$pxelinux &&
    1.19 -		mv bin-i386-efi/snponly.efi bin-i386-efi/ipxelinux.efi
    1.20  	make bin/undionly.pxe bin/undionly.kpxe bin/undionly.kkpxe \
    1.21  	     bin/undionly.kkkpxe bin/ipxe.pxe bin/ipxe.kpxe bin/ipxe.kkpxe \
    1.22 -	     bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn bin-i386-efi/ipxe.efi \
    1.23 -	     bin-i386-efi/snponly.efi bin/ipxe.exe EMBED=$stuff/ipxe.cmd
    1.24 +	     bin/ipxe.kkkpxe bin/ipxe.nbi bin/ipxe.lkrn \
    1.25 +	     bin/ipxe.exe EMBED=$stuff/ipxe.cmd
    1.26  	cp $stuff/bootloader.S .
    1.27  	cc -o bootloader.o -Wa,-a=bootloader.lst -c bootloader.S
    1.28  	objcopy -O binary bootloader.o bootloader.bin