From 948792497310cc411c8b9de11120c2de0216bd53 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 4 May 2018 16:35:33 -0600 Subject: [PATCH] Fusee: Add #define requirement for pragmatic reasons. --- fusee/fusee-primary/src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fusee/fusee-primary/src/main.c b/fusee/fusee-primary/src/main.c index d987d4703..a90097b8e 100644 --- a/fusee/fusee-primary/src/main.c +++ b/fusee/fusee-primary/src/main.c @@ -85,6 +85,14 @@ int main(void) { printk("Welcome to Atmosph\xe8re Fus\xe9" "e!\n"); printk("Using color linear framebuffer at 0x%p!\n", lfb_base); +#ifndef I_KNOW_WHAT_I_AM_DOING +#error "Fusee is a work-in-progrses bootloader, and is not ready for usage yet. If you want to play with it anyway, please #define I_KNOW_WHAT_I_AM_DOING -- and recognize that we will be unable to provide support until it is ready for general usage :)" + + printk("Warning: Fus\e9e is not yet completed, and not ready for general testing!\n"); + printk("Please do not seek support for it until it is done.\n"); + generic_panic(); +#endif + /* Try to load the SBK into the security engine, if possible. */ /* TODO: Should this be done later? */ load_sbk();