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

Merge pull request !53 from Zbigniew/qemu-arm-dev
This commit is contained in:
openharmony_ci 2020-12-31 21:33:38 +08:00 committed by Gitee
commit d07637e648
3 changed files with 16 additions and 13 deletions

View File

@ -130,7 +130,6 @@ extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
extern UINT32 OsSystemInit(VOID); extern UINT32 OsSystemInit(VOID);
extern VOID SystemInit(VOID);
VOID __attribute__((weak)) SystemInit(VOID) VOID __attribute__((weak)) SystemInit(VOID)
{ {

View File

@ -100,16 +100,16 @@ STATIC UINT32 OsShellSourceInit(INT32 consoleId)
ret = LOS_NOK; ret = LOS_NOK;
goto ERR_OUT4; goto ERR_OUT4;
} }
if (consoleId == CONSOLE_TELNET
#if !defined(LOSCFG_PLATFORM_ROOTFS) #if !defined(LOSCFG_PLATFORM_ROOTFS)
/* /*
* In case of ROOTFS disabled but * In case of ROOTFS disabled but
* serial console enabled, it is required * serial console enabled, it is required
* to create Shell task in kernel for it. * to create Shell task in kernel for it.
*/ */
|| consoleId == CONSOLE_SERIAL if (consoleId == CONSOLE_TELNET || consoleId == CONSOLE_SERIAL) {
#else
if (consoleId == CONSOLE_TELNET) {
#endif #endif
) {
ret = OsShellCreateTask(shellCB); ret = OsShellCreateTask(shellCB);
if (ret != LOS_OK) { if (ret != LOS_OK) {
goto ERR_OUT4; goto ERR_OUT4;

View File

@ -463,10 +463,14 @@ ifeq ($(LOSCFG_COMPILE_DEBUG), y)
LITEOS_COPTS_OPTION = -g -gdwarf-2 LITEOS_COPTS_OPTION = -g -gdwarf-2
else else
ifeq ($(LOSCFG_COMPILER_CLANG_LLVM), y) ifeq ($(LOSCFG_COMPILER_CLANG_LLVM), y)
ifeq ($(LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7), y)
# WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard # WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard
# problem. "externally_visible" attribute could be # problem. "externally_visible" attribute could be
# a fix for that but it is not known to our LLVM. # a fix for that but it is not known to our LLVM.
LITEOS_COPTS_OPTMIZE = -Oz #-flto LITEOS_COPTS_OPTMIZE = -Oz #-flto
else
LITEOS_COPTS_OPTMIZE = -Oz -flto
endif
else else
LITEOS_COPTS_OPTMIZE = -O2 LITEOS_COPTS_OPTMIZE = -O2
endif endif