From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: evan.lloyd@arm.com To: edk2-devel@lists.01.org Cc: Ard Biesheuvel , Leif Lindholm , Matteo Carlini , nd@arm.com 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: [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: , X-List-Received-Date: Wed, 13 Sep 2017 18:13:32 -0000 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/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c index 456e21ba47db7ec440ac1ef5554eccd5e4d2bcf9..893dd80b6755d68a05b8c2b4dedb8f60401b503b 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; @@ -530,6 +532,7 @@ ArmJunoEntryPoint ( ); } +#ifdef DT_SUPPORTED // // Set up the device path to the FDT. // @@ -549,6 +552,7 @@ ArmJunoEntryPoint ( ); return Status; } +#endif return Status; } -- Guid("CE165669-3EF3-493F-B85D-6190EE5B9759")