提交 d07637e6 编写于 作者: O openharmony_ci 提交者: Gitee

!53 Add latest post-review fixes for Qemu ARM Virt support

Merge pull request !53 from Zbigniew/qemu-arm-dev
......@@ -130,7 +130,6 @@ extern "C" {
#endif /* __cplusplus */
extern UINT32 OsSystemInit(VOID);
extern VOID SystemInit(VOID);
VOID __attribute__((weak)) SystemInit(VOID)
{
......
......@@ -100,16 +100,16 @@ STATIC UINT32 OsShellSourceInit(INT32 consoleId)
ret = LOS_NOK;
goto ERR_OUT4;
}
if (consoleId == CONSOLE_TELNET
#if !defined(LOSCFG_PLATFORM_ROOTFS)
/*
* In case of ROOTFS disabled but
* serial console enabled, it is required
* to create Shell task in kernel for it.
*/
|| consoleId == CONSOLE_SERIAL
/*
* In case of ROOTFS disabled but
* serial console enabled, it is required
* to create Shell task in kernel for it.
*/
if (consoleId == CONSOLE_TELNET || consoleId == CONSOLE_SERIAL) {
#else
if (consoleId == CONSOLE_TELNET) {
#endif
) {
ret = OsShellCreateTask(shellCB);
if (ret != LOS_OK) {
goto ERR_OUT4;
......
......@@ -463,10 +463,14 @@ ifeq ($(LOSCFG_COMPILE_DEBUG), y)
LITEOS_COPTS_OPTION = -g -gdwarf-2
else
ifeq ($(LOSCFG_COMPILER_CLANG_LLVM), y)
# WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard
# problem. "externally_visible" attribute could be
# a fix for that but it is not known to our LLVM.
LITEOS_COPTS_OPTMIZE = -Oz #-flto
ifeq ($(LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7), y)
# WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard
# problem. "externally_visible" attribute could be
# a fix for that but it is not known to our LLVM.
LITEOS_COPTS_OPTMIZE = -Oz #-flto
else
LITEOS_COPTS_OPTMIZE = -Oz -flto
endif
else
LITEOS_COPTS_OPTMIZE = -O2
endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册