mynewt: allow overriding the startup routine
Add a new Mynewt option that allows for overriding the default
`hal_system_start` routine; this allows for startup customizations
required by some BSPs.
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/boot/mynewt/syscfg.yml b/boot/mynewt/syscfg.yml
index 3460954..d472c20 100644
--- a/boot/mynewt/syscfg.yml
+++ b/boot/mynewt/syscfg.yml
@@ -25,6 +25,9 @@
BOOT_SERIAL:
description: 'Support image upgrade over serial within bootloader'
value: 0
+ BOOT_CUSTOM_START:
+ description: 'Override hal_system_start with a custom start routine'
+ value: 0
syscfg.vals:
SYSINIT_CONSTRAIN_INIT: 0