From patchwork Tue Feb 20 11:05:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 128867 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4509442ljc; Tue, 20 Feb 2018 03:05:57 -0800 (PST) X-Google-Smtp-Source: AH8x225vLpe6jVL31HIDe3IcNaeQToHZuQM/jg/yC+e97yLek+ouPMlAQ++Ey0gbWabbvh2W36bm X-Received: by 2002:a17:902:ab85:: with SMTP id f5-v6mr17462565plr.199.1519124756799; Tue, 20 Feb 2018 03:05:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519124756; cv=none; d=google.com; s=arc-20160816; b=Hq99iVfnJX/iMCUI01MwhHUgivGs0jiLrEqSWtCJnul/yE530jPvPbIsCERnyWguF5 6lzVhfYfkG/OZWrethfQfIpeTLGINXjmlT1xK6xqjmdnSAzi4Mc4KzvdSs8vE/tpH7Sl wigfStH0WP6XNywsR3nQEe88akO/8q/JrSp/kgEJs0bCPih5KqhoxCQDtM6HDOdbqnxa txxHgeFjqMsAPfXxwCFlRG1LMfL+LTiEFoq8ooERQh+Nc0ebXvcZRR8ZjT28ujpjgD4/ x/4DvvN3chrn9ASTETfLjTJY1yWZOkC83gABHE3TMMWmlPyesF7eQl3mJQTl32Qp4EB6 jsJQ== 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=2a+U3gSqh38zw6GggIk5YNloTm+jhqDmFY3Un+Ncf4U=; b=0u1eSZ4r1VMWK9QBOC+rVrY0Hz9ke5uDG17b6hgaTpUtKvi3ePbpaJgaWPtdncT7SE zu5MXtpTGShr8aWu0Ef4U+AQ8oWG+5t6SQbK0Q0m/ZEr2jlGbiu0Fblhae3FuOl/0CHp r3OuNHgCmWP4zjUww3jl0EJmCJfTkfuwYI8fG7cpLaETIVV4yRJ49IjsFyZgAfsxXftd Z11L3n29PaaHXLV7f+Q9iCh/Ql10mKgWc+9FKPMm2gbLooJhUrwRp3opw/7M5xDBQZwx TOG5V64YbnWaOQyiZXyhhW8dPXnt04jCBlhfTutrJJV+rGPKiS7kJgBwTxOC0QlYqvRl pZjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ghq6/+aO; 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 i66si14215217pgc.445.2018.02.20.03.05.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 03:05:56 -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=Ghq6/+aO; 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 9C60F223C1796; Tue, 20 Feb 2018 02:59:56 -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:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 98869223C1784 for ; Tue, 20 Feb 2018 02:59:54 -0800 (PST) Received: by mail-wr0-x241.google.com with SMTP id s5so13169764wra.0 for ; Tue, 20 Feb 2018 03:05:52 -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=tYExiMSxYW71Xb5sR9W/1s9+kNWzOCuuvo/1d+tfcI8=; b=Ghq6/+aOv48y6RGmrPodVbKlJBCrj2SLj2wZwLUxBNVmdxUylLxRf3S2yBk8iQLouc qKpd7YvUB7W/4t0d1s6uyK+Uc+69pH3AKW6sMuxrmBF7G80rOK9tSsLBw6VIhsRh4c5J x9eQbrzqWwe549cGzdcYLTJMoTsm1KtzsOXgg= 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=tYExiMSxYW71Xb5sR9W/1s9+kNWzOCuuvo/1d+tfcI8=; b=iHLmqhlmjQ6Vft0m+DVsF+rKfXlW5jLnYpElmmaG6GcFt3NXCzvjUtEnNewVHzzTzS H+7U6pnL9NcuZ15z2w+OT6G9bAS7g7r7MVGF1/3sK7bcXNvFZneeXTsLLSHfzIewfMK7 ObQ2un2TOhCBDsD2jgEh8g04ZFJjyrnBWyPSokL/Asx9qNW1u1eQSJRyG7/GwFvS2wTc cFA0KyR2J4M08UZHpIhOLOV0Tg9reaQntRFFNgyPsFunNjwbwJzwbMfq1SDdHyqVibTz ZyXhbMtbzkIOOSPR0jDwciTc4DZW850PM/6UGXc01o5M4b1LKnrR7A8qsJHFOGtk6K1j x/Xg== X-Gm-Message-State: APf1xPCtmNjudegXloRj3+PNm5CexsEm9SW6PsYCPdupc9dl6Lv5Jrmq f3N5uWPWKHStui91vFz+T76aVh9T0cw= X-Received: by 10.223.150.41 with SMTP id b38mr15815693wra.229.1519124750511; Tue, 20 Feb 2018 03:05:50 -0800 (PST) Received: from localhost.localdomain ([105.149.187.179]) by smtp.gmail.com with ESMTPSA id u198sm7417343wmu.44.2018.02.20.03.05.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 03:05:49 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 20 Feb 2018 11:05:23 +0000 Message-Id: <20180220110524.9050-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180220110524.9050-1-ard.biesheuvel@linaro.org> References: <20180220110524.9050-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/3] 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, leif.lindholm@linaro.org, liming.gao@intel.com, 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 --- 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 Reviewed-by: Laszlo Ersek 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