-
Couldn't load subscription status.
- Fork 3k
CMake: fix naming targets #14255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake: fix naming targets #14255
Conversation
Using lowercase with dashes for targets with mbed- prefix
Follow the naming for other CMake targets, using prefix mbed-, lower case with dashes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many wrong file names
| stm32f0xx_HAL_Driver/mbed-stm32f0xx_ll_usart.c | ||
| stm32f0xx_HAL_Driver/mbed-stm32f0xx_ll_usb.c | ||
| stm32f0xx_HAL_Driver/mbed-stm32f0xx_ll_utils.c | ||
| system_mbed-stm32f0xx.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong file
| STM32F0xx_HAL_Driver/stm32f0xx_ll_usb.c | ||
| STM32F0xx_HAL_Driver/stm32f0xx_ll_utils.c | ||
| system_stm32f0xx.c | ||
| stm32f0xx_HAL_Driver/Legacy/stm32f0xx_hal_can_legacy.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Real name is with upper case : STM32F0xx_HAL_Driver ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it was a search and replace oversight.
Thanks for pointing that out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, fixing now
| if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") | ||
| set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f030x8.S) | ||
| set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32f030x8.ld) | ||
| set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_mbed-stm32f030x8.S) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixing now
|
@0xc0170, thank you for your changes. |
| STM32F0xx_HAL_Driver/stm32f0xx_ll_usb.c | ||
| STM32F0xx_HAL_Driver/stm32f0xx_ll_utils.c | ||
| system_stm32f0xx.c | ||
| stm32f0xx_HAL_Driver/Legacy/stm32f0xx_hal_can_legacy.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it was a search and replace oversight.
Thanks for pointing that out.
Co-authored-by: Hugues Kamba <[email protected]>
|
I fixed the errors with replacing the text, my initial regex was wrong :-) Please review again |
|
I added a readme section to document what we follow in CMake targets |
Be consistent
d6e2495 to
a6915af
Compare
| add_library(STM32L4xxLegacyHALDriver INTERFACE) | ||
| target_include_directories(STM32L4xxLegacyHALDriver | ||
|
|
||
| add_library(mbed-stm32l4xxlegacy-hal-driver INTERFACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_library(mbed-stm32l4xxlegacy-hal-driver INTERFACE) | |
| add_library(mbed-stm32l4xx-legacy-hal-driver INTERFACE) |
| endif() | ||
|
|
||
| add_library(XDOT_L151CC INTERFACE) | ||
| add_library(xdot-l151cc INTERFACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_library(xdot-l151cc INTERFACE) | |
| add_library(mbed-xdot-l151cc INTERFACE) |
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| add_library(NUCLEO_F303RE INTERFACE) | ||
| add_library(nucleo-f303re INTERFACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_library(nucleo-f303re INTERFACE) | |
| add_library(mbed-nucleo-f303re INTERFACE) |
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| add_library(WIO_3G INTERFACE) | ||
| add_library(wio-3g INTERFACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_library(wio-3g INTERFACE) | |
| add_library(mbed-wio-3g INTERFACE) |
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| add_library(WIO_BG96 INTERFACE) | ||
| add_library(wio-bg96 INTERFACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_library(wio-bg96 INTERFACE) | |
| add_library(mbed-wio-bg96 INTERFACE) |
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| add_library(SDP_K1 INTERFACE) | ||
| add_library(sdp-k1 INTERFACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_library(sdp-k1 INTERFACE) | |
| add_library(mbed-sdp-k1 INTERFACE) |
| endif() | ||
|
|
||
| add_library(STM32H7A3xIQ INTERFACE) | ||
| add_library(mbed-stm32h7A3xiq INTERFACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| add_library(mbed-stm32h7A3xiq INTERFACE) | |
| add_library(mbed-stm32h7a3xiq INTERFACE) |
Pull request has been modified.
Co-authored-by: Hugues Kamba <[email protected]>
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue with:
- ADV_WISE_1570
- DISCO_L475VG_IOT01A
- DISCO_H747I
- DISCO_L4R9I
- DISCO_L562QE
- FF1705_L151CC
- MOTE_L152RC
- MTS_DRAGONFLY_L471QG
- NUCLEO_F091RC
- NUCLEO_F103RB
- NUCLEO_F207ZG
- NUCLEO_F303K8
|
Investigating failures now |
I fixed all of these, found the typos in the targets. Tested randomly some locally to verify the fixes. Some were due to missing CMake targets after the last refactor. |
Pull request has been modified.
|
CI started |
|
We will need also #14266, will come in after this one if all agree. |
Jenkins CI Test : ❌ FAILEDBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
|
Test failures not related, sync error for k64f, restarting |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Follow CMake Mbed OS convention for target naming. Using
mbed-prefix and-as separators along with the lower case characters. This aligns the codebase. We are porting more targets and they will follow the same naming scheme to avoid conflicts (was it xE or XE or xe and similar).The main logic is that tools/targets.json stays, we only translate the names coming from tools to CMake targets keeping our naming scheme. Nothing else required.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers