From 229d7a0983b142821c6d0ca5a557020468a6f9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonny=20Sv=C3=A4rd?= Date: Tue, 4 Apr 2023 16:53:59 +0200 Subject: Remove ETHOSU define from targets Ethos-U core driver exports the macro Change-Id: I373dbdaa9ec0ee24d566912fc876a4a0627e8b63 --- targets/corstone-300/CMakeLists.txt | 7 +------ targets/corstone-310/CMakeLists.txt | 7 +------ targets/demo/CMakeLists.txt | 4 +--- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/targets/corstone-300/CMakeLists.txt b/targets/corstone-300/CMakeLists.txt index b76c474..dfa2792 100644 --- a/targets/corstone-300/CMakeLists.txt +++ b/targets/corstone-300/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (c) 2020-2022 Arm Limited. All rights reserved. +# SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 # @@ -127,11 +127,6 @@ target_link_libraries(ethosu_target_startup INTERFACE ethosu_mhu_dummy ethosu_uart_cmsdk_apb) -if (TARGET ethosu_core_driver) - target_compile_definitions(ethosu_core_driver PUBLIC - ETHOSU) -endif() - if (TARGET event_recorder) target_include_directories(event_recorder BEFORE INTERFACE event_recorder) diff --git a/targets/corstone-310/CMakeLists.txt b/targets/corstone-310/CMakeLists.txt index 127570d..62b06ea 100644 --- a/targets/corstone-310/CMakeLists.txt +++ b/targets/corstone-310/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (c) 2020-2022 Arm Limited. All rights reserved. +# SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 # @@ -130,11 +130,6 @@ target_link_libraries(ethosu_target_startup INTERFACE ethosu_mhu_dummy ethosu_uart_cmsdk_apb) -if (TARGET ethosu_core_driver) - target_compile_definitions(ethosu_core_driver PUBLIC - ETHOSU) -endif() - ############################################################################### # Applications ############################################################################### diff --git a/targets/demo/CMakeLists.txt b/targets/demo/CMakeLists.txt index a1ba620..1bb97cc 100644 --- a/targets/demo/CMakeLists.txt +++ b/targets/demo/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 Arm Limited. +# SPDX-FileCopyrightText: Copyright 2022-2023 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 # @@ -111,8 +111,6 @@ target_link_libraries(ethosu_target_startup INTERFACE if (TARGET ethosu_core_driver) target_compile_definitions(ethosu_core_driver PUBLIC - ETHOSU - # The TFLM arena is accessed over base address 1. The region config # controls if the memory transactions are routed over AXI 0 (region config # 0 or 1) or AXI 1 (region config 2 or 3). -- cgit v1.2.1