aboutsummaryrefslogtreecommitdiff
path: root/targets/corstone-300
diff options
context:
space:
mode:
authorJonny Svärd <jonny.svaerd@arm.com>2022-10-24 17:40:19 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-10-25 11:31:37 +0000
commit76a45ddd792754c4cb5e0d8093449d2e2751f3f6 (patch)
tree145d3a9c595104770984eea0d389406ba10689b7 /targets/corstone-300
parente56b6e4bd75c7ccec69f20b17c1e2d48b7c0892c (diff)
downloadethos-u-core-platform-76a45ddd792754c4cb5e0d8093449d2e2751f3f6.tar.gz
Add support for ARMCompiler 6.19
See Release Notes for ARMCompiler 6.19 for more information about the _sys_tmpnam change. Change-Id: Icf05d4c59d7fc6aed437744edd017447450da9cd
Diffstat (limited to 'targets/corstone-300')
-rw-r--r--targets/corstone-300/retarget.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/targets/corstone-300/retarget.c b/targets/corstone-300/retarget.c
index 2549e42..9d71da0 100644
--- a/targets/corstone-300/retarget.c
+++ b/targets/corstone-300/retarget.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2021 Arm Limited. All rights reserved.
+ * SPDX-FileCopyrightText: Copyright 2019-2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -172,6 +172,15 @@ long RETARGET(_flen)(FILEHANDLE fh) {
return -1;
}
+#if __ARMCLIB_VERSION >= 6190004
+int RETARGET(_tmpnam2)(char *name, int sig, unsigned maxlen) {
+ (void)name;
+ (void)sig;
+ (void)maxlen;
+
+ return -1;
+}
+#else
int RETARGET(_tmpnam)(char *name, int sig, unsigned maxlen) {
(void)name;
(void)sig;
@@ -179,6 +188,7 @@ int RETARGET(_tmpnam)(char *name, int sig, unsigned maxlen) {
return 1;
}
+#endif
char *RETARGET(_command_string)(char *cmd, int len) {
(void)len;