Skip to content

Commit

Permalink
tinyusb/msc_fat_view: Fix build where no coredump flash is present
Browse files Browse the repository at this point in the history
sys/coredump was unconditionally included even when coredump
functionality was not required.

For boards that don't have flash area for dumps newt would
not build due to restrictions

Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
kasjer committed Apr 4, 2024
1 parent 5049cbc commit 32cdd9b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hw/usb/tinyusb/msc_fat_view/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ pkg.deps:
- "@apache-mynewt-core/kernel/os"
- "@apache-mynewt-core/hw/usb/tinyusb"
- "@apache-mynewt-core/mgmt/imgmgr"
- "@apache-mynewt-core/sys/coredump"
- "@mcuboot/boot/bootutil"

pkg.deps.MSC_FAT_VIEW_COREDUMP_FILES:
- "@apache-mynewt-core/sys/coredump"

pkg.source_files:
- src/msc_fat_view.c

pkg.source_files.MSC_FAT_VIEW_COREDUMP_FILES:
- src/coredump_files.c

pkg.init.'(!BOOT_LOADER && TINYUSB_AUTO_START!=0)':
msc_fat_view_pkg_init: $before:tinyusb_start

Expand Down

0 comments on commit 32cdd9b

Please sign in to comment.