You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/02/10 11:59:43 UTC

[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #2826: tools/esp32/Config.mk: Refine the usage of IDF binaries.

gustavonihei commented on a change in pull request #2826:
URL: https://github.com/apache/incubator-nuttx/pull/2826#discussion_r573670992



##########
File path: tools/esp32/Config.mk
##########
@@ -22,12 +22,11 @@
 # and assemble source files and to insert the resulting object files into an
 # archive.  These replace the default definitions at tools/Config.mk
 
-ifdef BLOBDIR
-	BOOTLOADER=${BLOBDIR}/esp32core/bootloader.bin
-	PARTITION_TABLE=${BLOBDIR}/esp32core/partition-table.bin
-else
-	BOOTLOADER=$(IDF_PATH)/hello_world/build/bootloader/bootloader.bin
-	PARTITION_TABLE=$(IDF_PATH)/hello_world/build/partition_table/partition-table.bin
+ifdef ESPTOOL_BINDIR
+	BOOTLOADER=$(ESPTOOL_BINDIR)/bootloader.bin
+	PARTITION_TABLE=$(ESPTOOL_BINDIR)/partition-table.bin
+	FLASH_BL=0x1000 $(BOOTLOADER)
+	FLASH_PT=0x8000 $(PARTITION_TABLE)

Review comment:
       I don't know if concatenating those values in a variable really helps...
   I would prefer keeping them separated and, in the future, turning the base address a new config to support different families in this same script.
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org