瀏覽代碼

fix: Fix RAM example binary generation command

The esptool.py elf2image command was missing the chip argument leading
to it always generating ESP8266 binaries.
Djordje Nedic 2 年之前
父節點
當前提交
0c1d01c3f3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/binaries/RAM_APP/source/CMakeLists.txt

+ 1 - 1
examples/binaries/RAM_APP/source/CMakeLists.txt

@@ -11,5 +11,5 @@ project(hello_world)
 # This generates a binary file from the elf, as the RAM build doesn't do that automatically
 add_custom_command(TARGET ${PROJECT_NAME}.elf
     POST_BUILD
-    COMMAND esptool.py elf2image --output app.bin ${PROJECT_NAME}.elf
+    COMMAND esptool.py --chip ${IDF_TARGET} elf2image --output app.bin ${PROJECT_NAME}.elf
 )