Files
esp-idf/components/esp_driver_bitscrambler/CMakeLists.txt
morris bc064a353a refactor(hal_dma): move bitscrambler from hal component
because bitscrambler can't live without DMA, it's highly binded with the
GDMA peripheral.
2025-11-21 16:10:16 +08:00

17 lines
542 B
CMake

idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "linux")
return() # This component is not supported by the POSIX/Linux simulator
endif()
set(srcs)
if(CONFIG_SOC_BITSCRAMBLER_SUPPORTED)
list(APPEND srcs "src/bitscrambler.c" "src/bitscrambler_loopback.c" "src/bitscrambler_${target}.c")
endif()
idf_component_register(SRCS ${srcs}
REQUIRES "esp_hal_dma"
PRIV_REQUIRES "esp_mm"
INCLUDE_DIRS "include"
LDFRAGMENTS "linker.lf")