binfmt: Add binfmt_initialize(). All binary formats are now registered centrally vs. in board-specific logic. This simplifies the usage of the binfmt subsystem.

This commit is contained in:
Xiang Xiao
2018-08-23 09:09:39 -06:00
committed by Gregory Nutt
parent 0001607f71
commit 377eb30129
23 changed files with 19 additions and 279 deletions
+7
View File
@@ -55,6 +55,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/sched_note.h>
#include <nuttx/syslog/syslog.h>
#include <nuttx/binfmt/binfmt.h>
#include <nuttx/init.h>
#include "sched/sched.h"
@@ -717,6 +718,12 @@ void os_start(void)
lib_initialize();
#ifndef CONFIG_BINFMT_DISABLE
/* Initialize the binfmt system */
binfmt_initialize();
#endif
/* IDLE Group Initialization **********************************************/
/* Announce that the CPU0 IDLE task has started */