From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::544; helo=mail-ed1-x544.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (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 629AC21A00AE6 for ; Wed, 2 Jan 2019 05:00:50 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id b14so26088719edt.6 for ; Wed, 02 Jan 2019 05:00:50 -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:mime-version :content-transfer-encoding; bh=/FpdYEIDpRV3i5HjLFeohILpZJE4t4vZtpnHuIgnt8w=; b=BoVJtedd+pjjZeHftynYePt/2V91QQnfCwBO2SJZShV2eWTRWbqijAiSO6ES8lRfKa lxmQexJ2YECag8bg7m+/nqQH/PPDbBuejPPYbdOOzFOnlNjqaMdFq0TzR4St0IJb+ou0 WXecvZzCI0Qooy14cumqIA27v2EPPERJ02OUI= 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:mime-version :content-transfer-encoding; bh=/FpdYEIDpRV3i5HjLFeohILpZJE4t4vZtpnHuIgnt8w=; b=LLF0nZFkpTi6xl3uweswjiwTqyCDZx6ZaEMG8TnxeKpj6EjeOq0r8B/6BYg3pXX47m HBc1VNxeLRr50dQzuC0Tqt89kLAiZ4+zpRWsmpLn9WuxAh91xXG6u7yl9sViwid5+Au2 qeIWNm9YZGySUtNgzbYOxWYrVktfxk0TUbyZ+989IFRlNSFuiG5nVG6yjx2e+gaasjX+ HmbGaa3OBv87MmZVH3TdO0Xc2DSw+DdwC6eR4FqgCPTaRLDj+MEiRX7CpsqSuQvv9BJA 46E9xtDdrrOFKA2xqdjHZGl88+2nq+SoeyGsfx8NpBXfN1cOoBR0AcsoArAdTH17fsVD DfDQ== X-Gm-Message-State: AA+aEWapNTJxoEY7elo0kjj2XHnOb9y9Gb1nDUxZ34/GT4b61si2sVQd eCMCS2wLSvU/9H0xKjAm3vD6rJmqZrDeQw== X-Google-Smtp-Source: AFSGD/WxH0zEqrg1GMr0HaGMQaIoP7Mm/9urgfB1tYNiRH5NB1n5qAFG6XTRvCW1EXADueAn7M+bxw== X-Received: by 2002:aa7:c594:: with SMTP id g20mr37045479edq.79.1546434048505; Wed, 02 Jan 2019 05:00:48 -0800 (PST) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id n11-v6sm12050490ejh.74.2019.01.02.05.00.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 05:00:47 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 2 Jan 2019 14:00:44 +0100 Message-Id: <20190102130044.32453-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [PATCH] EmbeddedPkg/NorFlashInfoLib: convert to BASE library X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2019 13:00:51 -0000 Content-Transfer-Encoding: 8bit The library's MODULE_TYPE and the module type restrictions it defines are needlessly strict. Just change the library to BASE type and drop the restrictions entirely. Also, drop a bogus library dependency on DxeServicesLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf b/EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf index b4b33247fa52..ee207ae7e9d7 100644 --- a/EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf +++ b/EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf @@ -16,9 +16,9 @@ [Defines] INF_VERSION = 0x00010019 BASE_NAME = NorFlashInfoLib FILE_GUID = 6b639c7e-9b53-4e9f-89a3-2e711729709c - MODULE_TYPE = DXE_DRIVER + MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = NorFlashInfoLib|DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION + LIBRARY_CLASS = NorFlashInfoLib [Sources] NorFlashInfoLib.c @@ -30,5 +30,4 @@ [Packages] [LibraryClasses] BaseLib DebugLib - DxeServicesLib MemoryAllocationLib -- 2.19.2