From 748a7c81245ae81d04607b3a762cf65cd39026f2 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 7 Oct 2019 13:00:44 +0100 Subject: COMPMID-2706: Add the ability to build bootcode for bare metal Adds an option for providing a linker script and also adds the bootcode folder, it it exists, in the build path and links it with the executable binaries. Change-Id: I4119b21bdf1b4dd7fe38c4ee66741460666f53a1 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/2051 Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins --- support/ToolchainSupport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support/ToolchainSupport.h') diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h index deaded34f3..f90d65c9d9 100644 --- a/support/ToolchainSupport.h +++ b/support/ToolchainSupport.h @@ -155,7 +155,7 @@ inline std::string to_string(T && value) template inline T nearbyint(T value) { - return ::nearbyint(value); + return static_cast(::nearbyint(value)); } /** Convert string values to float. @@ -286,7 +286,7 @@ inline std::string to_string(T &&value) template inline T nearbyint(T value) { - return std::nearbyint(value); + return static_cast(std::nearbyint(value)); } /** Convert string values to float. -- cgit v1.2.1