From nobody Thu Dec 26 14:50:28 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1505326596350866.1890574729422; Wed, 13 Sep 2017 11:16:36 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 9A67621D492FC; Wed, 13 Sep 2017 11:13:33 -0700 (PDT) Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EA62021D492F3 for ; Wed, 13 Sep 2017 11:13:31 -0700 (PDT) Received: from E111747.Emea.Arm.com (e111747.emea.arm.com [10.1.26.71]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id v8DIGQUB023888; Wed, 13 Sep 2017 19:16:27 +0100 X-Original-To: edk2-devel@lists.01.org From: evan.lloyd@arm.com To: edk2-devel@lists.01.org Date: Wed, 13 Sep 2017 19:16:21 +0100 Message-Id: <20170913181621.45384-3-evan.lloyd@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170913181621.45384-1-evan.lloyd@arm.com> References: <20170913181621.45384-1-evan.lloyd@arm.com> Subject: [edk2] [PATCH 2/2] ArmPlatformPkg: Remove DT code when unsupported X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Leif Lindholm , Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Sami Mujawar From the UEFI perspective Device Tree is a non standard extra. There is, thus, an existing build flag DT_SUPPORTED. This change removes Device Tree specific code unless DT_SUPPORTED is set. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sami Mujawar Signed-off-by: Evan Lloyd --- ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c b/Ar= mPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c index 456e21ba47db7ec440ac1ef5554eccd5e4d2bcf9..893dd80b6755d68a05b8c2b4ded= b8f60401b503b 100644 --- a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c +++ b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c @@ -414,9 +414,11 @@ ArmJunoEntryPoint ( { EFI_STATUS Status; EFI_PHYSICAL_ADDRESS HypBase; +#ifdef DT_SUPPORTED CHAR16 *TextDevicePath; UINTN TextDevicePathSize; VOID *Buffer; +#endif UINT32 JunoRevision; EFI_EVENT EndOfDxeEvent; =20 @@ -530,6 +532,7 @@ ArmJunoEntryPoint ( ); } =20 +#ifdef DT_SUPPORTED // // Set up the device path to the FDT. // @@ -549,6 +552,7 @@ ArmJunoEntryPoint ( ); return Status; } +#endif =20 return Status; } --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel