2019-04-28 15:38:23 +08:00
|
|
|
idf_component_register()
|
2019-05-10 10:53:08 +08:00
|
|
|
|
2019-01-22 11:45:45 +08:00
|
|
|
# Do not generate flash file when building bootloader or is in early expansion of the build
|
2019-05-10 10:53:08 +08:00
|
|
|
if(BOOTLOADER_BUILD)
|
2019-01-22 11:45:45 +08:00
|
|
|
return()
|
|
|
|
endif()
|
2018-01-12 13:49:13 +11:00
|
|
|
|
2019-01-22 11:45:45 +08:00
|
|
|
# Set values used in flash_bootloader_args.in and generate flash file
|
|
|
|
# for bootloader
|
2019-06-21 19:48:41 +08:00
|
|
|
esptool_py_flash_project_args(bootloader 0x1000
|
2019-01-22 11:45:45 +08:00
|
|
|
${BOOTLOADER_BUILD_DIR}/bootloader.bin
|
|
|
|
FLASH_IN_PROJECT
|
2019-05-10 10:53:08 +08:00
|
|
|
FLASH_FILE_TEMPLATE flash_bootloader_args.in)
|