From nobody Wed Dec 25 04:21:57 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1512468826144870.4096265261238; Tue, 5 Dec 2017 02:13:46 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 27D992035627A; Tue, 5 Dec 2017 02:09:12 -0800 (PST) Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8EF6620356270 for ; Tue, 5 Dec 2017 02:09:10 -0800 (PST) Received: by mail-wr0-x242.google.com with SMTP id v105so20362726wrc.3 for ; Tue, 05 Dec 2017 02:13:41 -0800 (PST) Received: from localhost.localdomain ([105.150.171.234]) by smtp.gmail.com with ESMTPSA id d1sm14398065wra.44.2017.12.05.02.13.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2017 02:13:39 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=78jcDWlLa6KG50/auGH8szikW0KXHGVLzmMvX+/ybEg=; b=g7XUrLavehpuKGfl8Eue0JyChAdCuZR4wiS5k5Pxk005Cvn3NEuUtXJDs1VeGg1ZEM PDSlyiXajZsQvUnejn1yGTh7xSz6wFPA+4oJ4HfK6ZrF3AadpuZ9qo+KFGbLER62ycHj bPqqZBOEXke3LH0x5TzM+UFMc9qxzvPmENMEs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=78jcDWlLa6KG50/auGH8szikW0KXHGVLzmMvX+/ybEg=; b=gQldktEyZBlG7pboxMS9D+Npoyjzjma82krcf8iI6+pjSHm0ihFeKFt+ThfDZfoIMn cOai9vPF/MQGs5wCfo68h7bEB4K/TYsPSl4EjCbVHNSmIuk0bqKKG3V3SJOqUlxZ5EHD YkQqUkiCWeRztHam1oc7uJQP/T2fW8xfXBZYBScxQkVioJlhAPSLcYtlJU+TKfNh3BpS w1SxLOip/zoVO7uO9iv9eaU2pX23p5OQP2A0o42Uu0aq+ITM4cjIc6LXY6OYcXbg4L9k JfvYRpo76ZD8qYr9AwcpRirwRQcAbC/mHSwOzDucRZwiTnhIBLgmmxnaStNrdzUQgXwg SIpg== X-Gm-Message-State: AJaThX6qe0zMtxms8LjZRGRA2odyNeQVtE/j4g9ntWd7adumntHL8Mxo KXEviqusorEhdZkYTLwlfx13VYIdu1Y= X-Google-Smtp-Source: AGs4zMYXu9sSmJDelKM84gmsGXIYw/nednMWdb6g3NT6OIAm/vqpcZr3IMWUS/kDwyzwjAFeTELsvA== X-Received: by 10.223.195.103 with SMTP id e36mr16114844wrg.10.1512468819699; Tue, 05 Dec 2017 02:13:39 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Tue, 5 Dec 2017 10:13:25 +0000 Message-Id: <20171205101326.23732-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171205101326.23732-1-ard.biesheuvel@linaro.org> References: <20171205101326.23732-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 4/5] ArmPlatformPkg: add Null implementation of NorFlashPlatformLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" In order to be able to build ArmPlatformPkg components outside of the context of a particular platform, add Null implementation of NorFlashPlatformLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.c = | 34 ++++++++++++++++++++ ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.inf= | 30 +++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatfor= mNullLib.c b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatfor= mNullLib.c new file mode 100644 index 000000000000..264d18719763 --- /dev/null +++ b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLi= b.c @@ -0,0 +1,34 @@ +/** @file + + Copyright (c) 2014, Linaro Ltd. All rights reserved.
+ + This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD= License + which accompanies this distribution. The full text of the license may be= found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPL= IED. + + **/ + +#include + +EFI_STATUS +NorFlashPlatformInitialization ( + VOID + ) +{ + return EFI_SUCCESS; +} + +EFI_STATUS +NorFlashPlatformGetDevices ( + OUT NOR_FLASH_DESCRIPTION **NorFlashDescriptions, + OUT UINT32 *Count + ) +{ + *NorFlashDescriptions =3D NULL; + *Count =3D 0; + return EFI_SUCCESS; +} diff --git a/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatfor= mNullLib.inf b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatf= ormNullLib.inf new file mode 100644 index 000000000000..777a629678e1 --- /dev/null +++ b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLi= b.inf @@ -0,0 +1,30 @@ +#/** @file +# +# Component description file for NorFlashPlatformNullLib module +# +# Copyright (c) 2017, Linaro Ltd. All rights reserved.
+# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the B= SD License +# which accompanies this distribution. The full text of the license may = be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED. +# +#**/ + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D NorFlashPlatformNullLib + FILE_GUID =3D 29b733ad-d066-4df6-8a89-b9df1beb818a + MODULE_TYPE =3D DXE_DRIVER + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D NorFlashPlatformLib + +[Sources.common] + NorFlashPlatformNullLib.c + +[Packages] + MdePkg/MdePkg.dec + ArmPlatformPkg/ArmPlatformPkg.dec --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel