lvgl/Makefile: add LV_SYSMON_GET_IDLE and LV_PROFILER porting
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
a9ff36b2a4
commit
bdc0c006bd
@ -31,6 +31,18 @@ ifneq ($(CONFIG_LV_ASSERT_HANDLER_INCLUDE), "")
|
||||
CFLAGS += "-DLV_ASSERT_HANDLER=ASSERT(0);"
|
||||
endif
|
||||
|
||||
ifeq ($(and $(CONFIG_LV_USE_PERF_MONITOR),$(CONFIG_SCHED_CPULOAD)),y)
|
||||
CFLAGS += "-DLV_SYSMON_GET_IDLE=lv_nuttx_get_idle"
|
||||
endif
|
||||
|
||||
ifeq ($(and $(CONFIG_SCHED_INSTRUMENTATION),$(CONFIG_LV_USE_PROFILER)),y)
|
||||
CFLAGS += "-DLV_PROFILER_BEGIN=sched_note_beginex(NOTE_TAG_GRAPHICS, __func__)"
|
||||
CFLAGS += "-DLV_PROFILER_END=sched_note_endex(NOTE_TAG_GRAPHICS, __func__)"
|
||||
|
||||
CFLAGS += "-DLV_PROFILER_BEGIN_TAG(str)=sched_note_beginex(NOTE_TAG_GRAPHICS, str)"
|
||||
CFLAGS += "-DLV_PROFILER_END_TAG(str)=sched_note_endex(NOTE_TAG_GRAPHICS, str)"
|
||||
endif
|
||||
|
||||
# Set up build configuration and environment
|
||||
|
||||
WD := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'}
|
||||
|
Loading…
Reference in New Issue
Block a user