2018-08-23 21:54:05 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C)2018 Intel Corporation
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <vmcfg_config.h>
|
|
|
|
#include <vmcfg.h>
|
2018-08-24 00:51:51 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
void vmcfg_list(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
char *name;
|
|
|
|
|
|
|
|
for (i = 0; i < num_args_buildin; i++) {
|
|
|
|
name = args_buildin[i]->argv[args_buildin[i]->argc - 1];
|
|
|
|
printf("%d: %s\n", i + 1, name);
|
|
|
|
}
|
|
|
|
}
|
2018-08-23 21:54:05 +08:00
|
|
|
|
|
|
|
static struct vmcfg_arg *vmcfg_buildin_args[] = {
|
2018-08-23 23:03:59 +08:00
|
|
|
#ifdef CONFIG_MRB_VM1
|
|
|
|
&mrb_vm1_args,
|
|
|
|
#endif /*CONFIG_MRB_VM1*/
|
2018-08-23 21:54:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct vmcfg_arg **args_buildin = vmcfg_buildin_args;
|
|
|
|
int num_args_buildin = sizeof(vmcfg_buildin_args) / sizeof(struct vmcfg_arg *);
|