From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AH8x226ya1NKHtwCNWRxWyvLWwzJS2341r8o51D9Q/CKk29cc4E+uX7D3Wj4C2Pyef4hfOTzx9Kq6Q== 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 Cc: Haojian Zhuang 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: [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: , X-List-Received-Date: Fri, 16 Feb 2018 02:04:34 -0000 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(-) 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 -- 2.7.4