From patchwork Fri Feb 16 02:10:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 128528 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp58365ljc; Thu, 15 Feb 2018 18:10:28 -0800 (PST) X-Google-Smtp-Source: AH8x2258pybCDKv3ueevYG01P3rZxyN0ClV0SRP4UZ6hbl6vaWio/714ducKlcYSocEDO0GxORv8 X-Received: by 2002:a17:902:2845:: with SMTP id e63-v6mr4304474plb.438.1518747028841; Thu, 15 Feb 2018 18:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518747028; cv=none; d=google.com; s=arc-20160816; b=ki4pH51nB75WLiwKGCD+ejJMtI5RddQwdwDE32/F9TXV4OhbXrMv4YMDdyCKd1fT05 ilpLH5R3N3aB4RjUjMGwVyYe3XzomZ08bWYhP0MwbYmr6ZRXgjFP5tLeSLDxDs3rEeVw 98IYWe09zVb81QHHN9uXgoiKHeol/VfhlikX27hXs3aEYJxJ3iRsWfS+KoI8iWorQuLw 9Q39hjVw9wFg0Nz/IyS0Vl1AKbYYz3tBqc7iZVHIzqmy5u9P9ruBG68XTFHSB3gdfBx0 CG6jHii87bFJ4UIXfHyEk+J3/omuAiTrrNj7fVmnU5thq52VyY3vWK3J80jDHJMCsX/z zHAQ== 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=14NgCRkCjHI0u10/srTXy3XDmxCsrmkeQxLMftuO+rs=; b=s32Sa+oBxAkHdhBWlv6co/zvQXQYDodmawbyKmEmFPIZY7hgC+x2ea8joHorqpXsX9 FVgLKqMlyo3TMTBBcskaVlFGUwN/fB0BcdA2CQssqi7ZASCOJWrvI7vB+IIy5XleXmdm Sb7PszaUrRyakpfHIVpDZun+LXL2D02bR7ommJV0wjT6hT2SgOGHocaM9iOsej6oDlWl fO9SqnSxyOwlixJ627XUbjZb/1VxT+4L8eZbtxqO/fAF3/4DiWKJMbOc4h6v6Bq1FR+4 ycf1QW0UJzL8q2NuicyzpEpC9qlCfjLqQIWxZR9t8hN731qr81Ttj/Z5RXid35Bqvlhc NDBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BxsBzB9Z; 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 t6si5064634pgt.130.2018.02.15.18.10.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 18:10:28 -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=BxsBzB9Z; 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 E2F67223230F8; Thu, 15 Feb 2018 18:04:34 -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=2607:f8b0:400e:c01::241; helo=mail-pl0-x241.google.com; envelope-from=haojian.zhuang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x241.google.com (mail-pl0-x241.google.com [IPv6:2607:f8b0:400e:c01::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 BA2E1223230F4 for ; Thu, 15 Feb 2018 18:04:33 -0800 (PST) Received: by mail-pl0-x241.google.com with SMTP id f4so902402plr.10 for ; Thu, 15 Feb 2018 18:10:27 -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=Ps+l7AsA8krF1f9D3iWhSs4gsLE/XZH55Cd3rbHsRb0=; b=BxsBzB9ZhJ0ZGvbRRAb5akbzKbiMM0aGcayR9BGXFcb3rMplg/cGBz5Fft7nimkebO YGF90dndDJ5WGpAfaHsPRVIogX7ub2a4aObaaBPxvmFlwOeP7ck1SjeZT9RwvtF+XIeP m2OqwYwiKdYwD0B2/kpC93T/b4ifLEsXutPds= 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=Ps+l7AsA8krF1f9D3iWhSs4gsLE/XZH55Cd3rbHsRb0=; b=gEBgdk2zoViaiBogiGLOmSldV+t6fdUMDJLDAgzWUha9wwWWncY+bSPf/YzXBhkdhj MeJeIb2XcMQkBkPBtIWWE6Kd38TSZyDI6sXNsdA+00Xj0PCLzi589liZGxoZdcP52Jmb LY1ljD2uyjP18nnHkSutMRcJTmMhwkwwM9Z/shrbbVlx8aH2P9nMSHNIj4A49enno+bG RW6+t1xkxvw5UY2reh1leYZJFCsxaYeuIvCxZmLSTTLcHW8bs+q5ith4AwSbasuF4Orh sdojm9LvoJ4+iJhOxRbdksFgD+y5ZBZxqSteD9fgY9p1QW/WjK65n5WvwKizF8K7gARV m46g== X-Gm-Message-State: APf1xPD/v02LlS+i9mBiaR1nZJRCrUHIOYm7PdMK8gc3SQNGyxFpY0hD auCu8MLssTPmlgAy8FFM6SsguYOah3o= X-Received: by 2002:a17:902:47c2:: with SMTP id d2-v6mr4467537plh.222.1518747026404; Thu, 15 Feb 2018 18:10:26 -0800 (PST) Received: from localhost.localdomain ([64.64.108.63]) by smtp.gmail.com with ESMTPSA id q13sm37836007pgp.76.2018.02.15.18.10.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Feb 2018 18:10:25 -0800 (PST) From: Haojian Zhuang To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, linaro-uefi@lists.linaro.org, heyi.guo@linaro.org Date: Fri, 16 Feb 2018 10:10:01 +0800 Message-Id: <1518747003-29025-3-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518747003-29025-1-git-send-email-haojian.zhuang@linaro.org> References: <1518747003-29025-1-git-send-email-haojian.zhuang@linaro.org> Subject: [edk2] [PATCH v3 2/4] Platform/Hisilicon: move out SerialPortLib from common file 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: Haojian Zhuang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Dw8250SerialPortRuntimeLib only exists in D02. DebugLib isn't necessary on HiKey platform. So add CONFIG_NO_DEBUGLIB on it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Haojian Zhuang --- Platform/Hisilicon/D02/Pv660D02.dsc | 1 + Platform/Hisilicon/HiKey/HiKey.dsc | 2 ++ Silicon/Hisilicon/Hisilicon.dsc.inc | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Hisilicon/D02/Pv660D02.dsc b/Platform/Hisilicon/D02/Pv660D02.dsc index 9e826ae..875e6e4 100644 --- a/Platform/Hisilicon/D02/Pv660D02.dsc +++ b/Platform/Hisilicon/D02/Pv660D02.dsc @@ -80,6 +80,7 @@ [LibraryClasses.common.DXE_RUNTIME_DRIVER] I2CLib|Silicon/Hisilicon/Library/I2CLib/I2CLibRuntime.inf + SerialPortLib|Silicon/Hisilicon/Library/Dw8250SerialPortRuntimeLib/Dw8250SerialPortRuntimeLib.inf [BuildOptions] GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/Silicon/Hisilicon/Pv660/Include diff --git a/Platform/Hisilicon/HiKey/HiKey.dsc b/Platform/Hisilicon/HiKey/HiKey.dsc index c7d931e..295d976 100644 --- a/Platform/Hisilicon/HiKey/HiKey.dsc +++ b/Platform/Hisilicon/HiKey/HiKey.dsc @@ -26,6 +26,8 @@ SKUID_IDENTIFIER = DEFAULT FLASH_DEFINITION = Platform/Hisilicon/HiKey/HiKey.fdf + DEFINE CONFIG_NO_DEBUGLIB = TRUE + [LibraryClasses.common] !if $(TARGET) == RELEASE DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf diff --git a/Silicon/Hisilicon/Hisilicon.dsc.inc b/Silicon/Hisilicon/Hisilicon.dsc.inc index 1d6d20c..9050f29 100644 --- a/Silicon/Hisilicon/Hisilicon.dsc.inc +++ b/Silicon/Hisilicon/Hisilicon.dsc.inc @@ -210,8 +210,9 @@ MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf - SerialPortLib|Silicon/Hisilicon/Library/Dw8250SerialPortRuntimeLib/Dw8250SerialPortRuntimeLib.inf +!ifndef CONFIG_NO_DEBUGLIB DebugLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf +!endif [LibraryClasses.AARCH64] ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf