Makefile 957 B

1234567891011121314151617181920212223242526272829303132333435
  1. TARGET = threadx_module_manager
  2. RTOS = ThreadX
  3. THREADX_MODULE := 1
  4. # define TX_INCLUDE_USER_DEFINE_FILE to include user defines in tx_user.h
  5. # -fno-tree-tree-merge is required for optimize level > O1
  6. # OS/ThreadX/common/src/tx_mutex_delete.c code compiled is not correct
  7. COMMON_FLAGS := -O2 -fno-tree-tail-merge -DTX_INCLUDE_USER_DEFINE_FILE
  8. DOWNLOAD := sram
  9. CORE ?= n900fd
  10. QEMU_OPT += -device loader,file=../module_sample/threadx_module_sample.bin,addr=0xA0400000
  11. GDB_UPLOAD_EXTRA_CMDS += -ex "restore ../module_sample/threadx_module_sample.bin binary 0xA0400000"
  12. NUCLEI_SDK_ROOT = ../../../..
  13. SRCDIRS = .
  14. INCDIRS = .
  15. include $(NUCLEI_SDK_ROOT)/Build/Makefile.base
  16. cleanall: clean cleanmodule
  17. buildall: module all
  18. cleanmodule:
  19. make -C ../module_sample RISCV_ARCH=$(RISCV_ARCH) RISCV_ABI=$(RISCV_ABI) clean
  20. module:
  21. make -C ../module_sample RISCV_ARCH=$(RISCV_ARCH) RISCV_ABI=$(RISCV_ABI) dasm bin
  22. .PHONY: cleanmodule module cleanall buildall