ulp: use quotes when specifying files for embedding ulp binaries
This commit is contained in:
parent
23c62a4225
commit
bb639bb91d
6 changed files with 6 additions and 6 deletions
|
@ -15,4 +15,4 @@ foreach(ulp_exp_dep_src ${ULP_EXP_DEP_SRCS})
|
||||||
list(APPEND ulp_dep_srcs ${ulp_dep_src})
|
list(APPEND ulp_dep_srcs ${ulp_dep_src})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
ulp_embed_binary(${ULP_APP_NAME} ${ulp_srcs} ${ulp_dep_srcs})
|
ulp_embed_binary(${ULP_APP_NAME} "${ulp_srcs}" "${ulp_dep_srcs}")
|
||||||
|
|
|
@ -6,5 +6,5 @@ if(IDF_TARGET STREQUAL "esp32")
|
||||||
set(ulp_app_name ulp_test_app)
|
set(ulp_app_name ulp_test_app)
|
||||||
set(ulp_s_sources "ulp/test_jumps_esp32.S")
|
set(ulp_s_sources "ulp/test_jumps_esp32.S")
|
||||||
set(ulp_exp_dep_srcs "esp32/test_ulp_as.c")
|
set(ulp_exp_dep_srcs "esp32/test_ulp_as.c")
|
||||||
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})
|
ulp_embed_binary(${ulp_app_name} "${ulp_s_sources}" "${ulp_exp_dep_srcs}")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -42,7 +42,7 @@ To compile the ULP code as part of the component, the following steps must be ta
|
||||||
set(ulp_s_sources ulp/ulp_assembly_source_file.S)
|
set(ulp_s_sources ulp/ulp_assembly_source_file.S)
|
||||||
set(ulp_exp_dep_srcs "ulp_c_source_file.c")
|
set(ulp_exp_dep_srcs "ulp_c_source_file.c")
|
||||||
|
|
||||||
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})
|
ulp_embed_binary(${ulp_app_name} "${ulp_s_sources}" "${ulp_exp_dep_srcs}")
|
||||||
|
|
||||||
The first argument to ``ulp_embed_binary`` specifies the ULP binary name. The name specified here will also be used by other generated artifacts
|
The first argument to ``ulp_embed_binary`` specifies the ULP binary name. The name specified here will also be used by other generated artifacts
|
||||||
such as the ELF file, map file, header file and linker export file. The second argument specifies the ULP assembly source files.
|
such as the ELF file, map file, header file and linker export file. The second argument specifies the ULP assembly source files.
|
||||||
|
|
|
@ -44,7 +44,7 @@ ULP 协处理器代码是用汇编语言编写的,并使用 `binutils-esp32ulp
|
||||||
set(ulp_s_sources ulp/ulp_assembly_source_file.S)
|
set(ulp_s_sources ulp/ulp_assembly_source_file.S)
|
||||||
set(ulp_exp_dep_srcs "ulp_c_source_file.c")
|
set(ulp_exp_dep_srcs "ulp_c_source_file.c")
|
||||||
|
|
||||||
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})
|
ulp_embed_binary(${ulp_app_name} "${ulp_s_sources}" "${ulp_exp_dep_srcs}")
|
||||||
|
|
||||||
上述第一个参数到 ``ulp_embed_binary`` 为 ULP 二进制文件命名。此名称也用于生成的其他文件,如:ELF 文件、.map 文件、头文件和链接器导出文件。第二个参数设置 ULP 程序集源文件。最后,第三个参数设置组件源文件列表,其中包括被生成的头文件。此列表用以建立正确的依赖项,并确保在构建过程会先生成再编译包含头文件的源文件。请参考下文,查看为 ULP 应用程序生成的头文件等相关概念。
|
上述第一个参数到 ``ulp_embed_binary`` 为 ULP 二进制文件命名。此名称也用于生成的其他文件,如:ELF 文件、.map 文件、头文件和链接器导出文件。第二个参数设置 ULP 程序集源文件。最后,第三个参数设置组件源文件列表,其中包括被生成的头文件。此列表用以建立正确的依赖项,并确保在构建过程会先生成再编译包含头文件的源文件。请参考下文,查看为 ULP 应用程序生成的头文件等相关概念。
|
||||||
|
|
||||||
|
|
|
@ -18,4 +18,4 @@ set(ulp_exp_dep_srcs "ulp_example_main.c")
|
||||||
#
|
#
|
||||||
# 4. Call function to build ULP binary and embed in project using the argument
|
# 4. Call function to build ULP binary and embed in project using the argument
|
||||||
# values above.
|
# values above.
|
||||||
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})
|
ulp_embed_binary(${ulp_app_name} "${ulp_s_sources}" "${ulp_exp_dep_srcs}")
|
||||||
|
|
|
@ -18,4 +18,4 @@ set(ulp_exp_dep_srcs "ulp_adc_example_main.c")
|
||||||
#
|
#
|
||||||
# 4. Call function to build ULP binary and embed in project using the argument
|
# 4. Call function to build ULP binary and embed in project using the argument
|
||||||
# values above.
|
# values above.
|
||||||
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})
|
ulp_embed_binary(${ulp_app_name} "${ulp_s_sources}" "${ulp_exp_dep_srcs}")
|
||||||
|
|
Loading…
Reference in a new issue