File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,13 @@ add_custom_command(
4949add_custom_target (Template SOURCES templates.hpp)
5050add_dependencies (${COMPONENT_LIB} Template)
5151
52- # Disable CONFIG_LWIP_IPV6 in sdkconfig
52+ # Disable CONFIG_LWIP_IPV6 in `sdkconfig` in build process
53+ ## This realizes the same behavior by `idf.py menuconfig`.
54+ ## However, you need to do `idf.py build` twice to refrect
55+ ## all the settings properly.
56+ message (STATUS "PROJECT=${PROJECT_NAME} " )
5357add_custom_command (
5458 OUTPUT sdkconfig
55- COMMAND sed -i 's/CONFIG_LWIP_IPV6=y/CONFIG_LWIP_IPV6=n/g' ${CMAKE_SOURCE_DIR} /sdkconfig)
59+ COMMAND grep -q CONFIG_LWIP_IPV6=y ${CMAKE_SOURCE_DIR} /sdkconfig || exit 0 && sed -i 's/CONFIG_LWIP_IPV6=y/CONFIG_LWIP_IPV6=n/g' ${CMAKE_SOURCE_DIR} /sdkconfig)
5660add_custom_target (Sdkconfig SOURCES sdkconfig)
5761add_dependencies (${COMPONENT_LIB} Sdkconfig)
You can’t perform that action at this time.
0 commit comments