add kernel_map and initrd_map

This commit is contained in:
Laurent Vivier 2007-05-09 19:08:23 +00:00
parent 45e29cda8a
commit 592f3e2068
2 changed files with 9 additions and 0 deletions

View File

@ -243,6 +243,9 @@ static int read_description(FILE* fd, char* desc, int size)
{
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)
{
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);
}
else if (strcmp("initrd_map", name) == 0)
{
desc = set_tag(desc, CONFIG_INITRD_MAP, strlen(value) + 1, value);
}
else
{
fprintf(stderr, "ERROR: syntax error on word %s\n", name);

View File

@ -21,8 +21,10 @@ enum {
CONFIG_DEFAULT,
CONFIG_TITLE,
CONFIG_KERNEL,
CONFIG_KERNEL_MAP,
CONFIG_ARGS,
CONFIG_INITRD,
CONFIG_INITRD_MAP,
};
extern emile_config* emile_config_open(char* name);