Skip to content

CMake: Address review comment from PR#13566 #13870

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

Merged
merged 7 commits into from
Nov 18, 2020

Conversation

rajkan01
Copy link
Contributor

@rajkan01 rajkan01 commented Nov 5, 2020

Summary of changes

Addressed review comments from @rwalton-arm in the PRhttps://github.com//pull/13566

  • Replaced mbed_set_language_standard with target_compile_features.
  • Renamed input source files from CMakelists.txt to CMakeLists.txt.
  • Simplify the inclusion of cryptocell310 library files.
  • Added more information to TODO comment.
  • Removed empty input source files.

Impact of changes

None.

Migration actions required

None.

Documentation

None.


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[x] Tests / results supplied as part of this PR

Manula testing:
Successful compilation of the blinky example based on CMake.


Reviewers

@0xc0170 @hugueskamba @rwalton-arm


@ciarmcom
Copy link
Member

ciarmcom commented Nov 5, 2020

@rajkan01, thank you for your changes.
@0xc0170 @rwalton-arm @hugueskamba @ARMmbed/mbed-os-maintainers please review.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 6, 2020

@rajkan01 Please fill in the template above (patch, tests, etc).

@@ -109,7 +105,11 @@ add_subdirectory(cmsis/device/rtos EXCLUDE_FROM_ALL)
# Configures the application
#
function(mbed_configure_app_target target)
mbed_set_language_standard(${target})
target_compile_features(${target}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be in our toolchain file (related to toolchain set up, although for an app)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted the changes and keep the mbed_set_language_standard funcion and moved target_compile_feature inside of it, please re-review

@rajkan01 rajkan01 force-pushed the feature-cmake-review-comment branch from f2d559f to cf3e86d Compare November 6, 2020 10:36
@rajkan01 rajkan01 requested a review from 0xc0170 November 6, 2020 10:52
0xc0170
0xc0170 previously approved these changes Nov 6, 2020
@mergify
Copy link

mergify bot commented Nov 6, 2020

This PR cannot be merged due to conflicts. Please rebase to resolve them.

@rajkan01 rajkan01 changed the base branch from feature-cmake to master November 9, 2020 10:52
@rajkan01 rajkan01 force-pushed the feature-cmake-review-comment branch from cf3e86d to 3d35701 Compare November 9, 2020 10:57
@mergify mergify bot dismissed 0xc0170’s stale review November 9, 2020 10:57

Pull request has been modified.

@adbridge
Copy link
Contributor

adbridge commented Nov 9, 2020

@rajkan01 please update your PR header.

  1. List what the changes actually are, or at least summarise. An alternative to summarising in the header is to have a separate commit for each of the required review changes and to have the details there instead. Currently there is no way of determining what this PR is actually fixing without trawling through all the review comments elsewhere ...
  2. file out the header correctly as per the guidelines

@rajkan01 rajkan01 force-pushed the feature-cmake-review-comment branch 2 times, most recently from ee57dcd to ecc5709 Compare November 9, 2020 16:00
@rajkan01 rajkan01 changed the title Incorporate the PR#13566 review comments from Rob CMake: Address review comment from PR#13566 Nov 9, 2020
hugueskamba
hugueskamba previously approved these changes Nov 9, 2020
0xc0170
0xc0170 previously approved these changes Nov 9, 2020
@rajkan01 rajkan01 force-pushed the feature-cmake-review-comment branch from 0f0157a to 4c05ce8 Compare November 12, 2020 11:27
@rajkan01
Copy link
Contributor Author

Preceding PR# ARMmbed/mbed-os-example-ble#342

- Added absolute path as cmake failed to find linker file from relative path
- Added the missing MBED_CONF_CRYPTOCELL310_PRESENT
- Added the dependency library to BLE Cordio stack
@rajkan01 rajkan01 force-pushed the feature-cmake-review-comment branch from 890b6b2 to 438994d Compare November 12, 2020 14:32
@rajkan01
Copy link
Contributor Author

@0xc0170 I moved the changes from BLE_Advertising example into the mbed-os side, please re-review

@rajkan01 rajkan01 requested a review from 0xc0170 November 12, 2020 14:40
@rajkan01
Copy link
Contributor Author

@0xc0170 cloud-client-test is failed with timeout_error_msg = "Didn't find client registered in 300 s", , is there any known issue if not could you please restart client test

@mbed-ci
Copy link

mbed-ci commented Nov 12, 2020

Jenkins CI Test : ❌ FAILED

Build Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_dynamic-memory-usage ✔️
jenkins-ci/mbed-os-ci_cloud-client-pytest
jenkins-ci/mbed-os-ci_greentea-test ✔️
jenkins-ci/mbed-os-ci_cmake-example-test

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 13, 2020

both failures are not related to this PR, we will restart once fixed.

@mergify mergify bot added needs: CI and removed needs: work labels Nov 16, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 17, 2020

CI restarted

@mbed-ci
Copy link

mbed-ci commented Nov 18, 2020

Jenkins CI Test : ✔️ SUCCESS

Build Number: 4 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_cmake-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_dynamic-memory-usage ✔️
jenkins-ci/mbed-os-ci_cmake-example-test ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️
jenkins-ci/mbed-os-ci_cloud-client-pytest ✔️

@0xc0170 0xc0170 merged commit fad7f34 into ARMmbed:master Nov 18, 2020
@mergify mergify bot removed the ready for merge label Nov 18, 2020
@mbedmain mbedmain added release-version: 6.5.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants