summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-08-25 11:37:30 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2024-09-02 13:29:43 -0400
commita2cc7546d88bf9c4071f0f56f6c43d59654fc212 (patch)
treeed009cf793dd1b99048a50ebd3e2c55c00ed1d9e /apps/main.c
parentc16dbbfd1fb7bf4bc268a4693bbed21497456b30 (diff)
downloadrockbox-a2cc7546d88bf9c4071f0f56f6c43d59654fc212.tar.gz
rockbox-a2cc7546d88bf9c4071f0f56f6c43d59654fc212.zip
Add DeviceData to bootloaders
same vein as bootdata but for devices that need to pass info back to a running firmware Change-Id: I0cdcdc0475804dfbbee415ab487104ae8fc8ac69
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c11
1 files changed, 11 insertions, 0 deletions
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 @@
78#include "bootchart.h" 78#include "bootchart.h"
79#include "logdiskf.h" 79#include "logdiskf.h"
80#include "bootdata.h" 80#include "bootdata.h"
81#if defined(HAVE_DEVICEDATA)
82#include "devicedata.h"
83#endif
84
81#if (CONFIG_PLATFORM & PLATFORM_ANDROID) 85#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
82#include "notification.h" 86#include "notification.h"
83#endif 87#endif
@@ -176,6 +180,9 @@ int main(void)
176 } 180 }
177 list_init(); 181 list_init();
178 tree_init(); 182 tree_init();
183#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER) /* SIMULATOR */
184 verify_device_data();
185#endif
179 /* Keep the order of this 3 186 /* Keep the order of this 3
180 * Must be done before any code uses the multi-screen API */ 187 * Must be done before any code uses the multi-screen API */
181#ifdef HAVE_USBSTACK 188#ifdef HAVE_USBSTACK
@@ -459,6 +466,10 @@ static void init(void)
459 verify_boot_data(); 466 verify_boot_data();
460#endif 467#endif
461 468
469#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER)
470 verify_device_data();
471#endif
472
462 /* early early early! */ 473 /* early early early! */
463 filesystem_init(); 474 filesystem_init();
464 475