artik05x/userspace: Add config dependency (CONFIG_SYSTEM_PREAPP_INIT)
This patch adds config check for system pre-application init
@@ -118,14 +118,15 @@ const struct userspace_s userspace __attribute__((section(".userspace"))) = {
#endif
/* Signal handler trampoline */
-
#ifndef CONFIG_DISABLE_SIGNALS
.signal_handler = up_signal_handler,
#endif
/* pre-application entry points (declared in include/tinyara/init.h) */
-
+#ifdef CONFIG_SYSTEM_PREAPP_INIT
.preapp_start = preapp_start,
+#endif
+
};
/****************************************************************************
