platform.mk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Required platform files.
  2. PLATFORMSRC := $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/hal_lld.c \
  3. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/hal_st_lld.c \
  4. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_aic.c \
  5. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_matrix.c \
  6. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_secumod.c \
  7. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_onewire.c \
  8. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_classd.c \
  9. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_lcdc.c \
  10. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_cache.c \
  11. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/sama_tc_lld.c \
  12. $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c
  13. # Required include directories.
  14. PLATFORMINC := $(CHIBIOS)/os/hal/ports/SAMA/SAMA5D2x
  15. # Optional platform files.
  16. ifeq ($(USE_SMART_BUILD),yes)
  17. # Configuration files directory
  18. ifeq ($(CONFDIR),)
  19. CONFDIR = .
  20. endif
  21. HALCONF := $(strip $(shell cat $(CONFDIR)/halconf.h | egrep -e "\#define"))
  22. else
  23. endif
  24. # Drivers compatible with the platform.
  25. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/DMAv1/driver.mk
  26. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/I2Cv1/driver.mk
  27. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/MACv1/driver.mk
  28. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/PIOv1/driver.mk
  29. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/QUADSPIv1/driver.mk
  30. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/SPIv1/driver.mk
  31. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/RTCv1/driver.mk
  32. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/xWDGv1/driver.mk
  33. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/USARTv1/driver.mk
  34. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/CRYPTOv1/driver.mk
  35. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/SDMMCv1/driver.mk
  36. include $(CHIBIOS)/os/hal/ports/SAMA/LLD/RNGv1/driver.mk
  37. # Shared variables
  38. ALLCSRC += $(PLATFORMSRC)
  39. ALLINC += $(PLATFORMINC)