diff --git a/hal/library.c b/hal/library.c index ca7f8382..00e0b523 100644 --- a/hal/library.c +++ b/hal/library.c @@ -46,6 +46,12 @@ #undef NO_FILESYSTEM #endif +#ifdef WOLFBOOT_KEYTOOLS + /* this code needs to use the Use ./include/user_settings.h file */ + #error "The wrong user_settings.h has been included." +#endif + + /* HAL Stubs */ void hal_init(void) { diff --git a/src/image.c b/src/image.c index 16312dcc..cb0572dc 100644 --- a/src/image.c +++ b/src/image.c @@ -30,6 +30,11 @@ #include #endif #include /* for wolfCrypt hash/sign routines */ +#ifdef WOLFBOOT_KEYTOOLS + /* this code needs to use the Use ./include/user_settings.h, not keytools */ + #error "The wrong user_settings.h has been included." +#endif + #include #include