i.MX: split GPT and EPIT timer implementation
[qemu/ar7.git] / roms / Makefile
blob7a228aed8f2016f864a1df092502bd8fc700ee46
2 vgabios_variants := stdvga cirrus vmware qxl
3 pxerom_variants := e1000 eepro100 ne2k_pci pcnet rtl8139 virtio
5 pxe-rom-e1000 efi-rom-e1000 : VID := 8086
6 pxe-rom-e1000 efi-rom-e1000 : DID := 100e
7 pxe-rom-eepro100 efi-rom-eepro100 : VID := 8086
8 pxe-rom-eepro100 efi-rom-eepro100 : DID := 1209
9 pxe-rom-ne2k_pci efi-rom-ne2k_pci : VID := 1050
10 pxe-rom-ne2k_pci efi-rom-ne2k_pci : DID := 0940
11 pxe-rom-pcnet efi-rom-pcnet : VID := 1022
12 pxe-rom-pcnet efi-rom-pcnet : DID := 2000
13 pxe-rom-rtl8139 efi-rom-rtl8139 : VID := 10ec
14 pxe-rom-rtl8139 efi-rom-rtl8139 : DID := 8139
15 pxe-rom-virtio efi-rom-virtio : VID := 1af4
16 pxe-rom-virtio efi-rom-virtio : DID := 1000
19 # EfiRom utility is shipped with edk2 / tianocore, in BaseTools/
21 # We need that to combine multiple images (legacy bios,
22 # efi ia32, efi x64) into a single rom binary.
24 # We try to find it in the path. You can also pass the location on
25 # the command line, i.e. "make EFIROM=/path/to/EfiRom efirom"
27 EFIROM ?= $(shell which EfiRom 2>/dev/null)
29 default:
30 @echo "nothing is build by default"
31 @echo "available build targets:"
32 @echo " bios -- update bios.bin (seabios)"
33 @echo " seavgabios -- update vgabios binaries (seabios)"
34 @echo " lgplvgabios -- update vgabios binaries (lgpl)"
35 @echo " pxerom -- update nic roms (bios only)"
36 @echo " efirom -- update nic roms (bios+efi, this needs"
37 @echo " the EfiRom utility from edk2 / tianocore)"
39 bios: config.seabios
40 sh configure-seabios.sh $<
41 make -C seabios out/bios.bin
42 cp seabios/out/bios.bin ../pc-bios/bios.bin
43 cp seabios/out/*dsdt.aml ../pc-bios/
45 seavgabios: $(patsubst %,seavgabios-%,$(vgabios_variants))
47 seavgabios-%: config.vga.%
48 sh configure-seabios.sh $<
49 make -C seabios out/vgabios.bin
50 cp seabios/out/vgabios.bin ../pc-bios/vgabios-$*.bin
52 lgplvgabios: $(patsubst %,lgplvgabios-%,$(vgabios_variants))
54 lgplvgabios-%:
55 make -C vgabios vgabios-$*.bin
56 cp vgabios/VGABIOS-lgpl-latest.$*.bin ../pc-bios/vgabios-$*.bin
58 pxerom: $(patsubst %,pxe-rom-%,$(pxerom_variants))
60 pxe-rom-%: ipxe/src/config/local/general.h
61 make -C ipxe/src bin/$(VID)$(DID).rom
62 cp ipxe/src/bin/$(VID)$(DID).rom ../pc-bios/pxe-$*.rom
64 efirom: $(patsubst %,efi-rom-%,$(pxerom_variants))
66 efi-rom-%: ipxe/src/config/local/general.h
67 make -C ipxe/src bin/$(VID)$(DID).rom
68 make -C ipxe/src bin-i386-efi/$(VID)$(DID).efidrv
69 make -C ipxe/src bin-x86_64-efi/$(VID)$(DID).efidrv
70 $(EFIROM) -f "0x$(VID)" -i "0x$(DID)" -l 0x02 \
71 -b ipxe/src/bin/$(VID)$(DID).rom \
72 -ec ipxe/src/bin-i386-efi/$(VID)$(DID).efidrv \
73 -ec ipxe/src/bin-x86_64-efi/$(VID)$(DID).efidrv \
74 -o ../pc-bios/efi-$*.rom
76 ipxe/src/config/local/%: config.ipxe.%
77 cp $< $@