浏览代码

Merge pull request #13 from thingsconnected/pullreq2

CMakeLists.txt: fix dependencies to allow make -j
Brian Starkey 6 个月前
父节点
当前提交
898634304f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      CMakeLists.txt

+ 4
- 4
CMakeLists.txt 查看文件

@@ -142,14 +142,14 @@ function(picowota_build_combined NAME)
142 142
 	pico_set_linker_script(picowota ${PICOWOTA_SRC_DIR}/bootloader_shell.ld)
143 143
 
144 144
 	# TODO: The hard-coded address here is a bit nasty
145
-	add_custom_target(${NAME}_hdr DEPENDS ${APP_BIN})
146
-	add_custom_command(TARGET ${NAME}_hdr DEPENDS ${APP_BIN}
145
+	add_custom_target(${NAME}_hdr DEPENDS ${NAME})
146
+	add_custom_command(TARGET ${NAME}_hdr DEPENDS ${NAME}
147 147
 		COMMAND ${PICOWOTA_SRC_DIR}/gen_imghdr.py -a 0x1005B000 ${APP_BIN} ${APP_HDR_BIN}
148 148
 	)
149 149
 
150 150
 	add_custom_target(${COMBINED} ALL)
151
-	add_dependencies(${COMBINED} picowota ${NAME}_hdr ${NAME})
152
-	add_custom_command(TARGET ${COMBINED} DEPENDS ${APP_HDR_BIN} ${APP_BIN}
151
+	add_dependencies(${COMBINED} picowota ${NAME}_hdr)
152
+	add_custom_command(TARGET ${COMBINED} DEPENDS ${NAME}_hdr
153 153
 		COMMAND ${CMAKE_OBJCOPY}
154 154
 			--update-section .app_hdr=${APP_HDR_BIN}
155 155
 			--update-section .app_bin=${APP_BIN} ${PICOWOTA_BIN_DIR}/picowota.elf ${COMBINED}.elf

正在加载...
取消
保存