# Copyright (c) 2021 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#

menuconfig PACKAGE_TLSF
    bool "TLFS malloc/realloc/free/etc package"
    depends on TEST_KCONFIG
    depends on HAS_ARCH_32BIT
    help
        TLSF provides an implementation of malloc/realloc/free/etc.

if PACKAGE_TLSF

config MODULE_TLSF_MALLOC
    bool "TLSF malloc"
    depends on MODULE_NEWLIB || BOARD_NATIVE
    select MODULE_TLSF_MALLOC_NEWLIB if MODULE_NEWLIB
    select MODULE_TLSF_MALLOC_NATIVE if BOARD_NATIVE

config MODULE_TLSF_MALLOC_NEWLIB
    bool
    depends on TEST_KCONFIG

config MODULE_TLSF_MALLOC_NATIVE
    bool
    depends on TEST_KCONFIG

endif # PACKAGE_TLSF