Browse Source
CONFIG_DYNAMIC_BOOTARGS currently depends on CONFIG_MULTIBOOT_INFO and CONFIG_BUILD_OUTPUT_EFI which are x86 specific. This change removes those dependencies so that another architecture can use CONFIG_DYNAMIC_BOOTARGS without the x86 specifc features. Signed-off-by: William Tambe <williamt@cadence.com>pull/87017/head
5 changed files with 30 additions and 21 deletions
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2025 Cadence Design Systems, Inc. |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
#include <zephyr/kernel.h> |
||||
|
||||
#if defined(CONFIG_MULTIBOOT_INFO) |
||||
|
||||
__pinned_noinit char multiboot_cmdline[CONFIG_BOOTARGS_ARGS_BUFFER_SIZE]; |
||||
|
||||
const char *get_bootargs(void) |
||||
{ |
||||
return multiboot_cmdline; |
||||
} |
||||
|
||||
#elif defined(CONFIG_X86_EFI) |
||||
|
||||
__pinned_noinit char efi_bootargs[CONFIG_BOOTARGS_ARGS_BUFFER_SIZE]; |
||||
|
||||
const char *get_bootargs(void) |
||||
{ |
||||
return efi_bootargs; |
||||
} |
||||
|
||||
#endif |
Loading…
Reference in new issue