From patchwork Wed Apr 6 16:15:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 65191 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1146883lbc; Wed, 6 Apr 2016 09:15:39 -0700 (PDT) X-Received: by 10.66.62.232 with SMTP id b8mr5478571pas.104.1459959337838; Wed, 06 Apr 2016 09:15:37 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id p19si5389259pfi.248.2016.04.06.09.15.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Apr 2016 09:15:37 -0700 (PDT) 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; 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 dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 63D381A1FBB; Wed, 6 Apr 2016 09:15:35 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 546D61A1FB9 for ; Wed, 6 Apr 2016 09:15:34 -0700 (PDT) Received: by mail-wm0-x22f.google.com with SMTP id n3so70210551wmn.0 for ; Wed, 06 Apr 2016 09:15:34 -0700 (PDT) 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=lntQC4dcLu9ZKLoAFGaWmjxchSc2FybQb8HfC0OFMts=; b=OauawHgw0Ra3bewdLoudcWb3wX/a1Mzi7oIHRFoYhSv2xsS2fJppjC3iu47lT7tqCj ei2sAQzsgFdpQAU/Xl7mar0HiKvrDdF5BTWr0+ev0qrAvGaZHn3DrWaN6jscCYBXmyrF A6rmKvecxbZIUmgs/RaFtvKGVm773ZRPBXinw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lntQC4dcLu9ZKLoAFGaWmjxchSc2FybQb8HfC0OFMts=; b=m5NrHCPBYHNffovxJdFVt9KTI9YWanG/0Ddk8sxUS7xWD9a3SWFFTpF1Pr9UTmpvJ4 EUrBuVHWQbAXAwFEAzKSl7EwcFwpabhOSB+/+Dhx7z94M7WaHKzCNLpEaHbj11pkRzo8 3DYUTyaeXVSLZ9Yp6P+Ms6hViRvp4tAvxcOzrtcc5RDYqb5uAtQR8ARHbpzMVNaVbmW7 Cg5fYooeJMjvA0LjMe/UQH0eRw15PcuZIwjlodLk00Q08n4E/WkRGCOKiFhpChMdBoox mAy/82BAxOf4nbB3pLIPB/8sRQkREHUjvXAY6qRe7AGjAGVngoILyTZyl/HbUXty/HbW /+oQ== X-Gm-Message-State: AD7BkJKNOBgP5hKmr+Jh80uc05z3a/NCtRsVyJvobrdM5/V+R/2GnkBMUVoyQpJE4MLUjlNc X-Received: by 10.28.129.84 with SMTP id c81mr24221731wmd.38.1459959332920; Wed, 06 Apr 2016 09:15:32 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id om6sm3961219wjc.40.2016.04.06.09.15.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Apr 2016 09:15:32 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com Date: Wed, 6 Apr 2016 18:15:00 +0200 Message-Id: <1459959319-19293-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459959319-19293-1-git-send-email-ard.biesheuvel@linaro.org> References: <1459959319-19293-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 02/21] ArmVirtPkg: drop dependency on DxePcdLib for DXE Pcd.inf X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The PcdDxe dynamic PCD driver is dispatched explicitly via an 'A PRIORI' declaration in the platform DSC. Without that declaration, the DXE driver can never be dispatched since it transitively depends on protocols it produces itself via DxePcdLib. So use the NULL PcdLib explicitly only for this driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirtQemu.dsc | 5 ++++- ArmVirtPkg/ArmVirtQemuKernel.dsc | 5 ++++- ArmVirtPkg/ArmVirtXen.dsc | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) -- 2.5.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index e626df768f85..a1a281303ac4 100644 --- a/ArmVirtPkg/ArmVirtQemu.dsc +++ b/ArmVirtPkg/ArmVirtQemu.dsc @@ -274,7 +274,10 @@ [Components.common] NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf } - MdeModulePkg/Universal/PCD/Dxe/Pcd.inf + MdeModulePkg/Universal/PCD/Dxe/Pcd.inf { + + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + } # # Architectural Protocols diff --git a/ArmVirtPkg/ArmVirtQemuKernel.dsc b/ArmVirtPkg/ArmVirtQemuKernel.dsc index bfa4dbe9fd8c..925a1fdec0e2 100644 --- a/ArmVirtPkg/ArmVirtQemuKernel.dsc +++ b/ArmVirtPkg/ArmVirtQemuKernel.dsc @@ -255,7 +255,10 @@ [Components.common] NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf } - MdeModulePkg/Universal/PCD/Dxe/Pcd.inf + MdeModulePkg/Universal/PCD/Dxe/Pcd.inf { + + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + } # # Architectural Protocols diff --git a/ArmVirtPkg/ArmVirtXen.dsc b/ArmVirtPkg/ArmVirtXen.dsc index 43f093a63f3e..6a542f2447de 100644 --- a/ArmVirtPkg/ArmVirtXen.dsc +++ b/ArmVirtPkg/ArmVirtXen.dsc @@ -178,7 +178,10 @@ [Components.common] NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf } - MdeModulePkg/Universal/PCD/Dxe/Pcd.inf + MdeModulePkg/Universal/PCD/Dxe/Pcd.inf { + + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + } # # Architectural Protocols