From cef02d9340561a46f641bec5e20ddb301a3c830d Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek Date: Fri, 9 Oct 2020 17:33:46 +0800 Subject: [PATCH] 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 Change-Id: Ie8d96fc3b6ad7cc33abe67530ca8ff9526b46855 --- kernel/common/los_rootfs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kernel/common/los_rootfs.c b/kernel/common/los_rootfs.c index 8add614e..8210ad64 100644 --- a/kernel/common/los_rootfs.c +++ b/kernel/common/los_rootfs.c @@ -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);