From patchwork Wed May 23 14:14:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 136667 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp953393lji; Wed, 23 May 2018 07:15:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrKag0Zz2Mfy2ac2GsM+nN8AGj3cYND4rdoWMyj7auZrd0lDDh+BbljYzHsTvBTZ8xnMaF6 X-Received: by 2002:a17:902:1029:: with SMTP id b38-v6mr3140353pla.277.1527084902928; Wed, 23 May 2018 07:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527084902; cv=none; d=google.com; s=arc-20160816; b=OCjfo3bgXkzlIkATpTwE/3IwW+AIOFKSbmrOA7FANtEze0rtBiIm2Qm3AZbhPOBEtB 77noQ2xzzh49l2umXJdqBqUld+yXnPIlA1XVVyBKGJ+j71Mhuf9YuVilCW6ty7yoyOF+ f69I9EtSzH/ZMa6wxB4PPXSnuAU8LijktGHRufenu+4d095QNsPhgl0v7lc9lwJhcvA+ Jh68KrfCCkcndH8iWB5PUWqB9qtuM7/cxPka7Ru7Aq+sb5ViTgPvOOcEsRzMFWvcKNi3 Q0unMVOdPhjnrsRHOupCpt3ThbNwqbaT6eghdfy7JsI624QU4mpn6cFFHOrr+7cFsiAJ qQgA== 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=gNcikBMVtZAnYneMaGhisUYgNQSVkbSwxI3pms1V9EQ=; b=f8ZSELYUhCyDIYW6ClZs4nnkpRNug7AlQg8W+xiqK3hhx8CBQQ6NxR/6ne6U8yEn8R DZw9RkonIL+yn52VLcYbHUMGpkGzuQOn7rlJwvyQEakc6wlkjwF7/gfdvYXLD+aoX7OR UrT9mZvkAcSmUeKMhyHT5P792eEQ4oR8/EKpJRH+HIcf/NDxbJneHUH5RMLanfgjgaV8 /gu5ElTZ31PrHokcC5i91NCnWuAdCYh0K+xfmxZ7884lxORCVnEPbJY0mAYUtcNLEMOE Rcqgaftj9yXWLL7oycYfulHhFq5009Ebz4pWeU+QZGxgU6YtX9xw/AH3BvDzwxRTJT2F Ibxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dzjCFBgp; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id b1-v6si19139232pla.570.2018.05.23.07.15.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 07:15:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dzjCFBgp; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 5EEEF207E4E0D; Wed, 23 May 2018 07:14:56 -0700 (PDT) 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:c09::229; helo=mail-wm0-x229.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 3C2F7207E4E08 for ; Wed, 23 May 2018 07:14:55 -0700 (PDT) Received: by mail-wm0-x229.google.com with SMTP id f6-v6so9447815wmc.4 for ; Wed, 23 May 2018 07:14:55 -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=AQfo1d25l5GT30MinW14eghgpvnu6/jTsIYPWYReWB0=; b=dzjCFBgp1Gjk2Ys61q0lXxjboSVlsSXnyR34TJ4wovx/Xl7aZmuJxZzIBMa9KoyQxv Stau/gmCnUvtf7uR4APF6IPkF6Hekg8DXiOIlF28mBHBgm/J3fXPicR6lTHdIQIPgcf2 bx/z2+RGc0TV2JpeNN/wC3kYRLogJfP4kUjOk= 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=AQfo1d25l5GT30MinW14eghgpvnu6/jTsIYPWYReWB0=; b=FPIHEJnnUDzWXKGS4y7nkVpg3D729qls77qt3IYcUjRFDnhKD5GCxsVJuJPnc3jJru ToDBaKbytXgTTELmZ/5jNiLmG5vp5M8XZ+T9TLCtAGMeAeYs1Dmj6/JnNOenxHXH5cBN wnnFqPYbfgRgwlDmbT5Rhs0FNLNEfiupZeO2vqAdx47lOus4+QXxchQdspzups3ebJTw ajjIEgEAOUzoSYc0DbR+KH46y9+6NL2MImwa8jUemXzwFDIVvkTX1rsAKMQd4spp/fd3 Rzletn9rxqABCRYyf5MyzoQRUobuKpIibewMEPMiSfjCr9P++qMQ5QzH14dTDzLwcVJx nnqw== X-Gm-Message-State: ALKqPwdKKY/1HFmy1GuDVoGbTP9KBvCqhN8EGAMenirnNp4yW/dP1fIx qlGHMAMBOGTjGaKJTMcdK8BXDwwHdho= X-Received: by 2002:a1c:8a03:: with SMTP id m3-v6mr3984939wmd.135.1527084893279; Wed, 23 May 2018 07:14:53 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id o12-v6sm27347774wrf.31.2018.05.23.07.14.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 07:14:52 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 23 May 2018 16:14:43 +0200 Message-Id: <20180523141444.20033-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180523141444.20033-1-ard.biesheuvel@linaro.org> References: <20180523141444.20033-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms 3/4] Platform/DeveloperBox: switch to protocol based DevicePathLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" We already include DevicePathDxe, which exposes a protocol that implements DevicePathLib in a way that can be shared across modules, avoiding the need for multiple copies of UefiDevicePathLib, which is rather heavy weight. However, we are not actually using it, and all DevicePathLib users carry a private copy of UefiDevicePathLib. So wire up all modules except DxeCore and DevicePathDxe itself, which cannot use the protocol for obvious reasons. Also, avoid creating a cyclic dependency between PcdDxe and DevicePathDxe by using PcdLibNull in the latter. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/Socionext/DeveloperBox/DeveloperBox.dsc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc index 1bfe7fcaca01..3decc22e25b1 100644 --- a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc +++ b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc @@ -93,7 +93,7 @@ [LibraryClasses.common] UefiLib|MdePkg/Library/UefiLib/UefiLib.inf HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf - DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf @@ -475,6 +475,7 @@ [Components.common] MdeModulePkg/Core/Dxe/DxeMain.inf { NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F } @@ -497,7 +498,12 @@ [Components.common] ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf - MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf + MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf { + + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + } + MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf MdeModulePkg/Universal/SerialDxe/SerialDxe.inf MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf