xtensa: make bootparam parsing optional
A kernel may not need any boot parameters from the bootloader, allow disabling bootparam parsing in that case. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
@@ -79,6 +79,7 @@ static char __initdata command_line[COMMAND_LINE_SIZE];
|
||||
static char default_command_line[COMMAND_LINE_SIZE] __initdata = CONFIG_CMDLINE;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PARSE_BOOTPARAM
|
||||
/*
|
||||
* Boot parameter parsing.
|
||||
*
|
||||
@@ -176,6 +177,13 @@ static int __init parse_bootparam(const bp_tag_t* tag)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
static int __init parse_bootparam(const bp_tag_t *tag)
|
||||
{
|
||||
pr_info("Ignoring boot parameters at %p\n", tag);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
|
||||
|
Reference in New Issue
Block a user