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.
40 lines
1.2 KiB
40 lines
1.2 KiB
include $(LITEOSTOPDIR)/config.mk
|
|
|
|
MODULE_NAME := $(notdir $(shell pwd))
|
|
|
|
LOCAL_PATH ?= $(LITEOS_PLATFORM)
|
|
|
|
LOCAL_SRCS := $(wildcard $(LOCAL_PATH)/*.c) \
|
|
$(wildcard $(LOCAL_PATH)/mmu/*.c) \
|
|
$(wildcard $(LOCAL_PATH)/extcmd/*.c)
|
|
|
|
ALL_ASSRCS := $(wildcard $(LITEOS_PLATFORM)/*.S)
|
|
ASSRCS := $(subst $(LITEOS_PLATFORM)/board.ld.S,,$(ALL_ASSRCS))
|
|
ASSRCS := $(subst $(LITEOS_PLATFORM)/liteos.ld.S,,$(ASSRCS))
|
|
ASSRCS := $(subst $(LITEOS_PLATFORM)/liteos_rom.ld.S,,$(ASSRCS))
|
|
ifneq ($(LOSCFG_LASLR), y)
|
|
ASSRCS := $(subst $(LITEOS_PLATFORM)/aslr_func.S,,$(ASSRCS))
|
|
endif
|
|
LOCAL_SRCS += $(ASSRCS)
|
|
|
|
LOCAL_SRCS_$(LOSCFG_PLATFORM_ADAPT) += os_adapt/os_adapt.c
|
|
|
|
LOCAL_SRCS += $(addprefix $(LITEOS_PLATFORM)/,$(LOCAL_SRCS_y))
|
|
LOCAL_SRCS_NEED_SORT := y
|
|
|
|
LOCAL_INCLUDE := -I $(LITEOSTOPDIR)/$(KERNEL_PATH)/extended/include \
|
|
-I $(LITEOSTOPDIR)/drivers/mmc/host/$(MMC_HOST_DIR) \
|
|
-I $(LITEOSTOPDIR)/$(KERNEL_PATH)/extended/perf
|
|
|
|
LOCAL_SRCS += $(wildcard $(LITEOS_PLATFORM)/flash/*.c)
|
|
|
|
LOCAL_FLAGS := $(LOCAL_INCLUDE) $(LITEOS_GCOV_OPTS)
|
|
|
|
ifeq ($(LOSCFG_BOX), y)
|
|
LOCAL_SRCS += $(wildcard $(BOX_CFG_SRC)/*.c)
|
|
endif
|
|
|
|
-include $(LITEOSTOPDIR)/targets/$(LITEOS_PLATFORM)/board.mk
|
|
|
|
include $(MODULE)
|