From patchwork Wed May 12 18:36:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D. Olsson" X-Patchwork-Id: 1477765 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=ybaTmoq4; 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 4FgNmH37dYz9tjv for ; Thu, 13 May 2021 04:36:31 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1417984421; Wed, 12 May 2021 18:36:28 +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 dvaDeg6BidvV; Wed, 12 May 2021 18:36:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 58E0D8441D; Wed, 12 May 2021 18:36:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id AC70F1C1178 for ; Wed, 12 May 2021 18:36:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 9BF1960DE2 for ; Wed, 12 May 2021 18:36:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=senzilla.io Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H9LWwaVhWiQk for ; Wed, 12 May 2021 18:36:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6E25060DE1 for ; Wed, 12 May 2021 18:36:16 +0000 (UTC) Date: Wed, 12 May 2021 18:36:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=senzilla.io; s=protonmail3; t=1620844573; bh=E79SI+SXCmT8/WXh9uJcpsiTVea4d+aD1CUhS2hYlIM=; h=Date:To:From:Cc:Reply-To:Subject:From; b=ybaTmoq4rt5htMLTaaztI7JG4xFd3u4RwSbMxKId9ao730OrXu0UMqc59JrsJyx0D 3tYJZRqOi6oSGx3hBkPEH81OWci2ABVCbEDlHenVvXqn2gXHlVn5y8MTIxSpqZVL0h C8KrJJOKpZM7uVPPj8UT9Jcg3WA3x/PDTIS7vqyNmJ/7y7Zd1+IgxSKEFIjJdWQP7P 8dzIRJ44ZR5O25NDxAu2wrd0yzxWxSkyXJs6Yo6lqfTHidRHm/RaLbUFtV8Q308/b4 j930l71bb8bBiJJn/KFkxgWC6uDXLqHT+yeaKNRsbceTYyTQGjdszzHEBZQu22rAUa jr9ZLyHE07EbA== To: buildroot@buildroot.org Message-ID: MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5 01/10] package/edk2-platforms: new package 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: Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" EDK2 firmware is usually built from two sources; the core EDK2 environment, and additional platform description files maintained separately. This package adds the latter set of description files to staging so that the core EDK2 package can build with these for certain platforms during the building process. Signed-off-by: Dick Olsson --- Revision 5: * check-package fixes * Bumped to the latest stable version Revision 4: * Addressed review items from Yann Morin * Install description files to the staging dir instead of the host dir * Updated to HEAD as of 7 Jan, 2021 Revision 3: * Added standard comment header * Added sha256 of the license file * Updated to hash matching edk2 202008 Revision 2: * Now installs all description files into HOST_DIR so other packages do not have to compile from its BUILD_DIR (suggested by Thomas Petazzoni) --- package/Config.in | 1 + package/edk2-platforms/Config.in | 8 ++++++++ package/edk2-platforms/edk2-platforms.hash | 3 +++ package/edk2-platforms/edk2-platforms.mk | 22 ++++++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 package/edk2-platforms/Config.in create mode 100644 package/edk2-platforms/edk2-platforms.hash create mode 100644 package/edk2-platforms/edk2-platforms.mk diff --git a/package/Config.in b/package/Config.in index 6181aaac2c..bfb8d5a78b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -460,6 +460,7 @@ endmenu source "package/dvb-apps/Config.in" source "package/dvbsnoop/Config.in" source "package/edid-decode/Config.in" + source "package/edk2-platforms/Config.in" source "package/eudev/Config.in" source "package/ev3dev-linux-drivers/Config.in" source "package/evemu/Config.in" diff --git a/package/edk2-platforms/Config.in b/package/edk2-platforms/Config.in new file mode 100644 index 0000000000..17633c0fdd --- /dev/null +++ b/package/edk2-platforms/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_EDK2_PLATFORMS + bool + help + EDK2 description files for all supported platforms. + The main EDK2 bootloader package will depend on these + description files while building firmware for some platforms. + + https://github.com/tianocore/edk2-platforms diff --git a/package/edk2-platforms/edk2-platforms.hash b/package/edk2-platforms/edk2-platforms.hash new file mode 100644 index 0000000000..30ae235078 --- /dev/null +++ b/package/edk2-platforms/edk2-platforms.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 dfdc34fea86e5037a3a6cbd2a83b1f655f16b4c9ab4f5ff9da91e45a358c9a14 edk2-platforms-db922e1253cb6f1fc456805bc42fb7d401eed5c2.tar.gz +sha256 50ce20c9cfdb0e19ee34fe0a51fc0afe961f743697b068359ab2f862b494df80 License.txt diff --git a/package/edk2-platforms/edk2-platforms.mk b/package/edk2-platforms/edk2-platforms.mk new file mode 100644 index 0000000000..47e6b1c51d --- /dev/null +++ b/package/edk2-platforms/edk2-platforms.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# edk2-platforms +# +################################################################################ + +# Keep in sync with latest commit as of the release date for boot/edk2 +EDK2_PLATFORMS_VERSION = db922e1253cb6f1fc456805bc42fb7d401eed5c2 +EDK2_PLATFORMS_SITE = $(call github,tianocore,edk2-platforms,$(EDK2_PLATFORMS_VERSION)) +EDK2_PLATFORMS_LICENSE = BSD-2-Clause +EDK2_PLATFORMS_LICENSE_FILE = License.txt +EDK2_PLATFORMS_INSTALL_TARGET = NO +EDK2_PLATFORMS_INSTALL_STAGING = YES + +# There is nothing to build for edk2-platforms. All we need to do is to copy +# all description files to staging, for other packages to build with. +define EDK2_PLATFORMS_INSTALL_STAGING_CMDS + rm -rf $(STAGING_DIR)/usr/share/edk2-platforms + cp -rf $(@D) $(STAGING_DIR)/usr/share/edk2-platforms +endef + +$(eval $(generic-package))