Fix build when KERNEL_DYNLOAD is disabled
Fix unused function warning treated as error when KERNEL_DYNLOAD option is switched off. Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com> Change-Id: I21a01ff3d7ecb7b2e65bacbaa985c6390f5e4be7
This commit is contained in:
parent
22f0e9ac30
commit
aff8a3e3c1
|
@ -35,6 +35,7 @@ LOCAL_SRCS := $(wildcard src/*.c) $(wildcard src/*.S)
|
|||
LOCAL_INCLUDE := \
|
||||
-I $(LITEOSTOPDIR)/kernel/base/include \
|
||||
-I $(LITEOSTOPDIR)/kernel/extended/include \
|
||||
-I $(LITEOSTOPDIR)/kernel/extended/dynload/include \
|
||||
-I $(LITEOSTOPDIR)/arch/arm/arm/include \
|
||||
|
||||
ifeq ($(LITEOS_ARM_ARCH), -march=armv7-a)
|
||||
|
|
|
@ -30,13 +30,13 @@
|
|||
*/
|
||||
|
||||
#include "los_user_init.h"
|
||||
|
||||
#ifdef LOSCFG_KERNEL_DYNLOAD
|
||||
#include "los_syscall.h"
|
||||
|
||||
#define SYS_CALL_VALUE 0x900001
|
||||
|
||||
#ifdef LOSCFG_KERNEL_DYNLOAD
|
||||
LITE_USER_SEC_RODATA STATIC CHAR *g_initPath = "/bin/init";
|
||||
#endif
|
||||
|
||||
LITE_USER_SEC_TEXT STATIC UINT32 sys_call3(UINT32 nbr, UINT32 parm1, UINT32 parm2, UINT32 parm3)
|
||||
{
|
||||
|
@ -55,6 +55,7 @@ LITE_USER_SEC_TEXT STATIC UINT32 sys_call3(UINT32 nbr, UINT32 parm1, UINT32 parm
|
|||
|
||||
return reg0;
|
||||
}
|
||||
#endif
|
||||
|
||||
LITE_USER_SEC_ENTRY VOID OsUserInit(VOID *args)
|
||||
{
|
||||
|
|
|
@ -34,6 +34,7 @@ MODULE_NAME := $(notdir $(shell pwd))
|
|||
LOCAL_SRCS := $(wildcard *.c)
|
||||
|
||||
LOCAL_INCLUDE := -I $(LITEOSTOPDIR)/kernel/base/include \
|
||||
-I $(LITEOSTOPDIR)/kernel/extended/dynload/include \
|
||||
-I $(LITEOSTOPDIR)/fs/include \
|
||||
-I $(LITEOSTOPDIR)/compat/posix/include \
|
||||
-I $(LITEOSTOPDIR)/bsd/compat/linuxkpi/include \
|
||||
|
|
Loading…
Reference in New Issue