chore: add a mini config for qemu arm virt
support turn off as many features as possible. current only libc and posix and bsd can not be turned off. Signed-off-by: Caoruihong <crh.cao@huawei.com> Change-Id: I1e97570c67593207a56dc11f357eca4b4a018bfd
This commit is contained in:
@@ -36,7 +36,9 @@
|
||||
#include "los_task.h"
|
||||
#include "los_mux.h"
|
||||
#include "los_signal.h"
|
||||
#ifdef LOSCFG_FS_VFS
|
||||
#include "fs/fs.h"
|
||||
#endif
|
||||
#include "syscall.h"
|
||||
#include "sysinfo.h"
|
||||
#ifdef LOSCFG_KERNEL_DYNLOAD
|
||||
@@ -48,7 +50,9 @@
|
||||
#include "sys/shm.h"
|
||||
#include "poll.h"
|
||||
#include "utime.h"
|
||||
#ifdef LOSCFG_COMPAT_POSIX
|
||||
#include "mqueue.h"
|
||||
#endif
|
||||
#include "time.h"
|
||||
#include "sys/time.h"
|
||||
#include "sys/stat.h"
|
||||
@@ -107,6 +111,8 @@ extern int SysFutex(const unsigned int *uAddr, unsigned int flags, int val,
|
||||
unsigned int absTime, const unsigned int *newUserAddr);
|
||||
extern int SysSchedGetAffinity(int id, unsigned int *cpuset, int flag);
|
||||
extern int SysSchedSetAffinity(int id, const unsigned short cpuset, int flag);
|
||||
|
||||
#ifdef LOSCFG_COMPAT_POSIX
|
||||
extern mqd_t SysMqOpen(const char *mqName, int openFlag, mode_t mode, struct mq_attr *attr);
|
||||
extern int SysMqClose(mqd_t personal);
|
||||
extern int SysMqGetSetAttr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old);
|
||||
@@ -116,6 +122,8 @@ extern int SysMqTimedSend(mqd_t personal, const char *msg, size_t msgLen, unsign
|
||||
const struct timespec *absTimeout);
|
||||
extern ssize_t SysMqTimedReceive(mqd_t personal, char *msg, size_t msgLen, unsigned int *msgPrio,
|
||||
const struct timespec *absTimeout);
|
||||
#endif
|
||||
|
||||
extern int SysSigAction(int sig, const sigaction_t *restrict sa, sigaction_t *restrict old, size_t sigsetsize);
|
||||
extern int SysSigprocMask(int how, const sigset_t_l *restrict set, sigset_t *restrict old, size_t sigsetsize);
|
||||
extern int SysKill(pid_t pid, int sig);
|
||||
|
||||
Reference in New Issue
Block a user