From cef89b9e19a62b1324b048f39dce3244aa936df9 Mon Sep 17 00:00:00 2001 From: Wang Ning Date: Thu, 7 May 2026 16:21:02 +0800 Subject: [PATCH] docs: fix typo in build system --- docs/en/api-guides/build-system.rst | 2 +- docs/zh_CN/api-guides/build-system.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/api-guides/build-system.rst b/docs/en/api-guides/build-system.rst index 3ec4b034881..ac57d66a3e9 100644 --- a/docs/en/api-guides/build-system.rst +++ b/docs/en/api-guides/build-system.rst @@ -941,7 +941,7 @@ Source Code Generation Some components will have a situation where a source file isn't supplied with the component itself but has to be generated from another file. Say our component has a header file that consists of the converted binary data of a BMP file, converted using a hypothetical tool called bmp2h. The header file is then included in as C source file called graphics_lib.c:: add_custom_command(OUTPUT logo.h - COMMAND bmp2h -i ${COMPONENT_DIR}/logo.bmp -o log.h + COMMAND bmp2h -i ${COMPONENT_DIR}/logo.bmp -o logo.h DEPENDS ${COMPONENT_DIR}/logo.bmp VERBATIM) diff --git a/docs/zh_CN/api-guides/build-system.rst b/docs/zh_CN/api-guides/build-system.rst index c51a3e34980..b3f72737849 100644 --- a/docs/zh_CN/api-guides/build-system.rst +++ b/docs/zh_CN/api-guides/build-system.rst @@ -941,7 +941,7 @@ CMake 文件可以使用 ``IDF_TARGET`` 变量来获取当前的硬件目标。 有些组件的源文件可能并不是由组件本身提供,而必须从另外的文件生成。假设组件需要一个头文件,该文件由 BMP 文件转换后(使用 bmp2h 工具)的二进制数据组成,然后将头文件包含在名为 graphics_lib.c 的文件中:: add_custom_command(OUTPUT logo.h - COMMAND bmp2h -i ${COMPONENT_DIR}/logo.bmp -o log.h + COMMAND bmp2h -i ${COMPONENT_DIR}/logo.bmp -o logo.h DEPENDS ${COMPONENT_DIR}/logo.bmp VERBATIM)