ARMmbed / mbed-os-tf-m-regression-tests

An Mbed OS application that runs the TF-M regression tests
2 stars 12 forks source link

M2354: Support Nuvoton M2354 #124

Closed ccli8 closed 3 years ago

ccli8 commented 3 years ago

This PR tries to upstream M2354 port to mainstream. It includes:

  1. Change trusted-firmware-m download path to Nuvoton forked repository (nuvoton_mbed_m2354_tfm-1.3) for M2354
  2. Add post-build copy paths specific to M2354 (tfm_ns_import.yaml)
  3. Detect python/python3 command name across platforms
  4. Enable Mbed CLI 2 (CMake)
  5. Enable Greentea test path
    1. Disable PSA compliance test, which M2354 hasn't supported yet
    2. Add compare log (REGRESSION.log only)

NOTE1: For upgrade to TF-M 1.4 for M2354, change branch to nuvoton_mbed_m2354_tfm-1.4. NOTE2: About GCC toolchain, 9 2020-q2-update (and earlier)/10-2020-q4-major have issues on -Os/-mcmse respectively. This PR is verified with 10 2021.07. NOTE3: If you run TEST_S tests, you will meet TFM_SP_PS_TEST test broken failure. It is caused by TFM_SP_PS_TEST stack overflow.

LDong-Arm commented 3 years ago

NOTE2: About GCC toolchain, 9 2020-q2-update (and earlier)/10-2020-q4-major have issues on -Os/-mcmse respectively. This PR is verified with 10 2021.07.

@ccli8 Thanks for letting us know. We're also planning to update GCC to 10 2021.07, so let me raise a PR to update GCC used in CI (earlier comment) first.

ccli8 commented 3 years ago

@LDong-Arm Updated .travis.yml and .circleci/config.yml

LDong-Arm commented 3 years ago

@LDong-Arm Updated .travis.yml and .circleci/config.yml

Thanks. Now waiting for builds to finish.

The CI is build-only (no running), and older versions of GCC can still build it, just the image is invalid. So I think we can get this PR in without waiting for my toolchain upgrade PR.

LDong-Arm commented 3 years ago

@Patater It would be good to get this in before migrating to GitHub Actions for CI?