component_ulp_common.cmake 690 B

123456789101112131415161718
  1. message(WARNING "Embedding ULP binary by including \
  2. ${IDF_PATH}/components/ulp/component_ulp_common.cmake is deprecated. Use `ulp_embed_binary` instead. \
  3. See API Guide for more details.")
  4. spaces2list(ULP_S_SOURCES)
  5. spaces2list(ULP_EXP_DEP_SRCS)
  6. foreach(ulp_s_source ${ULP_S_SOURCES})
  7. get_filename_component(ulp_src ${ulp_s_source} ABSOLUTE BASE_DIR ${COMPONENT_DIR})
  8. list(APPEND ulp_srcs ${ulp_src})
  9. endforeach()
  10. foreach(ulp_exp_dep_src ${ULP_EXP_DEP_SRCS})
  11. get_filename_component(ulp_dep_src ${ulp_exp_dep_src} ABSOLUTE BASE_DIR ${COMPONENT_DIR})
  12. list(APPEND ulp_dep_srcs ${ulp_dep_src})
  13. endforeach()
  14. ulp_embed_binary(${ULP_APP_NAME} "${ulp_srcs}" "${ulp_dep_srcs}")