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

Enable newlib retargetable locking configuration #166

Merged

Conversation

stephanosio
Copy link
Member

@stephanosio stephanosio commented Dec 20, 2019

This effectively specifies the --enable-newlib-retargetable-locking option when configuring newlib.

--enable-newlib-retargetable-locking option allows the Zephyr operating system to override the lock functions used by the newlib (i.e. if this option is not specified, the locks inside newlib are implemented as no-op macros).

Note that the GNU ARM Embedded toolchain also builds newlib with this option enabled:
#152 (comment)

This change is required by zephyrproject-rtos/zephyr#21519.

This commit adds a patch for supporting the newlib retargetable
locking configuration in the crosstool-ng.

The patch is derived from the upstream pull request for the
retargetable locking configuration (crosstool-ng/crosstool-ng#1284)
cherry-picked on top of the newlib nano variant pull request
(crosstool-ng/crosstool-ng#1279).

The work branch for this patch is available at the following location:
stephanosio/crosstool-ng/newlib_nano_variant_with_retargetable_locking

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
This commit enables the newlib retargetable locking option to allow the
Zephyr operating system to override the dummy lock functions defined
within the newlib.

Signed-off-by: Stephanos Ioannidis <[email protected]>
@galak galak merged commit f4ae42f into zephyrproject-rtos:master Jan 8, 2020
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.

2 participants