Skip to content

Commit

Permalink
Add bootinfo build target
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Mar 16, 2024
1 parent 139d226 commit f5f5756
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sming/Arch/Esp32/app.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ endif

$(TARGET_BIN): $(TARGET_OUT)
$(Q) $(ESPTOOL_CMDLINE) elf2image --min-rev $(CHIP_REV_MIN) --elf-sha256-offset 0xb0 $(ESPTOOL_EXTRA_ARGS) $(flashimageoptions) -o $@ $<


##@Flashing

.PHONY: bootinfo
bootinfo: $(FLASH_BOOT_LOADER) ##Show bootloader information
$(info $(FLASH_BOOT_LOADER):)
$(Q) $(ESPTOOL_CMDLINE) image_info -v2 $(FLASH_BOOT_LOADER)
9 changes: 9 additions & 0 deletions Sming/Components/rboot/component.mk
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,13 @@ $(RBOOT_ROM_1_BIN): $(TARGET_OUT_1)

endif


##@Flashing

.PHONY: bootinfo
bootinfo: ##Show bootloader information
$(info $(RBOOT_BIN):)
$(Q) $(ESPTOOL_CMDLINE) image_info -v2 $(RBOOT_BIN)


endif # RBOOT_EMULATION

0 comments on commit f5f5756

Please sign in to comment.