Commit e6885a45 authored by Anas Nashif's avatar Anas Nashif Committed by Johan Hedberg
Browse files

lib: crc: move from lib/os to lib/crc



Move crc implementation to own directory and reduce clutter in lib/os.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 65e97fb0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(crc)
if(NOT CONFIG_EXTERNAL_LIBC)
add_subdirectory(libc)
add_subdirectory(posix)
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@ source "lib/libc/Kconfig"

source "lib/cpp/Kconfig"

source "lib/crc/Kconfig"

menu "Additional libraries"

source "lib/hash/Kconfig"

lib/crc/CMakeLists.txt

0 → 100644
+10 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

zephyr_sources_ifdef(CONFIG_CRC
  crc32c_sw.c
  crc32_sw.c
  crc16_sw.c
  crc8_sw.c
  crc7_sw.c
  )
zephyr_sources_ifdef(CONFIG_CRC_SHELL crc_shell.c)

lib/crc/Kconfig

0 → 100644
+16 −0
Original line number Diff line number Diff line
# Copyright (c) 2016,2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
config CRC
	bool "Cyclic redundancy check (CRC) Support"
	help
	  Enable use of CRC.

if CRC
config CRC_SHELL
	bool "CRC Shell"
	depends on SHELL
	select GETOPT
	help
	  Enable CRC checking for memory regions from the shell.
endif # CRC
+0 −0

File moved.

Loading