!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:
commit
d07637e648
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
# WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard
|
ifeq ($(LOSCFG_PLATFORM_QEMU_ARM_VIRT_CA7), y)
|
||||||
# problem. "externally_visible" attribute could be
|
# WORKAROUND: Disable LTO to avoid undefined __stack_chk_guard
|
||||||
# a fix for that but it is not known to our LLVM.
|
# problem. "externally_visible" attribute could be
|
||||||
LITEOS_COPTS_OPTMIZE = -Oz #-flto
|
# 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
|
else
|
||||||
LITEOS_COPTS_OPTMIZE = -O2
|
LITEOS_COPTS_OPTMIZE = -O2
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue