Skip to content

Remove multiply defined symbol from kvstore/securestore/mbed_lib.json #13312

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

Conversation

rwalton-arm
Copy link
Contributor

Summary of changes

MBEDTLS_CMAC_C already seems to be defined in https://github.com/ARMmbed/mbed-os/blob/master/features/mbedtls/inc/mbedtls/config.h#L2416 - this was causing warnings in CMake builds about multiple defined symbols.

This patch removes the macro from the mbed_lib.json as it seems to be unnecessary.

Impact of changes

Migration actions required

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)
[] Tests / results supplied as part of this PR

Reviewers


0xc0170 and others added 30 commits July 20, 2020 10:03
function that checks TARGET_ keywords and if dir exists,
it adds it to the path
creating util cmake to write up some functions we can use

Our current build system has some rules like TARGET_/FEATURE_ to select what is needed. We provide mbed_os_add_cmake_directory function that does the same trick.

If you have:

TARGET_ST/
TARGET_NXP

add CMakeLists.txt here and use this function to select proper target CMake inside these folders.

mbed_os_add_cmake_directory(TARGET, "${MBED_OS_TARGET_KEYS}")

This means, in this folder the selection is conditional based on TARGET and it checks TARGET_KEYS - they come from tools
Patater added 4 commits July 20, 2020 10:04
CMake's _add_definitions() command requires each define begin with a -D
or /D. Add -D to all definitions we want to add.
CMake's _add_definitions() command requires each define begin with a -D
or /D. Add -D to all definitions we want to add.
Some parts of Mbed OS inspect "TOOLCHAIN_*" type macros. Add these
defines to the per-toolchain files.
@ciarmcom
Copy link
Member

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

@rwalton-arm rwalton-arm force-pushed the dev/rwalton-arm/remove-multiply-defined-macro branch from 58ea2eb to e895e21 Compare July 20, 2020 15:36
@rwalton-arm rwalton-arm changed the title Remove doubly defined symbol from kvstore/securestore/mbed_lib.json Remove multiply defined symbol from kvstore/securestore/mbed_lib.json Jul 20, 2020
@hugueskamba hugueskamba force-pushed the feature-cmake branch 2 times, most recently from 11c243b to f51723c Compare July 20, 2020 18:07
@mergify
Copy link

mergify bot commented Jul 21, 2020

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

@mergify mergify bot removed the needs: review label Jul 21, 2020
@rwalton-arm rwalton-arm deleted the dev/rwalton-arm/remove-multiply-defined-macro branch July 22, 2020 09:06
@0xc0170
Copy link
Contributor

0xc0170 commented Jul 22, 2020

@rwalton-arm isn't this an issue on master where it should be fixed or only cmake branch?

@rwalton-arm
Copy link
Contributor Author

@rwalton-arm isn't this an issue on master where it should be fixed or only cmake branch?

Yes, that's why I closed the PR. I'm raising a PR against master.

@Patater
Copy link
Contributor

Patater commented Jul 22, 2020

Superseded by #13330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants