From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSJ1-0003bx-6d for qemu-devel@nongnu.org; Mon, 04 Mar 2013 05:07:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCSIy-0004J0-An for qemu-devel@nongnu.org; Mon, 04 Mar 2013 05:07:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSIx-0004IR-Qr for qemu-devel@nongnu.org; Mon, 04 Mar 2013 05:07:36 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r24A7YmZ000980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 4 Mar 2013 05:07:35 -0500 From: Gerd Hoffmann Date: Mon, 4 Mar 2013 11:07:29 +0100 Message-Id: <1362391653-22287-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1362391653-22287-1-git-send-email-kraxel@redhat.com> References: <1362391653-22287-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/5] Add Makefile rules to build nic rom binaries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann "make -C roms pxerom" will build the ipxe roms and update the binaries in pc-bios/, i.e. it basically documents how the build process of our current nic roms works. Signed-off-by: Gerd Hoffmann --- roms/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/roms/Makefile b/roms/Makefile index 5e645bc..be33652 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -1,5 +1,19 @@ vgabios_variants := stdvga cirrus vmware qxl +pxerom_variants := e1000 eepro100 ne2k_pci pcnet rtl8139 virtio + +pxe-rom-e1000 : VID := 8086 +pxe-rom-e1000 : DID := 100e +pxe-rom-eepro100 : VID := 8086 +pxe-rom-eepro100 : DID := 1209 +pxe-rom-ne2k_pci : VID := 1050 +pxe-rom-ne2k_pci : DID := 0940 +pxe-rom-pcnet : VID := 1022 +pxe-rom-pcnet : DID := 2000 +pxe-rom-rtl8139 : VID := 10ec +pxe-rom-rtl8139 : DID := 8139 +pxe-rom-virtio : VID := 1af4 +pxe-rom-virtio : DID := 1000 default: @echo "nothing is build by default" @@ -7,6 +21,7 @@ default: @echo " bios -- update bios.bin (seabios)" @echo " seavgabios -- update vgabios binaries (seabios)" @echo " lgplvgabios -- update vgabios binaries (lgpl)" + @echo " pxerom -- update nic roms (bios only)" bios: config.seabios sh configure-seabios.sh $< @@ -26,3 +41,9 @@ lgplvgabios: $(patsubst %,lgplvgabios-%,$(vgabios_variants)) lgplvgabios-%: make -C vgabios vgabios-$*.bin cp vgabios/VGABIOS-lgpl-latest.$*.bin ../pc-bios/vgabios-$*.bin + +pxerom: $(patsubst %,pxe-rom-%,$(pxerom_variants)) + +pxe-rom-%: + make -C ipxe/src bin/$(VID)$(DID).rom + cp ipxe/src/bin/$(VID)$(DID).rom ../pc-bios/pxe-$*.rom -- 1.7.9.7