From patchwork Sun Jul 26 10:07:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D. Olsson" X-Patchwork-Id: 1336455 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=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=senzilla.io 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=protonmail2 header.b=ApfakA5B; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BDzBZ2HPwz9sRK for ; Sun, 26 Jul 2020 20:07:18 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9823121551; Sun, 26 Jul 2020 10:07:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I8yvgfC81HDI; Sun, 26 Jul 2020 10:07:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EBF3321539; Sun, 26 Jul 2020 10:07:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4BE251BF4DD for ; Sun, 26 Jul 2020 10:07:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 488948790E for ; Sun, 26 Jul 2020 10:07:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7u7FN4Mc3d0q for ; Sun, 26 Jul 2020 10:07:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4701E86D08 for ; Sun, 26 Jul 2020 10:07:12 +0000 (UTC) Date: Sun, 26 Jul 2020 10:07:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=senzilla.io; s=protonmail2; t=1595758029; bh=5v6YP4VlUAFR7J65BZlL+k4mCQMHbZ4sQ0ZmO0bdku8=; h=Date:To:From:Cc:Reply-To:Subject:From; b=ApfakA5BCRLyWp5YkPmjHnupF5yH7nqN/AxfGshTZjuTsfF5kbvpK5zSNtzfoHuZD /c/OzD73IA2YlKa8zoEit/5gS9AnZlCMRIM9NvTAlh6au86ntUqb+iWwVxwLS6glcJ bviJp/hWM29Izo8mixKF/9eVtYB/W0qcKcjWWtRmGOxUspmYHavTDtUNbXfgJWHB2v fKRcF1cFmRwKlLIrP8zYzzfV3S2JBa18la2tBoofq3klc7ECLZF6EhiHOas5OIWOR1 r27LY9oFKRPoXSyuoES9q+N0yxjQBQb0jFwfEdj0f55VjlhAGn09mAVrtMb8u/O63p uhyTy7R77bOTQ== To: buildroot@buildroot.org From: "D. Olsson" Message-ID: <20200726100541.7710-4-hi@senzilla.io> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 3/6] configs/aarch64_efi_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: , Reply-To: "D. Olsson" Cc: Dick Olsson Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Dick Olsson Prior to this, you had to manually download a pre-built EDK2 flash device image (QEMU_EFI.fd) in order to boot this configuration with QEMU. Now, the configuration is building EDK2 from source. Signed-off-by: Dick Olsson --- Revision 2: * Explicitly added the default EDK2 platform to defconfig --- board/aarch64-efi/readme.txt | 8 +++----- configs/aarch64_efi_defconfig | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/board/aarch64-efi/readme.txt b/board/aarch64-efi/readme.txt index 65a6345b6c..08747027e1 100644 --- a/board/aarch64-efi/readme.txt +++ b/board/aarch64-efi/readme.txt @@ -22,13 +22,11 @@ qemu-system-aarch64 \ -cpu cortex-a57 \ -m 512 \ -nographic \ - -bios \ + -bios output/images/QEMU_EFI.fd \ -drive file=output/images/disk.img,if=none,format=raw,id=hd0 \ -device virtio-blk-device,drive=hd0 \ -netdev user,id=eth0 \ -device virtio-net-device,netdev=eth0 -Note that needs to point to a valid aarch64 UEFI -firmware image for qemu. -It may be provided by your distribution as a edk2-aarch64 or AAVMF -package, in path such as /usr/share/edk2/aarch64/QEMU_EFI.fd . +Note that output/images/QEMU_EFI.fd is the flash device file built by +the EDK2 package. diff --git a/configs/aarch64_efi_defconfig b/configs/aarch64_efi_defconfig index 2aab6e9699..3da6542ea0 100644 --- a/configs/aarch64_efi_defconfig +++ b/configs/aarch64_efi_defconfig @@ -12,6 +12,8 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_PACKAGE_HOST_GENIMAGE=y # Bootloader +BR2_TARGET_EDK2=y +BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU=y BR2_TARGET_GRUB2=y BR2_TARGET_GRUB2_ARM64_EFI=y