This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 32cdd9b72 tinyusb/msc_fat_view: Fix build where no coredump flash is
present
32cdd9b72 is described below
commit 32cdd9b721a313de00af8b702b46a53059b49aa9
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Thu Apr 4 11:16:15 2024 +0200
tinyusb/msc_fat_view: Fix build where no coredump flash is present
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]>
---
hw/usb/tinyusb/msc_fat_view/pkg.yml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/hw/usb/tinyusb/msc_fat_view/pkg.yml
b/hw/usb/tinyusb/msc_fat_view/pkg.yml
index 16d5a538f..a831a4384 100644
--- a/hw/usb/tinyusb/msc_fat_view/pkg.yml
+++ b/hw/usb/tinyusb/msc_fat_view/pkg.yml
@@ -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