From patchwork Wed Jan 2 13:00:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 154645 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp156528ljp; Wed, 2 Jan 2019 05:00:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN6tx+vx6kT1l2fxetCxDEXNcRIvV3Hl0JgMp61FwnpIOyscVq5S1bcGut3seMFCWBPsag8F X-Received: by 2002:a17:902:541:: with SMTP id 59mr44021498plf.88.1546434054713; Wed, 02 Jan 2019 05:00:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546434054; cv=none; d=google.com; s=arc-20160816; b=G2X16AJjTuGgxE7dYQ9Tk6YV0Xm+RfMy8SAyLG1kxvf8qyWdaxyB2Mt2F3HeAEBhy4 dIZbaIrRyTst/Eftiu4lF1moufDT8o9/4vT3IrGJR9jbtvxPa4/pi03P+phh05TIO/iJ s7v37YpRFmVnfFgJ1iJcWHRTa0nBNgv3oCMW2FzmVOD071r0HZ7MUVyaTwJYk5tidrYb caHEMDcT0h4Q31MPCAf3MPrPgMta7ZvUnWQ8knf2FizPcQIa7Zov3U4UWiFVJaRYVIhy l8ERT+h5IhC8NjEToc703+8VH2mzLhKQ0b8y4oftpd2rSe5OSQCKAjaicilAIvwWy0Fs ftqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=r8qjeIBkTEnsl9wvSezjai6v3OJq5QKpG1fAwdjO9is=; b=GZM7jC5QOBAU2IoFylIqwpsdzlxOiX6qlWf7g+4cOafR+Sx0F5kJ1DGgtuB8SAcr4T T+j/Qb3KE+U9zEZovaJ7ldqYZuFmfW3Sy3XLATLMPy0X3VpdkaAp08Oae2DpDqXwmiTy yQnxm4w+mRLI0szaPi32SEA0hCtMnogH0lanjWBELTs/JnmHuEq85hQJ5JTfeFUVdLes o/gAGxXQo1zlpdREbqT/53Dyut3vEhMmwOE1+IlnpRLnbUZjIqG3zeul+yv+Yd76vgRb ckF+/JY6Oun8h+X7DzCu/VDoL5gBLGiBQbjWPcES67wQry4HyBaEuBVgXbf5jGX76Xa7 NujA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BoVJtedd; 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 j22si5934548pfi.252.2019.01.02.05.00.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 05:00:54 -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=BoVJtedd; 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 7F33B21A00AE6; Wed, 2 Jan 2019 05:00:53 -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: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-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: [edk2] [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: , Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.19.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm 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