Make.defs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ############################################################################
  2. # drivers/timers/Make.defs
  3. #
  4. # Licensed to the Apache Software Foundation (ASF) under one or more
  5. # contributor license agreements. See the NOTICE file distributed with
  6. # this work for additional information regarding copyright ownership. The
  7. # ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance with the
  9. # License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. # License for the specific language governing permissions and limitations
  17. # under the License.
  18. #
  19. ############################################################################
  20. # Include timer drivers
  21. ifeq ($(CONFIG_WATCHDOG),y)
  22. CSRCS += watchdog.c
  23. TMRDEPPATH = --dep-path timers
  24. TMRVPATH = :timers
  25. endif
  26. ifeq ($(CONFIG_TIMER),y)
  27. CSRCS += timer.c
  28. TMRDEPPATH = --dep-path timers
  29. TMRVPATH = :timers
  30. endif
  31. ifeq ($(CONFIG_TIMER_ARCH),y)
  32. CSRCS += arch_timer.c
  33. TMRDEPPATH = --dep-path timers
  34. TMRVPATH = :timers
  35. endif
  36. ifeq ($(CONFIG_ONESHOT),y)
  37. CSRCS += oneshot.c
  38. TMRDEPPATH = --dep-path timers
  39. TMRVPATH = :timers
  40. endif
  41. ifeq ($(CONFIG_ALARM_ARCH),y)
  42. CSRCS += arch_alarm.c
  43. TMRDEPPATH = --dep-path timers
  44. TMRVPATH = :timers
  45. endif
  46. ifeq ($(CONFIG_RTC_DSXXXX),y)
  47. CSRCS += ds3231.c
  48. TMRDEPPATH = --dep-path timers
  49. TMRVPATH = :timers
  50. endif
  51. ifeq ($(CONFIG_RTC_PCF85263),y)
  52. CSRCS += pcf85263.c
  53. TMRDEPPATH = --dep-path timers
  54. TMRVPATH = :timers
  55. endif
  56. ifeq ($(CONFIG_RTC_MCP794XX),y)
  57. CSRCS += mcp794xx.c
  58. TMRDEPPATH = --dep-path timers
  59. TMRVPATH = :timers
  60. endif
  61. ifeq ($(CONFIG_RTC_RPMSG),y)
  62. CSRCS += rpmsg_rtc.c
  63. TMRDEPPATH = --dep-path timers
  64. TMRVPATH = :timers
  65. endif
  66. ifeq ($(CONFIG_RTC_ARCH),y)
  67. CSRCS += arch_rtc.c
  68. TMRDEPPATH = --dep-path timers
  69. TMRVPATH = :timers
  70. endif
  71. ifeq ($(CONFIG_RTC_DRIVER),y)
  72. CSRCS += rtc.c
  73. TMRDEPPATH = --dep-path timers
  74. TMRVPATH = :timers
  75. endif
  76. ifeq ($(CONFIG_TIMERS_CS2100CP),y)
  77. CSRCS += cs2100-cp.c
  78. TMRDEPPATH = --dep-path timers
  79. TMRVPATH = :timers
  80. endif
  81. ifeq ($(CONFIG_PWM),y)
  82. CSRCS += pwm.c
  83. TMRDEPPATH = --dep-path timers
  84. TMRVPATH = :timers
  85. endif
  86. # Include timer build support (if any were selected)
  87. DEPPATH += $(TMRDEPPATH)
  88. VPATH += $(TMRVPATH)