Skip to content

Commit

Permalink
libc/minimal: Select common malloc when applications require it
Browse files Browse the repository at this point in the history
Instead of relying on the default setting of `MINIMAL_LIBC_MALLOC` to pull
in the common malloc implementation, enable it whenever the application
indicates that it needs malloc through the REQUIRES_MALLOC setting.

Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
keith-packard committed Sep 28, 2023
1 parent ef16b7f commit 6bab185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ config MINIMAL_LIBC
imply COMPILER_FREESTANDING
select COMMON_LIBC_ABORT
select COMMON_LIBC_STRNLEN
select COMMON_LIBC_MALLOC if REQUIRES_MALLOC
help
Build with minimal C library.

Expand Down

0 comments on commit 6bab185

Please sign in to comment.