Skip to content
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

Mbed CE Build System Refactor #1

Merged
merged 44 commits into from
May 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
028a85c
Add initial version of files
Feb 25, 2022
fc90e9a
Update cmsis files
Feb 25, 2022
f40887a
Remove __R because of confliction
Mar 4, 2022
704bfc7
Add peripheral interface files
Feb 28, 2022
8a2681b
Add peripheral driver files
Feb 28, 2022
65e6595
Fix rtc read issue
Mar 5, 2022
f1bce73
Provide all uart mapping
Mar 8, 2022
24f4738
Provide option to user to drive SS pin too
Mar 8, 2022
9298365
Leave last page of flash
Mar 16, 2022
7826582
Update LP API
Mar 18, 2022
2f813fc
Update system files and mbed wrappers
Mar 18, 2022
8323e9a
Fix GCC_ARM warnings
Mar 28, 2022
4dd0144
utf-8 check
Apr 14, 2022
47a32a0
Merge pull request #15263 from MaximIntegrated/add-MAX32670
0xc0170 Apr 20, 2022
8a59067
github action: update checkout to v3
0xc0170 Apr 19, 2022
ad15f0a
github action: add git safe directory
0xc0170 Apr 20, 2022
decc6d0
Merge pull request #15270 from 0xc0170/fix-test-github-action-git-fai…
0xc0170 Apr 20, 2022
271ed68
STM32L0 : I2C2 was missing
jeromecoutant Apr 19, 2022
173c070
tcp_out: fix tcp_output_fill_options() arguments
hifoolno Apr 20, 2022
9b1d4ee
STM32G4 : add UART5 in IRQ init
jeromecoutant Apr 19, 2022
1985e77
STM32G4 : enable SERIAL_ASYNCH in default configuration
jeromecoutant Apr 19, 2022
904f867
semihosting: Fix typo in semihost_rename
caspermeijn Apr 19, 2022
2d652c9
Merge pull request #15268 from jeromecoutant/PR_L0_I2C2
0xc0170 Apr 26, 2022
d17beb7
Merge pull request #15274 from hifoolno/bug4
0xc0170 Apr 26, 2022
88b6bb0
Merge pull request #15269 from jeromecoutant/PR_G4_UART_ASYNC
0xc0170 Apr 26, 2022
9f326aa
Merge pull request #15271 from caspermeijn/patch-1
0xc0170 Apr 26, 2022
6a8a52a
STM32L0: add MCU_STM32L071xB support
jeromecoutant Apr 29, 2022
2026861
Merge pull request #15277 from jeromecoutant/PR_L071KB
0xc0170 May 2, 2022
de4ea6e
STM32F334xx wrong RAM size
jeromecoutant May 4, 2022
f2c9c60
Merge pull request #15279 from jeromecoutant/PR_F334
0xc0170 May 4, 2022
0ba7650
Switch mbed-baremetal and mbed-os to be OBJECT libraries. Can reuse …
multiplemonomials Apr 3, 2022
7b5e25c
Write defines into a disk file instead of passing 100s of them on the…
multiplemonomials Apr 3, 2022
a39d51b
Clean up top-level build file and build options, fix build issues on …
multiplemonomials Apr 3, 2022
a341c9c
- Split mbed-core and mbed-rtos into -sources and -flags targets
multiplemonomials Apr 4, 2022
5990640
Fix PSA and MUSCA build
multiplemonomials Apr 10, 2022
189ecd2
Enable running host tests in Github Actions
multiplemonomials Apr 11, 2022
da83281
Enable reset_reason HAL test
multiplemonomials May 3, 2022
6f6eeec
Fix a few more HAL tests
multiplemonomials May 7, 2022
bd23d10
Convert the rest of the hal tests, convert mbedtls to an OBJECT library
multiplemonomials May 8, 2022
c43d248
Fix typo preventing unification test from running
multiplemonomials May 8, 2022
c933ec9
Fix some tests that weren't being skipped
multiplemonomials May 8, 2022
baa7766
Add more missed test skips
multiplemonomials May 8, 2022
96f3035
Provide MBED_RAM_SIZE symbol for MUSCA_S1
multiplemonomials May 8, 2022
3be8272
MUSCA_S1 does not actually implement TRNG
multiplemonomials May 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/basic_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0


-
name: install dependencies
Expand All @@ -32,7 +33,7 @@ jobs:
run: |
set -x
mkdir -p SCANCODE

git config --global --add safe.directory "$GITHUB_WORKSPACE"
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
| ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true )
echo $?
Expand Down Expand Up @@ -60,13 +61,14 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

-
name: include check
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
# checks mbed.h is not included in MbedOS files except in tests
! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
Expand All @@ -81,13 +83,14 @@ jobs:
steps:

- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

-
name: UTF-8 Check
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
# Make sure we're not introducing any text which is not UTF-8 encoded
git diff origin/${GITHUB_BASE_REF} -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )

Expand All @@ -96,6 +99,7 @@ jobs:
name: astyle checks
run: |
set -x
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
| ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
| ( grep -v -f .codecheckignore || true ) \
Expand All @@ -111,7 +115,7 @@ jobs:
steps:

- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -155,7 +159,7 @@ jobs:
steps:
-
name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3


- uses: actions/setup-python@v2
Expand Down Expand Up @@ -184,14 +188,15 @@ jobs:
steps:
-
name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

-
name: validate pins
run: |
set -x
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
| ( grep '.*[\\|\/]PinNames.h$' || true ) \
| while read file; do python ./hal/tests/pinvalidate/pinvalidate.py -vvvfp "${file}"; done
Expand All @@ -210,7 +215,7 @@ jobs:
steps:
-
name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

-
name: cmake build
Expand All @@ -237,14 +242,15 @@ jobs:
steps:
-
name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

-
name: frozen tool check
run: |
set -x
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git diff --name-only origin/${GITHUB_BASE_REF} \
| egrep \
-e "^tools/build_api*" \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker_management.branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

-
name: Build docker containers
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:

-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

-
name: Find DEV DOCKER DIGEST
Expand All @@ -178,7 +178,7 @@ jobs:
# development branch of blinky
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ARMmbed/mbed-os-example-blinky
path: mbed-os-example-blinky
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker_management.prune.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

-
name: Delete old temporary images
Expand All @@ -22,4 +22,4 @@ jobs:
# deletion if only one image exists or if DOCKER_MANAGEMENT_TOKEN is not
# setup. This shouldn't create any alarm as temporary image deletion is
# not a critical activity.
python ./.github/workflows/ci_scripts/ghcr_utils.py -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_MANAGEMENT_TOKEN }} delete-old-images -r mbed-os-env-tmp || true
python ./.github/workflows/ci_scripts/ghcr_utils.py -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_MANAGEMENT_TOKEN }} delete-old-images -r mbed-os-env-tmp || true
8 changes: 4 additions & 4 deletions .github/workflows/docker_management.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:

-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: refs/tags/${{ steps.build_info.outputs.MBED_OS_VERSION }}

Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
# development branch of blinky
-
name: Checkout example blinky
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ARMmbed/mbed-os-example-blinky
path: mbed-os-example-blinky
Expand All @@ -224,7 +224,7 @@ jobs:

-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: refs/tags/${{ steps.build_info.outputs.MBED_OS_VERSION }}
path: mbed-os-example-blinky/mbed-os
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker_management.test-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# for PR tests, development branch of blinky is used
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ARMmbed/mbed-os-example-blinky
path: mbed-os-example-blinky
Expand All @@ -49,7 +49,7 @@ jobs:

-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: mbed-os-example-blinky/mbed-os

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/greentea_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
container: ghcr.io/armmbed/mbed-os-env:master-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install the latest mbed-tools
run: |
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/host_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run host tests with CMake

on: [pull_request]

jobs:
host-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dev tools
run: sudo apt-get install -y cmake ninja-build

- name: Compile and test for host
run: |
mkdir __build && cd __build
cmake .. -GNinja -DBUILD_GREENTEA_TESTS=FALSE -DBUILD_TESTING=TRUE
ninja
ctest . --output-on-failure
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Python environment
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Checkout mbed-os-scripts repo (This repo is currently private)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ARMmbed/mbed-os-ci-scripts
token: ${{ secrets.ISSUE_TRIAGING_PERMS }}
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/run_conditional_ble_feature_compilation.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test_building_multiple_executables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
container: ghcr.io/armmbed/mbed-os-env:master-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build the multiple_executables example
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ cmake_install.cmake
CMakeFiles/
cmake_build/
Testing/

# CLion
cmake-build-*/
Loading