2025-02-28 23:16:29 +08:00
|
|
|
menu "Libc options"
|
2025-01-22 23:35:55 +08:00
|
|
|
# ASSERT
|
|
|
|
|
choice
|
|
|
|
|
prompt "Assertion"
|
|
|
|
|
default MR_USE_ASSERT
|
|
|
|
|
|
|
|
|
|
config MR_USE_LIBC_ASSERT
|
|
|
|
|
bool "Standard libc assert"
|
|
|
|
|
help
|
|
|
|
|
Use the standard libc assert for assertion checks.
|
|
|
|
|
|
|
|
|
|
config MR_USE_3PARTY_ASSERT
|
|
|
|
|
bool "3rd party assert"
|
|
|
|
|
help
|
|
|
|
|
Use a third-party assertion library for assertion checks.
|
|
|
|
|
|
|
|
|
|
config MR_USE_ASSERT
|
|
|
|
|
bool "Custom assert"
|
|
|
|
|
help
|
|
|
|
|
Use a custom assertion implementation for assertion checks.
|
|
|
|
|
endchoice
|
|
|
|
|
# ERRNO
|
|
|
|
|
choice
|
|
|
|
|
prompt "Errno"
|
|
|
|
|
default MR_USE_ERRNO
|
|
|
|
|
|
|
|
|
|
config MR_USE_LIBC_ERRNO
|
|
|
|
|
bool "Standard libc errno"
|
|
|
|
|
help
|
|
|
|
|
Use the standard libc errno for error handling.
|
|
|
|
|
|
|
|
|
|
config MR_USE_3PARTY_ERRNO
|
|
|
|
|
bool "3rd party errno"
|
|
|
|
|
help
|
|
|
|
|
Use a third-party errno library for error handling.
|
|
|
|
|
|
|
|
|
|
config MR_USE_ERRNO
|
|
|
|
|
bool "Custom errno"
|
|
|
|
|
help
|
|
|
|
|
Use a custom errno implementation for error handling.
|
|
|
|
|
endchoice
|
|
|
|
|
# MALLOC
|
|
|
|
|
choice
|
|
|
|
|
prompt "Malloc"
|
|
|
|
|
default MR_USE_MALLOC
|
|
|
|
|
|
|
|
|
|
config MR_USE_LIBC_MALLOC
|
|
|
|
|
bool "Standard libc malloc"
|
|
|
|
|
help
|
|
|
|
|
Use the standard libc malloc for memory allocation.
|
|
|
|
|
|
|
|
|
|
config MR_USE_3PARTY_MALLOC
|
|
|
|
|
bool "3rd party malloc"
|
|
|
|
|
help
|
|
|
|
|
Use a third-party malloc library for memory allocation.
|
|
|
|
|
|
|
|
|
|
config MR_USE_MALLOC
|
|
|
|
|
bool "Custom malloc"
|
|
|
|
|
help
|
|
|
|
|
Use a custom malloc implementation for memory allocation.
|
|
|
|
|
endchoice
|
|
|
|
|
config MR_CFG_HEAP_SIZE
|
2025-02-28 23:16:29 +08:00
|
|
|
depends on !MR_USE_LIBC_MALLOC
|
2025-01-22 23:35:55 +08:00
|
|
|
int "Heap size"
|
|
|
|
|
default 4096
|
2025-02-28 23:16:29 +08:00
|
|
|
range 24 2147483647
|
2025-01-22 23:35:55 +08:00
|
|
|
help
|
|
|
|
|
The size of the heap in bytes.
|
2025-02-28 23:16:29 +08:00
|
|
|
# PRINTF
|
2025-01-22 23:35:55 +08:00
|
|
|
choice
|
2025-02-28 23:16:29 +08:00
|
|
|
prompt "Printf"
|
2025-03-06 23:46:11 +08:00
|
|
|
default MR_USE_PRINTF
|
2025-01-22 23:35:55 +08:00
|
|
|
|
2025-02-11 20:16:27 +08:00
|
|
|
config MR_USE_LIBC_PRINTF
|
2025-02-28 23:16:29 +08:00
|
|
|
bool "Standard libc printf"
|
2025-01-22 23:35:55 +08:00
|
|
|
help
|
2025-02-28 23:16:29 +08:00
|
|
|
Use the standard libc printf for printing.
|
2025-01-22 23:35:55 +08:00
|
|
|
|
2025-02-28 23:16:29 +08:00
|
|
|
config MR_USE_3PARTY_PRINTF
|
|
|
|
|
bool "3rd party printf"
|
2025-01-22 23:35:55 +08:00
|
|
|
help
|
2025-02-28 23:16:29 +08:00
|
|
|
Use a third-party printf library for printing.
|
2025-01-22 23:35:55 +08:00
|
|
|
|
2025-02-28 23:16:29 +08:00
|
|
|
config MR_USE_PRINTF
|
|
|
|
|
bool "Custom printf"
|
2025-01-22 23:35:55 +08:00
|
|
|
help
|
2025-02-28 23:16:29 +08:00
|
|
|
Use a custom printf implementation for printing.
|
2025-01-22 23:35:55 +08:00
|
|
|
endchoice
|
2025-03-06 23:46:11 +08:00
|
|
|
# SCANF
|
|
|
|
|
choice
|
|
|
|
|
prompt "Scanf"
|
|
|
|
|
default MR_USE_SCANF
|
|
|
|
|
|
|
|
|
|
config MR_USE_LIBC_SCANF
|
|
|
|
|
bool "Standard libc scanf"
|
|
|
|
|
help
|
|
|
|
|
Use the standard libc scanf for scanf.
|
|
|
|
|
|
|
|
|
|
config MR_USE_3PARTY_SCANF
|
|
|
|
|
bool "3rd party scanf"
|
|
|
|
|
help
|
|
|
|
|
Use a third-party scanf library for scanf.
|
|
|
|
|
|
|
|
|
|
config MR_USE_SCANF
|
|
|
|
|
bool "Custom scanf"
|
|
|
|
|
help
|
|
|
|
|
Use a custom scanf implementation for scanf.
|
|
|
|
|
endchoice
|
2025-01-22 23:35:55 +08:00
|
|
|
# STRING
|
|
|
|
|
choice
|
|
|
|
|
prompt "String"
|
|
|
|
|
default MR_USE_STRING
|
|
|
|
|
|
|
|
|
|
config MR_USE_LIBC_STRING
|
|
|
|
|
bool "Standard libc string"
|
|
|
|
|
help
|
|
|
|
|
Use the standard libc string for string operations.
|
|
|
|
|
|
|
|
|
|
config MR_USE_3PARTY_STRING
|
|
|
|
|
bool "3rd party string"
|
|
|
|
|
help
|
|
|
|
|
Use a third-party string library for string operations.
|
|
|
|
|
|
|
|
|
|
config MR_USE_STRING
|
|
|
|
|
bool "Custom string"
|
|
|
|
|
help
|
|
|
|
|
Use a custom string implementation for string operations.
|
|
|
|
|
endchoice
|
2025-04-01 23:15:18 +08:00
|
|
|
config MR_USE_STRING_SAFE
|
|
|
|
|
depends on MR_USE_STRING
|
|
|
|
|
bool "Use string safe"
|
|
|
|
|
default y
|
|
|
|
|
help
|
|
|
|
|
This option controls whether to use string safe(NULL check).
|
2025-01-22 23:35:55 +08:00
|
|
|
# TYPES
|
|
|
|
|
choice
|
|
|
|
|
prompt "Types"
|
|
|
|
|
default MR_USE_TYPES
|
|
|
|
|
|
|
|
|
|
config MR_USE_LIBC_TYPES
|
|
|
|
|
bool "Standard libc types"
|
|
|
|
|
help
|
|
|
|
|
Use the standard libc types for custom types.
|
|
|
|
|
|
|
|
|
|
config MR_USE_TYPES
|
|
|
|
|
bool "Custom types"
|
|
|
|
|
help
|
|
|
|
|
Use a custom type implementation for custom types.
|
|
|
|
|
endchoice
|
2025-03-06 23:46:11 +08:00
|
|
|
# 64BIT
|
2025-03-04 22:24:54 +08:00
|
|
|
config MR_USE_64BIT
|
|
|
|
|
bool "Use 64-bit"
|
|
|
|
|
default n
|
|
|
|
|
help
|
|
|
|
|
This option controls whether to use 64-bit.
|
2025-01-22 23:35:55 +08:00
|
|
|
endmenu
|