-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Move minimal libc malloc to common library #56309
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
Move minimal libc malloc to common library #56309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move all the Kconfig's in zephyr from MINIMAL_LIBC_MALLOC_* -> to COMMON_LIBC_MALLOC_*.
also document deprecation of the MINIMAL_LIBC_MALLOC_* Kconfigs in release notes
Thanks, I can do that.
Sounds good. |
0a09843 to
0bee9a8
Compare
Done.
Not sure where these get added? |
|
Lots of updates to clean up this series -- I've got another series stacked on top that switches picolibc -- https://github.com/keith-packard/zephyr/tree/picolibc-common-malloc -- but that required significant logic changes in how the heap is allocated to get alignment and 'use all memory' stuff working. I'll wait to submit that until this series is done, but if anyone is interested in where this is going, that should make it more clear. |
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
MINIMAL_LIBC_MALLOC has been deprecated and removed in favor of COMMON_LIBC_MALLOC, therefore change CONFIG_MINIMAL_LIBC_MALLOC=n to CONFIG_COMMON_LIBC_MALLOC=n. Ref: zephyrproject-rtos/zephyr#56309 zephyrproject-rtos/zephyr#74322 Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This will (eventually) permit use of a common malloc implementation with
other C libraries, reducing the amount of Zephyr-specific code required
to support each C library.
This doesn't change the malloc implementation, it just moves the code and renames the
configuration variables.
Closes: #56243