Makefile.mk 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. VOS_TARGET_O=
  2. SDK_VOS_ARCH_DIR ?= $(SDK_VOS_DIR)/risc
  3. SDK_VOS_ARCH_FREERTOS_DIR ?= $(SDK_VOS_DIR)/freertos
  4. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  5. include $(SDK_VOS_ARCH_DIR)/src/Makefile.mk
  6. include $(SDK_VOS_ARCH_FREERTOS_DIR)/Makefile.mk
  7. include $(SDK_VOS_DIR)/src/Makefile.mk
  8. VPATH = $(SDK_VOS_DIR)/src
  9. VPATH += $(SDK_VOS_ARCH_DIR)/src
  10. VPATH += $(SDK_VOS_ARCH_FREERTOS_DIR)/FreeRTOS/Source
  11. VPATH += $(SDK_VOS_ARCH_FREERTOS_DIR)/FreeRTOS/Source/portable/GCC/RISC32
  12. VPATH += $(SDK_VOS_ARCH_FREERTOS_DIR)/FreeRTOS/Source/portable/MemMang/
  13. VPATH += $(SDK_VOS_ARCH_FREERTOS_DIR)/src
  14. INCLUDES = -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)
  15. INCLUDES += -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)/regs
  16. INCLUDES += -I$(SDK_VOS_DIR)/inc
  17. INCLUDES += -I$(SDK_VOS_ARCH_DIR)/inc
  18. INCLUDES += -I$(SDK_COMMON_DIR)/
  19. INCLUDES += -I$(SDK_VOS_ARCH_FREERTOS_DIR)/FreeRTOS/Include
  20. INCLUDES += -I$(SDK_VOS_ARCH_FREERTOS_DIR)/FreeRTOS/Source/include
  21. INCLUDES += -I$(SDK_VOS_ARCH_FREERTOS_DIR)/FreeRTOS/Source/portable/GCC/RISC32
  22. ifeq ($(COMPILE_MODE),debug)
  23. INCLUDES += -I$(SDK_COMMON_DIR)/Debug/LetterShell/inc
  24. endif
  25. VOS_LIB=$(BUILD_OUT_IMG_DIR)/libvos.a
  26. release:$(VOS_LIB)
  27. debug:$(VOS_LIB)
  28. VOS_NO_DIR_O = $(VOS_TARGET_O)
  29. VOS_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(VOS_NO_DIR_O))
  30. $(VOS_LIB): $(VOS_NO_DIR_O)
  31. $(HEADER)$(AR) qc $@ $(VOS_WITH_DIR_O)
  32. $(HEADER)$(RANLIB) $@