From bd39481da402f5aedee0c216cf1107e698fc826d Mon Sep 17 00:00:00 2001 From: Jamie Smith Date: Sat, 21 Sep 2024 18:31:21 -0700 Subject: [PATCH] Fix some license issues --- .../TARGET_NUCLEO_H723ZG/stm32h7_eth_init.c | 2 ++ .../TARGET_STM32H7/STM32Cube_FW/LICENSE.md | 27 +++++++++++++++++++ .../system_stm32h7xx_dualcore_boot_cm4_cm7.c | 4 +-- .../system_stm32h7xx_singlecore.c | 4 +-- targets/upload_method_cfg/NUCLEO_H723ZG.cmake | 2 +- 5 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/LICENSE.md diff --git a/connectivity/drivers/emac/TARGET_STM/TARGET_STM32H7/TARGET_NUCLEO_H723ZG/stm32h7_eth_init.c b/connectivity/drivers/emac/TARGET_STM/TARGET_STM32H7/TARGET_NUCLEO_H723ZG/stm32h7_eth_init.c index a5e691e6b47..b0fc3347124 100644 --- a/connectivity/drivers/emac/TARGET_STM/TARGET_STM32H7/TARGET_NUCLEO_H723ZG/stm32h7_eth_init.c +++ b/connectivity/drivers/emac/TARGET_STM/TARGET_STM32H7/TARGET_NUCLEO_H723ZG/stm32h7_eth_init.c @@ -1,6 +1,8 @@ /* mbed Microcontroller Library * Copyright (c) 2018, STMicroelectronics * All rights reserved. + * + * SPDX-License-Identifier: Apache-2.0 * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/LICENSE.md b/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/LICENSE.md new file mode 100644 index 00000000000..e94b88c387e --- /dev/null +++ b/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/LICENSE.md @@ -0,0 +1,27 @@ +Copyright 2017 STMicroelectronics. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors +may be used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_dualcore_boot_cm4_cm7.c b/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_dualcore_boot_cm4_cm7.c index 02eab0cf277..027de42de2b 100644 --- a/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_dualcore_boot_cm4_cm7.c +++ b/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_dualcore_boot_cm4_cm7.c @@ -28,9 +28,7 @@ * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. + * SPDX-License-Identifier: BSD-3-Clause * ****************************************************************************** */ diff --git a/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_singlecore.c b/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_singlecore.c index 7ac123d1a39..9a083df2536 100644 --- a/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_singlecore.c +++ b/targets/TARGET_STM/TARGET_STM32H7/system_init_files/system_stm32h7xx_singlecore.c @@ -27,9 +27,7 @@ * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. + * SPDX-License-Identifier: BSD-3-Clause * ****************************************************************************** */ diff --git a/targets/upload_method_cfg/NUCLEO_H723ZG.cmake b/targets/upload_method_cfg/NUCLEO_H723ZG.cmake index 6552c0e3853..3b7ad8a865e 100644 --- a/targets/upload_method_cfg/NUCLEO_H723ZG.cmake +++ b/targets/upload_method_cfg/NUCLEO_H723ZG.cmake @@ -37,7 +37,7 @@ set(PYOCD_CLOCK_SPEED 4000k) set(OPENOCD_UPLOAD_ENABLED TRUE) set(OPENOCD_CHIP_CONFIG_COMMANDS - -f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/nucleo_h72x.cfg) + -f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/stm32h72x.cfg) # Config options for STM32Cube # -------------------------------------------------------------