Add stub for fetching bootargs for Qemu ARM virt

Currently unused but when rootfs is enabled
we should get this error and quickly narrow down
where to add proper bootargs handling.

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Ie8d96fc3b6ad7cc33abe67530ca8ff9526b46855
This commit is contained in:
Zbigniew Bodek 2020-10-09 17:33:46 +08:00 committed by Wojciech Zmuda WX948747
parent 89fb5eb32f
commit cef02d9340
1 changed files with 11 additions and 0 deletions

View File

@ -232,6 +232,17 @@ STATIC INT32 GetArgs(CHAR **args)
}
#endif
#ifdef LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7
/*
* TODO: Implement method of fetching bootargs for
* Qemu ARM virtual platform. If used without
* bootloader it will pass DTB by default.
*/
(void)ret;
PRINT_ERR("Fetching bootargs unimplemented.\n");
goto ERROUT;
#endif
for (i = 0; i < COMMAND_LINE_SIZE; i += len + 1) {
len = strlen(cmdLine + i);
tmp = strstr(cmdLine + i, bootargName);