From a2cc7546d88bf9c4071f0f56f6c43d59654fc212 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 25 Aug 2024 11:37:30 -0400 Subject: Add DeviceData to bootloaders same vein as bootdata but for devices that need to pass info back to a running firmware Change-Id: I0cdcdc0475804dfbbee415ab487104ae8fc8ac69 --- apps/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index 4c7689ce8c..1e8e872296 100644 --- a/apps/main.c +++ b/apps/main.c @@ -78,6 +78,10 @@ #include "bootchart.h" #include "logdiskf.h" #include "bootdata.h" +#if defined(HAVE_DEVICEDATA) +#include "devicedata.h" +#endif + #if (CONFIG_PLATFORM & PLATFORM_ANDROID) #include "notification.h" #endif @@ -176,6 +180,9 @@ int main(void) } list_init(); tree_init(); +#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER) /* SIMULATOR */ + verify_device_data(); +#endif /* Keep the order of this 3 * Must be done before any code uses the multi-screen API */ #ifdef HAVE_USBSTACK @@ -459,6 +466,10 @@ static void init(void) verify_boot_data(); #endif +#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER) + verify_device_data(); +#endif + /* early early early! */ filesystem_init(); -- cgit v1.2.3