From nobody Tue Nov 4 08:20:28 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1504263286265436.70434911454015; Fri, 1 Sep 2017 03:54:46 -0700 (PDT) Received: from localhost ([::1]:34972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnjb3-0005Qd-3o for importer@patchew.org; Fri, 01 Sep 2017 06:54:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnja5-0004wi-Fr for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:53:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnja0-0008CR-O1 for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:53:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39106) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dnja0-0008CJ-HU for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:53:40 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81E34404333 for ; Fri, 1 Sep 2017 10:53:39 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-70.ams2.redhat.com [10.36.116.70]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8C63E71C46; Fri, 1 Sep 2017 10:53:37 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BF31A16A890; Fri, 1 Sep 2017 12:53:36 +0200 (CEST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 81E34404333 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=kraxel@redhat.com From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 1 Sep 2017 12:53:31 +0200 Message-Id: <20170901105331.11783-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 01 Sep 2017 10:53:39 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] docs: add firmware.txt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Document how guest firmware is handled in qemu today. Reviewed-by: Laszlo Ersek Signed-off-by: Gerd Hoffmann --- docs/firmware.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 docs/firmware.txt diff --git a/docs/firmware.txt b/docs/firmware.txt new file mode 100644 index 0000000000..e242413344 --- /dev/null +++ b/docs/firmware.txt @@ -0,0 +1,49 @@ + +prebuilt firmware in qemu +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D + +The process of building firmware isn't as easy as building qemu +itself, for example because you must have cross compilers installed +when building firmware for other architectures. So qemu ships +prebuilt firmware binaries for convenience reasons. + + +directories +----------- + +pc-bios/ + Firmware binaries. + Also other files like keymaps and logos which are copied to + $prefix/share/qemu by "make install". + +pc-bios/optionrom/ + Firmware sources, part of the qemu project. + +roms/ + Firmware sources, third-party projects, as git submodules. + + +third-party git repos +--------------------- + +For third party firmware sources it is recommended to have a git +mirror on git.qemu.org. In case the firmware license is GPL the git +mirror is mandatory for GPL compilance reasons: We ship binaries, so +we must provide sources too. + + +building the firmware +--------------------- + +Firmware builds should be done using rules in roms/Makefile. That +serves as documentation how the firmware is built, and it also makes +firmware updates easier for the maintainer. + +"make -C roms" prints a list of firmware build targets. +"make -C roms $target" kicks a build. + + +notes for specific firmwares +---------------------------- + +ipxe: see https://wiki.qemu.org/IpxeDownstreamForQemu --=20 2.9.3