Clone the ecp.c file as ecp_new.c
Add macro guard for each file defaults to enable the ecp.c file content.
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
diff --git a/library/ecp.c b/library/ecp.c
index 086acb3..1d690d1 100644
--- a/library/ecp.c
+++ b/library/ecp.c
@@ -43,6 +43,10 @@
#include "common.h"
+#include "ecp_invasive.h"
+
+#if defined(MBEDTLS_ECP_WITH_MPI_STRUCT)
+
/**
* \brief Function level alternative implementation.
*
@@ -80,7 +84,6 @@
#include "mbedtls/error.h"
#include "bn_mul.h"
-#include "ecp_invasive.h"
#include <string.h>
@@ -3639,3 +3642,5 @@
#endif /* !MBEDTLS_ECP_ALT */
#endif /* MBEDTLS_ECP_LIGHT */
+
+#endif /* MBEDTLS_ECP_WITH_MPI_STRUCT */