lib: hashmap: Move hash table files lib/hashmap
Moves the hashmap related files into their own directory Signed-off-by: Joshua Lilly <jgl@fb.com>
This commit is contained in:
parent
8333b12da7
commit
69966dd452
|
@ -5,6 +5,7 @@ add_subdirectory(libc)
|
|||
add_subdirectory(posix)
|
||||
endif()
|
||||
add_subdirectory_ifdef(CONFIG_CPP cpp)
|
||||
add_subdirectory(hash)
|
||||
add_subdirectory(os)
|
||||
add_subdirectory(util)
|
||||
add_subdirectory_ifdef(CONFIG_SMF smf)
|
||||
|
|
|
@ -7,6 +7,8 @@ source "lib/cpp/Kconfig"
|
|||
|
||||
menu "Additional libraries"
|
||||
|
||||
source "lib/hash/Kconfig"
|
||||
|
||||
source "lib/os/Kconfig"
|
||||
|
||||
source "lib/posix/Kconfig"
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# Copyright (c) 2022 Meta
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_FUNC32_DJB2 hash_func32_djb2.c)
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_FUNC32_MURMUR3 hash_func32_murmur3.c)
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_MAP_SC hash_map_sc.c)
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_MAP_OA_LP hash_map_oa_lp.c)
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_MAP_CXX hash_map_cxx.cpp)
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) 2022 Meta
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
rsource "Kconfig.hash_func"
|
||||
rsource "Kconfig.hash_map"
|
|
@ -64,13 +64,6 @@ zephyr_sources_ifdef(CONFIG_SYS_MEM_BLOCKS mem_blocks.c)
|
|||
|
||||
zephyr_sources_ifdef(CONFIG_WINSTREAM winstream.c)
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_FUNC32_DJB2 hash_func32_djb2.c)
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_FUNC32_MURMUR3 hash_func32_murmur3.c)
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_MAP_SC hash_map_sc.c)
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_MAP_OA_LP hash_map_oa_lp.c)
|
||||
zephyr_sources_ifdef(CONFIG_SYS_HASH_MAP_CXX hash_map_cxx.cpp)
|
||||
|
||||
zephyr_library_include_directories(
|
||||
${ZEPHYR_BASE}/kernel/include
|
||||
${ZEPHYR_BASE}/arch/${ARCH}/include
|
||||
|
|
|
@ -176,7 +176,4 @@ rsource "Kconfig.cbprintf"
|
|||
|
||||
rsource "Kconfig.heap"
|
||||
|
||||
rsource "Kconfig.hash_func"
|
||||
rsource "Kconfig.hash_map"
|
||||
|
||||
endmenu
|
||||
|
|
Loading…
Reference in New Issue