2023-12-06 15:13:45 +08:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2025-01-03 18:00:50 +08:00
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
|
|
endif()
|
2023-12-06 15:13:45 +08:00
|
|
|
|
|
|
|
set(srcs)
|
|
|
|
|
|
|
|
if(CONFIG_SOC_BITSCRAMBLER_SUPPORTED)
|
2025-01-03 18:00:50 +08:00
|
|
|
list(APPEND srcs "src/bitscrambler.c" "src/bitscrambler_loopback.c" "src/bitscrambler_${target}.c")
|
2023-12-06 15:13:45 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
2025-01-03 18:00:50 +08:00
|
|
|
PRIV_REQUIRES "esp_mm"
|
|
|
|
INCLUDE_DIRS "include")
|