mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
add kernel_map and initrd_map
This commit is contained in:
parent
45e29cda8a
commit
592f3e2068
@ -243,6 +243,9 @@ static int read_description(FILE* fd, char* desc, int size)
|
|||||||
{
|
{
|
||||||
desc = set_tag(desc, CONFIG_KERNEL, strlen(value) + 1, value);
|
desc = set_tag(desc, CONFIG_KERNEL, strlen(value) + 1, value);
|
||||||
}
|
}
|
||||||
|
else if (strcmp("kernel_map", name) == 0)
|
||||||
|
{
|
||||||
|
desc = set_tag(desc, CONFIG_KERNEL_MAP, strlen(value) + 1, value);
|
||||||
else if (strcmp("args", name) == 0)
|
else if (strcmp("args", name) == 0)
|
||||||
{
|
{
|
||||||
desc = set_tag(desc, CONFIG_ARGS, strlen(value) + 1, value);
|
desc = set_tag(desc, CONFIG_ARGS, strlen(value) + 1, value);
|
||||||
@ -251,6 +254,10 @@ static int read_description(FILE* fd, char* desc, int size)
|
|||||||
{
|
{
|
||||||
desc = set_tag(desc, CONFIG_INITRD, strlen(value) + 1, value);
|
desc = set_tag(desc, CONFIG_INITRD, strlen(value) + 1, value);
|
||||||
}
|
}
|
||||||
|
else if (strcmp("initrd_map", name) == 0)
|
||||||
|
{
|
||||||
|
desc = set_tag(desc, CONFIG_INITRD_MAP, strlen(value) + 1, value);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: syntax error on word %s\n", name);
|
fprintf(stderr, "ERROR: syntax error on word %s\n", name);
|
||||||
|
@ -21,8 +21,10 @@ enum {
|
|||||||
CONFIG_DEFAULT,
|
CONFIG_DEFAULT,
|
||||||
CONFIG_TITLE,
|
CONFIG_TITLE,
|
||||||
CONFIG_KERNEL,
|
CONFIG_KERNEL,
|
||||||
|
CONFIG_KERNEL_MAP,
|
||||||
CONFIG_ARGS,
|
CONFIG_ARGS,
|
||||||
CONFIG_INITRD,
|
CONFIG_INITRD,
|
||||||
|
CONFIG_INITRD_MAP,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern emile_config* emile_config_open(char* name);
|
extern emile_config* emile_config_open(char* name);
|
||||||
|
Loading…
Reference in New Issue
Block a user