Clone the ecp_curve.c file as ecp_curve_new.c

Use macro guard MBEDTLS_ECP_WITH_MPI_UINT/STRUCT to enable
either c file

Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
diff --git a/library/ecp_curves.c b/library/ecp_curves.c
index e3b3376..4ab74dc 100644
--- a/library/ecp_curves.c
+++ b/library/ecp_curves.c
@@ -18,6 +18,9 @@
  */
 
 #include "common.h"
+#include "ecp_invasive.h"
+
+#if defined(MBEDTLS_ECP_WITH_MPI_STRUCT)
 
 #if defined(MBEDTLS_ECP_LIGHT)
 
@@ -32,7 +35,6 @@
 
 #include "bn_mul.h"
 #include "bignum_core.h"
-#include "ecp_invasive.h"
 
 #include <string.h>
 
@@ -6039,3 +6041,4 @@
 #endif /* MBEDTLS_TEST_HOOKS */
 #endif /* !MBEDTLS_ECP_ALT */
 #endif /* MBEDTLS_ECP_LIGHT */
+#endif /* MBEDTLS_ECP_WITH_MPI_STRUCT */