Reviewers requests

- Removed stray printfs from elf.c
- Updated test-configs.yml to include build tests for config files
pull/562/head
Daniele Lacamera 2025-04-14 18:33:15 +02:00
parent c841113ea7
commit 71f24248cf
2 changed files with 20 additions and 2 deletions

View File

@ -220,6 +220,24 @@ jobs:
config-file: ./config/examples/sim.config
make-args: CFLAGS_EXTRA=-DWOLFBOOT_FLASH_MULTI_SECTOR_ERASE
sim_elf_scattered:
uses: ./.github/workflows/test-build.yml
with:
arch: host
config-file: ./config/examples/sim-elf-scattered.config
sim_elf_scattered_nobackup:
uses: ./.github/workflows/test-build.yml
with:
arch: host
config-file: ./config/examples/sim-elf-scattered.config
make-args: DISABLE_BACKUP=1
sim32_elf_scattered:
uses: ./.github/workflows/test-build.yml
with:
arch: host
config-file: ./config/examples/sim32-elf-scattered.config
# TODO: SP math with small stack has issues

View File

@ -222,7 +222,7 @@ int elf_store_image_scattered(const unsigned char *hdr, unsigned long *entry_out
paddr = (unsigned long)ph[i].paddr;
offset = (unsigned long)ph[i].offset;
filesz = (unsigned long)ph[i].file_size;
printf("Writing section at address %lx offset %lx\n", paddr, offset);
wolfBoot_printf("Writing section at address %lx offset %lx\n", paddr, offset);
#ifdef EXT_FLASH
if (ext_flash) {
ext_flash_unlock();
@ -261,7 +261,7 @@ int elf_store_image_scattered(const unsigned char *hdr, unsigned long *entry_out
paddr = (unsigned long)ph[i].paddr;
offset = (unsigned long)ph[i].offset;
filesz = (unsigned long)ph[i].file_size;
printf("Writing section at address %lx offset %lx\n", paddr, offset);
wolfBoot_printf("Writing section at address %lx offset %lx\n", paddr, offset);
#ifdef EXT_FLASH
if (ext_flash) {
ext_flash_unlock();