Fix build when HILOG is disabled
Fix build when BASE_CORE_HILOG option is disabled. Use similar printing function to output missing HILOG logs. Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com> Change-Id: Id5c63568ccb1ba90daadddf7e26d3e0f6c9f30ce
This commit is contained in:
parent
064427fcaf
commit
22f0e9ac30
|
@ -35,7 +35,14 @@
|
||||||
#include "los_printf.h"
|
#include "los_printf.h"
|
||||||
#include "los_task_pri.h"
|
#include "los_task_pri.h"
|
||||||
#include "los_process_pri.h"
|
#include "los_process_pri.h"
|
||||||
|
|
||||||
|
#ifdef LOSCFG_BASE_CORE_HILOG
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
#else
|
||||||
|
#define HILOG_INFO(type, fmt, ...) PRINT_INFO(fmt, __VA_ARGS__)
|
||||||
|
#define HILOG_ERROR(type, fmt, ...) PRINT_ERR(fmt, __VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef LOSCFG_SHELL
|
#ifdef LOSCFG_SHELL
|
||||||
#include "shcmd.h"
|
#include "shcmd.h"
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
|
|
|
@ -49,6 +49,9 @@ LOCAL_SRCS := $(filter-out ../kernel/common/los_rootfs.c, $(LOCAL_SRCS))
|
||||||
ifneq ($(LOSCFG_FS_VFS), y)
|
ifneq ($(LOSCFG_FS_VFS), y)
|
||||||
LOCAL_SRCS := $(filter-out ../kernel/common/console.c ../kernel/common/virtual_serial.c, $(LOCAL_SRCS))
|
LOCAL_SRCS := $(filter-out ../kernel/common/console.c ../kernel/common/virtual_serial.c, $(LOCAL_SRCS))
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(LOSCFG_BASE_CORE_HILOG), y)
|
||||||
|
LOCAL_SRCS := $(filter-out ../kernel/common/los_hilog.c, $(LOCAL_SRCS))
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
LOCAL_SRCS += $(wildcard ../kernel/common/los_config.c)
|
LOCAL_SRCS += $(wildcard ../kernel/common/los_config.c)
|
||||||
LOCAL_SRCS += $(wildcard ../kernel/common/los_printf.c)
|
LOCAL_SRCS += $(wildcard ../kernel/common/los_printf.c)
|
||||||
|
|
Loading…
Reference in New Issue