From patchwork Thu Feb 22 19:57:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 129319 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp970591lja; Thu, 22 Feb 2018 11:57:28 -0800 (PST) X-Google-Smtp-Source: AH8x227n9KnfavzDPCd25SfTSucgGoJiq+WhUNYL0Rd2vjJ1zGfZ0h/u+qaF37rBA1NLyOSwSXJI X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr7412542pld.335.1519329448810; Thu, 22 Feb 2018 11:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519329448; cv=none; d=google.com; s=arc-20160816; b=0UHtIK9Cn8RRuCHcVnG44OWGG4T2X/Da18KADiHyWdX6/muJnrb3HsU6mPR+m4G5E+ vPajx6J3pDEZJCJ5UYUcV3gUZOOBWmk78750j295xHDopTjMex8tghkfVhOnS87zfDO0 oR6qvwgkvUfQqzX4Sp26Faa1TxDsFMofrM+aCTit2DtEfeURnVIzCbIFZNc80C4VrVvD IwonbG3IWSccOEoQyGTBJxhAHBocEZ/ILuamtVEEwLdiJHl5SAXJj2gzy4XnaC7zb3U8 X6mQ+lKQUlRNHiHafbzJCxxvE0ouoCD/ZLWXso+wcAlyzglwuPM71KL2BN7d8frKrvye LRZw== 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=NZlaNGt6lLWlfQWOXhP9IqtZ7vt5eN42pn0GCHG1dc0=; b=bMU5oD6dcPZQbCveX5WicXEBIZgE7O3dTV4RKpHnJW0zFtGIYOdTXSly1T3AKI7C7y lhpZThr8GifBjQGA5PyiPXjV2pSz8AXDeN2emAiasp0PYKF/2ejoVnFkQzNUFqIE6HMc gNmFWdeoTtTX+9Re6jbVIoXrFE2/kaBiJpIPWhtpwU1JOKxf+gsRw8F8Ew582Dx+c8Wq SI6/5zsFLt8gH4uDYgb/tFH903v/yns4LoC1xgAf8+6WV1rjz/ogZ5H9GtiwXkCkPSsS 3TV1nZcFVH1GT27QiQVJ7U0BXgA4+GtKSVBc5e5ZxpTjmcv2D58nwAHEUO3BKnzueG14 IaDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XN6ZQ/wK; 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 h1-v6si521512pln.138.2018.02.22.11.57.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 11:57:28 -0800 (PST) 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=XN6ZQ/wK; 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 6CCD92034D8DB; Thu, 22 Feb 2018 11:51:25 -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:c09::242; helo=mail-wm0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::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 9B42F222630CF for ; Thu, 22 Feb 2018 11:51:23 -0800 (PST) Received: by mail-wm0-x242.google.com with SMTP id t82so584295wmt.5 for ; Thu, 22 Feb 2018 11:57:24 -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=cvMTjgZGSz6IjFwJzTXruH7M4yz4o4rO/2h8Mubh5Sg=; b=XN6ZQ/wKMWuqGVYyjiqlURfmYOntgHuUBUjia4FJhqHOEvQ60g1LGEZ9wHdLCHbKvN udxcKa5l9uJkSxRPxkQn1l+0Qb6Dq6tLkoAQgziG03mxdlZuh1XjqJP8G5IB998ngb40 MmFln9rvBnaOudeLnNHwmEEqCiaRRTfhvmxPE= 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=cvMTjgZGSz6IjFwJzTXruH7M4yz4o4rO/2h8Mubh5Sg=; b=c9GbtAMO91CMblwdpbRG4gt/hEwXVOouD3Xqzww9Y65M+qsZy7a4ULUqf9GybiwvYo 7uNEoqJxK749M1WSFdAEmFJiEDsEtvti0e7zcX4k/+93uYtfStpHdnV+jMwRqaTXM3hY TU1RBf0dUFh97U+yUJHT00TxZ+QpSfvrLMKnsuQn5r2/wzgTh/Y1LDKDv+Lh8pIsmXjq Fjvu/gj7wafjWk8AU8ihy0LbDpSt6W7AMy99v5iYRsDkYyGGMl1Vcno49DBMIK2eHH37 MYSwaq+fqMxGyqzh1FchzPPMU2qqX2vHc3v0PRaS4aY585q5Fp3Ukpl/qc9LRE5/mBTW gZ3A== X-Gm-Message-State: APf1xPDQfurU8dqH72iAtcL/YyRtgFhWstFVsn5hKcohnaIZj6rLxgHM GMVGkPAuVoKYpq0OjjQHMCWMrnLz020= X-Received: by 10.28.20.206 with SMTP id 197mr255264wmu.19.1519329442851; Thu, 22 Feb 2018 11:57:22 -0800 (PST) Received: from localhost.localdomain ([196.90.4.100]) by smtp.gmail.com with ESMTPSA id t14sm252153wmc.23.2018.02.22.11.57.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 11:57:21 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 22 Feb 2018 19:57:00 +0000 Message-Id: <20180222195700.7279-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180222195700.7279-1-ard.biesheuvel@linaro.org> References: <20180222195700.7279-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v4 2/2] ArmVirtPkg: switch to DXE runtime version of DebugLib where appropriate X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ruiyu.ni@intel.com, Ard Biesheuvel , afish@apple.com, liming.gao@intel.com, leif.lindholm@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, star.zeng@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Switch all users of ArmVirt.dsc.inc to the new DebugLib implementation that was created especially for DXE_RUNTIME_DRIVER modules, ensuring that DEBUG() calls do not touch the UART at runtime. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmVirtPkg/ArmVirt.dsc.inc | 3 +++ 1 file changed, 3 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index 0cb48f08e9bf..cde514958da2 100644 --- a/ArmVirtPkg/ArmVirt.dsc.inc +++ b/ArmVirtPkg/ArmVirt.dsc.inc @@ -231,6 +231,9 @@ [LibraryClasses.common.UEFI_DRIVER] [LibraryClasses.common.DXE_RUNTIME_DRIVER] MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf +!if $(TARGET) != RELEASE + DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf +!endif !if $(SECURE_BOOT_ENABLE) == TRUE BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf