diff --git a/kernel/base/misc/kill_shellcmd.c b/kernel/base/misc/kill_shellcmd.c index 96b3d7e0..c1a0231a 100644 --- a/kernel/base/misc/kill_shellcmd.c +++ b/kernel/base/misc/kill_shellcmd.c @@ -35,7 +35,14 @@ #include "los_printf.h" #include "los_task_pri.h" #include "los_process_pri.h" + +#ifdef LOSCFG_BASE_CORE_HILOG #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 #include "shcmd.h" #include "shell.h" diff --git a/platform/Makefile b/platform/Makefile index 40e4757e..eee94a0a 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -49,6 +49,9 @@ LOCAL_SRCS := $(filter-out ../kernel/common/los_rootfs.c, $(LOCAL_SRCS)) ifneq ($(LOSCFG_FS_VFS), y) LOCAL_SRCS := $(filter-out ../kernel/common/console.c ../kernel/common/virtual_serial.c, $(LOCAL_SRCS)) endif +ifneq ($(LOSCFG_BASE_CORE_HILOG), y) +LOCAL_SRCS := $(filter-out ../kernel/common/los_hilog.c, $(LOCAL_SRCS)) +endif else LOCAL_SRCS += $(wildcard ../kernel/common/los_config.c) LOCAL_SRCS += $(wildcard ../kernel/common/los_printf.c)