Add kernel configuration option to enable/disable HR Timer
High resolution timer can now be excluded from the build. There is currently no HR Timer implementation for other platform than HiSi. Note: HR Timer will be enabled by default Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com> Change-Id: I5daf8e0ceec2a17025b579513e3bd74db1040916
This commit is contained in:
@@ -33,6 +33,10 @@ MODULE_NAME := $(notdir $(shell pwd))
|
||||
|
||||
LOCAL_SRCS := $(wildcard src/*.c)
|
||||
|
||||
ifneq ($(LOSCFG_HRTIMER_ENABLE), y)
|
||||
LOCAL_SRCS := $(filter-out src/linux_hrtimer.c, $(LOCAL_SRCS))
|
||||
endif
|
||||
|
||||
LOCAL_INCLUDE := \
|
||||
-I $(LITEOSTOPDIR)/kernel/base/include \
|
||||
-I $(LITEOSTOPDIR)/bsd/compat/linuxkpi/include
|
||||
|
||||
Reference in New Issue
Block a user