ext: lib: Move fnmatch to lib/

Since we already have similarly licensed 3-clause BSD files in the tree,
and in particular in our minimal libc, move the fnmatch functionality
from ext/ to lib/.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2020-03-20 19:21:15 +01:00 committed by Anas Nashif
parent 084853f276
commit d212bc4d60
10 changed files with 4 additions and 6 deletions

View file

@ -339,6 +339,7 @@
/include/toolchain/ @andrewboie @andyross
/include/zephyr.h @andrewboie @andyross
/kernel/ @andrewboie @andyross
/lib/fnmatch/ @carlescufi
/lib/gui/ @vanwinkeljan
/lib/os/ @andrewboie @andyross
/lib/posix/ @pfalcon

View file

@ -32,7 +32,6 @@ source "dts/Kconfig"
source "drivers/Kconfig"
source "lib/Kconfig"
source "subsys/Kconfig"
source "ext/Kconfig"
osource "$(TOOLCHAIN_KCONFIG_DIR)/Kconfig"

View file

@ -1,2 +1 @@
add_subdirectory(lib)
add_subdirectory(debug)

View file

@ -1 +0,0 @@
add_subdirectory_ifdef(CONFIG_FNMATCH fnmatch)

View file

@ -6,6 +6,7 @@ add_subdirectory(posix)
endif()
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V1 cmsis_rtos_v1)
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V2 cmsis_rtos_v2)
add_subdirectory_ifdef(CONFIG_FNMATCH fnmatch)
add_subdirectory(gui)
add_subdirectory(os)
add_subdirectory_ifdef(CONFIG_UPDATEHUB updatehub)

View file

@ -9,6 +9,8 @@ source "lib/cmsis_rtos_v1/Kconfig"
source "lib/cmsis_rtos_v2/Kconfig"
source "lib/fnmatch/Kconfig"
source "lib/gui/Kconfig"
source "lib/os/Kconfig"

View file

@ -12,4 +12,3 @@ zephyr_sources_ifdef(
CONFIG_FNMATCH
fnmatch.c
)

View file

@ -205,4 +205,3 @@ int fnmatch(const char *pattern, const char *string, int flags)
{
return fnmatchx(pattern, string, flags, 64);
}

View file

@ -47,4 +47,3 @@
int fnmatch(const char *, const char *, int);
#endif /* !_FNMATCH_H_ */