From patchwork Tue Dec 5 10:13:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 120636 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5551909qgn; Tue, 5 Dec 2017 02:13:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMYaA8ba9YcgNUuRnVTVvdtRrd4RcnMkf77ZsZNhQtUEuWzHxsjZInlq0n4iirQOMTPB4FIC X-Received: by 10.99.112.1 with SMTP id l1mr16317712pgc.186.1512468825756; Tue, 05 Dec 2017 02:13:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512468825; cv=none; d=google.com; s=arc-20160816; b=wwV4cSUDuJNTbOof47D4C0mC3fWxcgv+GgdDSpLBhs2Lp/+OMcelgtzWQT3TwWIwLv hk44WqMW/lr+n/TBQDTzZ4k+vcSh4IX7xYJwaB4TLej2lt1BZpuY5BBW4HIUVHsj3MiX v5dV+kpMjXB9lRVrar/YUT1zs9FrEMpKqb0ffMx/7dZbWhi5lttb4n/Aq7LnATxiD3+d ml45eiFrWQDd1ZrNE6iBxtIKADBiq0AQH57zkIzU6gDLtKqXNpdjJ5YngpVVqSEpPcZG 6FF6tC1hTPrIE8vMt0dipeQ20Q965nq3r02sKeAMnn2cldROEwMwOC58Xp23EcE6l5si 2Rhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=yVmoCg3A6GxM40kLZBqSpR/NHHkM93rd1QoeSFFDdjg=; b=ZUqd1swLxGRAxka4s1Je4wSxkvZYbNfVa7JIf2yoiqQk+/ru9POT3falef/HKeCJ+v AgEEH4gRepSJbxh7GSlfDIBMXjE6TBDkoRTTIxqqGknAv4jXYU12r74JkXPjFr8koifj furoBF5afXvqUU+YEh63Aw2gWO9Y9oaru55CUfK+kKOi9nmjyiYUX/G2RABojZAA2wta iqvDvaukhMXFVHhpKCs6LhRstFjyV9T/xxbDU7BsDPqLm0a9r4Pyw3IsWI3WacSYfShm wbYF3UC8A+Vhpf7AnDdl9APTh/EZgXux/C9VJGUUiwSENqoB2somuj6/mufZXwbLUcdU 7UWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=g7XUrLav; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id q1si7387752plb.79.2017.12.05.02.13.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2017 02:13:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=g7XUrLav; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.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 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-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 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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