diff --git a/devicemodel/Makefile b/devicemodel/Makefile index f955ab292..b9a33d192 100644 --- a/devicemodel/Makefile +++ b/devicemodel/Makefile @@ -132,6 +132,8 @@ SRCS += core/timer.c # arch SRCS += arch/x86/pm.c +# vmcfg +SRCS += vmcfg/vmcfg.c OBJS := $(patsubst %.c,$(DM_OBJDIR)/%.o,$(SRCS)) diff --git a/devicemodel/include/vmcfg.h b/devicemodel/include/vmcfg.h new file mode 100644 index 000000000..54476318c --- /dev/null +++ b/devicemodel/include/vmcfg.h @@ -0,0 +1,19 @@ +/* + * Copyright (C)2018 Intel Corporation + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef VMCFG_H +#define VMCFG_H + +struct vmcfg_arg { + char **argv; + int argc; + int (*setup)(void); + int (*clean)(void); +}; + +extern struct vmcfg_arg **args_buildin; +extern int num_args_buildin; + +#endif diff --git a/devicemodel/vmcfg/vmcfg.c b/devicemodel/vmcfg/vmcfg.c new file mode 100644 index 000000000..b3243490c --- /dev/null +++ b/devicemodel/vmcfg/vmcfg.c @@ -0,0 +1,13 @@ +/* + * Copyright (C)2018 Intel Corporation + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include +#include + +static struct vmcfg_arg *vmcfg_buildin_args[] = { +}; + +struct vmcfg_arg **args_buildin = vmcfg_buildin_args; +int num_args_buildin = sizeof(vmcfg_buildin_args) / sizeof(struct vmcfg_arg *);