From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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) 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) 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) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Tue, 05 Dec 2017 10:09:10 -0000 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/NorFlashPlatformNullLib.c b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.c new file mode 100644 index 000000000000..264d18719763 --- /dev/null +++ b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.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 IMPLIED. + + **/ + +#include + +EFI_STATUS +NorFlashPlatformInitialization ( + VOID + ) +{ + return EFI_SUCCESS; +} + +EFI_STATUS +NorFlashPlatformGetDevices ( + OUT NOR_FLASH_DESCRIPTION **NorFlashDescriptions, + OUT UINT32 *Count + ) +{ + *NorFlashDescriptions = NULL; + *Count = 0; + return EFI_SUCCESS; +} diff --git a/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.inf b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.inf new file mode 100644 index 000000000000..777a629678e1 --- /dev/null +++ b/ArmPlatformPkg/Library/NorFlashPlatformNullLib/NorFlashPlatformNullLib.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 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 IMPLIED. +# +#**/ + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = NorFlashPlatformNullLib + FILE_GUID = 29b733ad-d066-4df6-8a89-b9df1beb818a + MODULE_TYPE = DXE_DRIVER + VERSION_STRING = 1.0 + LIBRARY_CLASS = NorFlashPlatformLib + +[Sources.common] + NorFlashPlatformNullLib.c + +[Packages] + MdePkg/MdePkg.dec + ArmPlatformPkg/ArmPlatformPkg.dec -- 2.11.0