Skip to content

Commit c5d8560

Browse files
Merge pull request #4 from ARMmbed/PR_ACI
Update ACI build
2 parents 0a017a6 + e76e5ea commit c5d8560

File tree

17 files changed

+75
-8
lines changed

17 files changed

+75
-8
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: ACI
22

33
on:
44
pull_request:
@@ -20,8 +20,7 @@ jobs:
2020
run: |
2121
pip3 list
2222
git clone https://github.com/ARMmbed/mbed-os.git
23-
echo "**** copy custom_targets.json ***"
24-
python3 automatic_build.py
23+
python3 aci_build.py
2524
2625
CLI2:
2726
runs-on: ubuntu-latest
@@ -38,5 +37,4 @@ jobs:
3837
run: |
3938
pip3 list
4039
git clone https://github.com/ARMmbed/mbed-os.git
41-
echo "**** copy custom_targets.json ***"
42-
python3 automatic_build.py -c
40+
python3 aci_build.py -c

CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
add_subdirectory(TARGET_STM32F0)
5+
add_subdirectory(TARGET_STM32F1)
6+
add_subdirectory(TARGET_STM32F2)
7+
add_subdirectory(TARGET_STM32F3)
8+
add_subdirectory(TARGET_STM32F4)
9+
add_subdirectory(TARGET_STM32F7)
10+
add_subdirectory(TARGET_STM32G0)
11+
add_subdirectory(TARGET_STM32G4)
12+
add_subdirectory(TARGET_STM32H7)
13+
add_subdirectory(TARGET_STM32L0)
14+
add_subdirectory(TARGET_STM32L1)
15+
add_subdirectory(TARGET_STM32L4)
16+
add_subdirectory(TARGET_STM32L5)
17+
add_subdirectory(TARGET_STM32WB)
18+
add_subdirectory(TARGET_STM32WL)

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,23 @@ Copy custom_targets.json
2929
cp stm32customtargets/custom_targets.json .
3030
````
3131

32-
Then build your target!
32+
Then build your target with
3333

34+
- CLI1:
3435
````
3536
mbed compile -m XXX -t XXX
3637
````
3738

39+
- CLI2:
40+
41+
Add in the application CMakeLists.txt:
42+
````
43+
add_subdirectory(stm32customtargets)
44+
````
45+
And build:
46+
````
47+
mbedtools compile -m XXX -t XXX
48+
````
3849

3950

4051
# STM32F1

TARGET_STM32F0/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32F2/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32F3/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32F4/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32F7/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32G0/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32G4/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32H7/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32L0/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32L1/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32L4/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32L5/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

TARGET_STM32WB/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0

automatic_build.py renamed to aci_build.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,25 @@
108108
109109
include(${MBED_PATH}/tools/cmake/app.cmake)
110110
111+
add_subdirectory(TARGET_STM32F0)
112+
add_subdirectory(TARGET_STM32F1)
113+
add_subdirectory(TARGET_STM32F2)
114+
add_subdirectory(TARGET_STM32F3)
115+
add_subdirectory(TARGET_STM32F4)
116+
add_subdirectory(TARGET_STM32F7)
117+
add_subdirectory(TARGET_STM32G0)
118+
add_subdirectory(TARGET_STM32G4)
119+
add_subdirectory(TARGET_STM32H7)
120+
add_subdirectory(TARGET_STM32L0)
121+
add_subdirectory(TARGET_STM32L1)
122+
add_subdirectory(TARGET_STM32L4)
123+
add_subdirectory(TARGET_STM32L5)
124+
add_subdirectory(TARGET_STM32WB)
125+
add_subdirectory(TARGET_STM32WL)
126+
111127
add_subdirectory(${MBED_PATH})
112128
113129
add_executable(${APP_TARGET})
114-
add_subdirectory(TARGET_STM32F1)
115-
add_subdirectory(TARGET_STM32WL)
116130
117131
mbed_configure_app_target(${APP_TARGET})
118132

0 commit comments

Comments
 (0)