makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ###################################################################
  2. # flag
  3. ###################################################################
  4. MOD_SRC =
  5. MOD_OBJ = $(PRELOADER_OUT)/obj
  6. ###################################################################
  7. # source files
  8. # - add your file here !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  9. ###################################################################
  10. MOD_SRC := \
  11. div/crt.S \
  12. div/idiv.S \
  13. div/idivmod.S \
  14. div/ldivmod.S \
  15. div/umodsi3.S \
  16. addr_trans.c \
  17. div0.c \
  18. stdlib.c \
  19. sec_hrid.c \
  20. string.c \
  21. error.c \
  22. hmac.c
  23. ifeq ("$(CFG_PROFILING_SUPPORT)", "yes")
  24. MOD_SRC += profiling.c
  25. else
  26. MOD_SRC += profiling_dummy.c
  27. endif
  28. ifeq ("$(CFG_PLAT_DBG_INFO_LIB)", "1")
  29. MOD_SRC += plat_dbg_info.c
  30. endif
  31. ifeq ("$(CFG_RAM_CONSOLE)", "1")
  32. MOD_SRC += ram_console.c
  33. endif
  34. ifeq ("$(MTK_AB_OTA_UPDATER)", "yes")
  35. ifeq ("$(MTK_BOOTCTRL_VERSION)", "1.0")
  36. MTK_BOOTCTRL_VERSION = 1.0
  37. else
  38. MTK_BOOTCTRL_VERSION = 2.0
  39. endif
  40. export MTK_BOOTCTRL_VERSION
  41. MOD_SRC += bootctrl/$(MTK_BOOTCTRL_VERSION)/ab_bootcheck.c
  42. endif
  43. ifeq ($(strip $(TARGET_BUILD_VARIANT)),user)
  44. MTK_CFLAGS += -DTARGET_BUILD_VARIANT_USER
  45. endif
  46. ifeq ($(strip $(TARGET_BUILD_VARIANT)),eng)
  47. MTK_CFLAGS += -DTARGET_BUILD_VARIANT_ENG
  48. endif
  49. ifeq ($(strip $(TARGET_BUILD_VARIANT)),userdebug)
  50. MTK_CFLAGS += -DTARGET_BUILD_VARIANT_USERDEBUG
  51. endif
  52. ###################################################################
  53. # target
  54. ###################################################################
  55. include $(COMMON_FILE_MK)
  56. SUBDIRS += partition
  57. SUBDIRS += storage
  58. SUBDIRS += loader
  59. SUBDIRS += bootctrl
  60. SUBDIRS += emimpu
  61. SUBDIRS += mblock
  62. SUBDIRS += watchdog
  63. ifeq ("$(CFG_UART_COMMON)", "1")
  64. SUBDIRS += uart
  65. endif
  66. ifeq ($(CFG_ATF_SUPPORT),1)
  67. SUBDIRS += trustzone
  68. endif
  69. ifeq ($(CFG_LOG_STORE_SUPPORT),1)
  70. SUBDIRS += log_store
  71. endif
  72. ifeq ($(CFG_GZ_SUPPORT),1)
  73. SUBDIRS += geniezone
  74. endif
  75. include $(COMMON_DIR_MK)