1 TARG=bootia32.efi bootx64.efi efiboot.fat
5 PEFLAGS=$CFLAGS '-DIMAGEBASE='$IMAGEBASE
12 bootia32.efi: pe32.8 efi.8 fs.8 pxe.8 iso.8 sub.8
13 8l -l -H3 -T$IMAGEBASE -o $target $prereq
36 bootx64.efi: pe64.6 efi.6 fs.6 pxe.6 iso.6 sub.6
37 6l -l -s -R1 -T$IMAGEBASE -o bootx64.out $prereq
38 dd -if bootx64.out -bs 1 -iseek 40 >$target
60 efiboot.fat:D: bootia32.efi bootx64.efi
63 dd -if /dev/zero -of $target -bs 1024 -count 1024
64 disk/format -xd -t hard $target
66 mount -c /srv/$s /n/esp
69 cp bootia32.efi /n/esp/efi/boot
70 cp bootx64.efi /n/esp/efi/boot
75 test.iso:D: efiboot.fat
80 cp efiboot.fat tmp/386
81 cp /386/9bootiso tmp/386
83 echo 'bootfile=/386/9pc' >tmp/cfg/plan9.ini
84 disk/mk9660 -B 386/9bootiso -E 386/efiboot.fat -p <{echo +} -s tmp $target
87 test.fat:D: bootia32.efi bootx64.efi
90 dd -if /dev/zero -of $target -bs 65536 -count 128
91 disk/format -xd -t hard $target
93 mount -c /srv/$s /n/esp
96 cp bootia32.efi /n/esp/efi/boot
97 cp bootx64.efi /n/esp/efi/boot
99 echo 'bootfile=9pc' >/n/esp/plan9.ini
105 rm -f *.[68] *.out $TARG test.*