You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.7 KiB
66 lines
2.7 KiB
include $(LITEOSTOPDIR)/config.mk
|
|
include $(DMCUDIR)/configs/common.mk
|
|
|
|
MODULE_NAME := $(notdir $(shell pwd))
|
|
|
|
# build osal
|
|
LITEOS_CFLAGS += -I$(OSALDIR)/include \
|
|
-I$(LITEOSTOPDIR)/lib/libc/include \
|
|
-I$(LITEOSTOPDIR)/open_source/incubator-nuttx/liteos/fs/include \
|
|
-I${LITEOSTOPDIR}/components/fdt/include \
|
|
-I$(LITEOSTOPDIR)/open_source/freebsd/sys/contrib/libfdt \
|
|
-I$(LITEOSTOPDIR)/components/fdt/include/ \
|
|
-I$(LITEOSTOPDIR)/fs/include \
|
|
-I$(LITEOSTOPDIR)/compat/linux/include/linux
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/drval_dts.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_addr.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_atomic.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_barrier.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_cache.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_completion.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_debug.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_device.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_event.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_inner.h
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_interrupt.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_math.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_msgqueue.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_mutex.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_proc.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_semaphore.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_spinlock.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_string.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_task.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_timer.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_wait.c
|
|
LOCAL_SRCS_y += $(OSALDIR)/source/liteos/osal_workqueue.c
|
|
|
|
# build rpmsg
|
|
LITEOS_CFLAGS += -I$(DMCUDIR)/include \
|
|
-I$(DRVDIR)/../include/generic \
|
|
-I$(DMCUDIR)/platform/rpmsg/include \
|
|
-I$(DMCUDIR)/platform/rpmsg/platform/reserved23/include
|
|
LOCAL_SRCS_$(CONFIG_DRIVERS_RPMSG) += $(wildcard rpmsg/mcu/*.c)
|
|
|
|
# build log
|
|
LITEOS_CFLAGS += -I$(DMCUDIR)/platform/log
|
|
LOCAL_SRCS_${CONFIG_SOCT_LOG_SUPPORT} += $(wildcard log/*.c)
|
|
|
|
# build proc
|
|
LITEOS_CFLAGS += -I$(DMCUDIR)/platform/proc \
|
|
-I$(DMCUDIR)/app
|
|
LOCAL_SRCS_${CONFIG_SOCT_LOG_SUPPORT} += $(wildcard proc/*.c)
|
|
|
|
# build mailbox
|
|
LITEOS_CFLAGS += -DSUPPORT_DMCU_MAILBOX
|
|
LITEOS_CFLAGS += -I$(DMCUDIR)/../mailbox
|
|
LOCAL_SRCS_${CONFIG_DRIVERS_MBX_DMCU} += $(DMCUDIR)/../mailbox/drv_mbx.c \
|
|
$(DMCUDIR)/../mailbox/mbx_common.c
|
|
|
|
# build ipcm
|
|
LOCAL_SRCS_${CONFIG_DRIVERS_IPCM_DMCU} += $(VENDOR_DIR)/huanglong/linux/drv/dmcu/ipcm/drv_ipcm_intf.c
|
|
LOCAL_SRCS = $(LOCAL_SRCS_y)
|
|
|
|
include $(MODULE)
|
|
|