From patchwork Thu Mar 18 15:43:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D. Olsson" X-Patchwork-Id: 1455337 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=senzilla.io header.i=@senzilla.io header.a=rsa-sha256 header.s=protonmail3 header.b=m+3PdsHp; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F1WjH1wbFz9sVw for ; Fri, 19 Mar 2021 02:51:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3EE36842B3; Thu, 18 Mar 2021 15:51:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wB7TurYNH_zU; Thu, 18 Mar 2021 15:51:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 9A9E0842A2; Thu, 18 Mar 2021 15:51:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id EFA711BF9B4 for ; Thu, 18 Mar 2021 15:51:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id DF594432A5 for ; Thu, 18 Mar 2021 15:51:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=senzilla.io Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HuR_NN1g9dVS for ; Thu, 18 Mar 2021 15:51:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mail-41103.protonmail.ch (mail-41103.protonmail.ch [185.70.41.103]) by smtp2.osuosl.org (Postfix) with ESMTPS id A753743291 for ; Thu, 18 Mar 2021 15:51:11 +0000 (UTC) Received: from mail-02.mail-europe.com (mail-02.mail-europe.com [51.89.119.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-41103.protonmail.ch (Postfix) with ESMTPS id 4F1WWr5KBWz4wxLW for ; Thu, 18 Mar 2021 15:43:20 +0000 (UTC) Authentication-Results: mail-41103.protonmail.ch; dkim=pass (2048-bit key) header.d=senzilla.io header.i=@senzilla.io header.b="m+3PdsHp" Date: Thu, 18 Mar 2021 15:43:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=senzilla.io; s=protonmail3; t=1616082191; bh=oREW5Bt9QUzvAZ2Ri/mZycNQQ+eUgLqOEIJnUwKuyfg=; h=Date:To:From:Cc:Reply-To:Subject:From; b=m+3PdsHp9kP3x+7EMaRL2H3X7nZxlOVczgi1OqDzAZAiGuyXCJNwSUDZ+lhK68CbX SRsOqnG4xTs7yhK/V4xjwKP3DMRZPQv0WF49aaWfdQUb0V5dIg+xGrX1d2GmKpwg5K COv0lvkXrE0kjwY+sqU6l0yYYsjffjjXMHDauSbO3UeGGvz/FYSp15zgYm3kVjl3cV Wih8pAgKhmHZGsnW1xccWgbC7iuAsibdWCvOFuT6wNKjV2uxiUfZuqEnu8Ani0Ndq2 0c53nOYHwS5jZJoIzoxptohhDRgIBjThpOfFryG7mJTPMVw4pcHkOl+cm0qTQ2FTFl iafTzSpec1BZA== To: buildroot@buildroot.org Message-ID: MIME-Version: 1.0 Subject: [Buildroot] [PATCH v4 05/10] configs/pc_x86_64_defconfig: build the EDK2 firmware from source X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Dick Olsson via buildroot Reply-To: Dick Olsson Cc: Dick Olsson Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Prior to this, you had to manually download a pre-built EDK2 flash device image (OVMF_CODE.fd) in order to boot this configuration with QEMU. Now, the configuration is building EDK2 from source. Signed-off-by: Dick Olsson --- board/pc/readme.txt | 9 ++++----- configs/pc_x86_64_efi_defconfig | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/board/pc/readme.txt b/board/pc/readme.txt index 41aec50d36..c06ffb0a51 100644 --- a/board/pc/readme.txt +++ b/board/pc/readme.txt @@ -61,12 +61,11 @@ Run the emulation with: qemu-system-x86_64 \ -M pc \ - -bios \ + -drive file=output/images/OVMF_CODE.fd,if=pflash,format=raw \ + -drive file=output/images/OVMF_VARS.fd,if=pflash,format=raw \ -drive file=output/images/disk.img,if=virtio,format=raw \ -net nic,model=virtio \ -net user -Note that needs to point to a valid x86_64 UEFI -firmware image for qemu. It may be provided by your distribution as a -edk2 or OVMF package, in path such as -/usr/share/edk2/ovmf/OVMF_CODE.fd . +Note that output/images/OVMF_*.fd are the flash device files built by +the EDK2 package. diff --git a/configs/pc_x86_64_efi_defconfig b/configs/pc_x86_64_efi_defconfig index 984fc8f92f..1680cda9bb 100644 --- a/configs/pc_x86_64_efi_defconfig +++ b/configs/pc_x86_64_efi_defconfig @@ -14,6 +14,8 @@ BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y # Bootloader +BR2_TARGET_EDK2=y +BR2_TARGET_EDK2_PLATFORM_OVMF_X64=y BR2_TARGET_GRUB2=y BR2_TARGET_GRUB2_X86_64_EFI=y