]> rtime.felk.cvut.cz Git - arc.git/blob - boards/board_common.mk
Added MPC5606S changes.
[arc.git] / boards / board_common.mk
1 \r
2 _BOARD_COMMON_MK:=y  # Include guard for backwards compatability\r
3 \r
4 obj-$(CFG_PPC) += crt0.o\r
5 obj-$(CFG_HC1X) += crt0.o\r
6 vpath-$(CFG_ARM_CM3) += $(ROOTDIR)/$(ARCH_PATH-y)/kernel\r
7 vpath-$(CFG_ARM_CM3) += $(ROOTDIR)/$(ARCH_PATH-y)/drivers/STM32F10x_StdPeriph_Driver/src\r
8 vpath-$(CFG_ARM_CM3) += $(ROOTDIR)/$(ARCH_PATH-y)/drivers/STM32_ETH_Driver/src\r
9 inc-$(CFG_ARM_CM3) += $(ROOTDIR)/$(ARCH_PATH-y)/drivers/STM32F10x_StdPeriph_Driver/inc\r
10 inc-$(CFG_ARM_CM3) += $(ROOTDIR)/$(ARCH_PATH-y)/drivers/STM32_ETH_Driver/inc\r
11 obj-$(CFG_ARM_CM3) += core_cm3.o\r
12 obj-$(CFG_ARM_CM3) += startup_stm32f10x.o\r
13 #stm32 lib files needed by drivers\r
14 obj-$(CFG_ARM_CM3) += stm32f10x_rcc.o\r
15 obj-$(CFG_ARM_CM3)-$(USE_CAN) += stm32f10x_can.o\r
16 obj-$(CFG_ARM_CM3)-$(USE_PORT) += stm32f10x_gpio.o\r
17 obj-$(CFG_ARM_CM3)-$(USE_ADC) += stm32f10x_adc.o\r
18 obj-$(CFG_ARM_CM3)-$(USE_ADC) += stm32f10x_dma.o\r
19 obj-$(CFG_ARM_CM3)-$(USE_FLS) += stm32f10x_flash.o\r
20 obj-$(CFG_ARM_CM3)-$(USE_PWM) += stm32f10x_tim.o\r
21 obj-$(CFG_ARM_CM3)-$(USE_LWIP) += stm32_eth.o\r
22 \r
23 obj-$(USE_TTY_TMS570_KEIL) += GLCD.o\r
24 obj-$(USE_TTY_TMS570_KEIL) += emif.o\r
25 \r
26 # Cortex R4\r
27 obj-$(CFG_ARM_CR4) += startup_cr4.o\r
28 \r
29 # OS object files. \r
30 # (checking if already included for compatability)\r
31 ifeq ($(filter Os_Cfg.o,$(obj-y)),)\r
32 obj-$(USE_KERNEL) += Os_Cfg.o\r
33 endif\r
34 \r
35 #Ecu\r
36 obj-$(USE_ECUM) += EcuM.o\r
37 obj-$(USE_ECUM) += EcuM_Main.o\r
38 obj-$(USE_ECUM) += EcuM_Cfg.o\r
39 obj-$(USE_ECUM) += EcuM_Callout_template.o\r
40 inc-$(USE_ECUM) += $(ROOTDIR)/system/EcuM\r
41 vpath-$(USE_ECUM) += $(ROOTDIR)/system/EcuM\r
42 \r
43 # Gpt\r
44 obj-$(USE_GPT) += Gpt.o\r
45 obj-$(USE_GPT) += Gpt_Cfg.o\r
46 \r
47 # Dma\r
48 obj-$(USE_DMA) += Dma.o\r
49 obj-$(USE_DMA) += Dma_Cfg.o\r
50 inc-$(USE_DMA) += $(ROOTDIR)/$(ARCH_PATH-y)/drivers\r
51 \r
52 # Mcu\r
53 obj-$(USE_MCU) += Mcu.o\r
54 obj-$(USE_MCU) += Mcu_Cfg.o\r
55 #obj-$(CFG_MPC55XX)-$(USE_MCU) += Mcu_Exceptions.o\r
56 \r
57 # Flash\r
58 obj-$(USE_FLS) += Fls.o\r
59 obj-$(USE_FLS) += Fls_Cfg.o\r
60 obj-$(CFG_MPC55XX)-$(USE_FLS) += Fls_H7F.o\r
61 \r
62 # Bring in the freescale driver source  \r
63 inc-$(CFG_MPC55XX) +=  $(ROOTDIR)/$(ARCH_PATH-y)/delivery/mpc5500_h7f/include\r
64 \r
65 # Can\r
66 obj-$(USE_CAN) += Can.o\r
67 obj-$(USE_CAN) += Can_Lcfg.o\r
68 \r
69 # CanIf\r
70 obj-$(USE_CANIF) += CanIf.o\r
71 obj-$(USE_CANIF) += CanIf_Cfg.o\r
72 vpath-$(USE_CANIF) += $(ROOTDIR)/communication/CanIf\r
73 inc-$(USE_CANIF) += $(ROOTDIR)/communication/CanIf\r
74 \r
75 # CanTp\r
76 obj-$(USE_CANTP) += CanTp.o\r
77 obj-$(USE_CANTP) += CanTp_Cfg.o\r
78 \r
79 vpath-$(USE_CANTP) += $(ROOTDIR)/communication/CanTp\r
80 inc-$(USE_CANTP) += $(ROOTDIR)/communication/CanTp\r
81 \r
82 obj-$(USE_DIO) += Dio.o\r
83 obj-$(USE_DIO) += Dio_Lcfg.o\r
84 \r
85 obj-$(USE_PORT) += Port.o\r
86 obj-$(USE_PORT) += Port_Cfg.o\r
87 \r
88 obj-$(USE_ADC) += Adc.o\r
89 obj-$(USE_ADC) += Adc_Cfg.o\r
90 \r
91 # Include the kernel\r
92 ifneq ($(USE_KERNEL),)\r
93 include $(ROOTDIR)/system/kernel/makefile\r
94 endif\r
95 \r
96 # Spi\r
97 obj-$(USE_SPI) += Spi.o\r
98 obj-$(USE_SPI) += Spi_Lcfg.o\r
99 \r
100 # NvM\r
101 obj-$(USE_NVM) += NvM.o\r
102 obj-$(USE_NVM) += NvM_Cfg.o\r
103 inc-$(USE_NVM) += $(ROOTDIR)/memory/NvM\r
104 vpath-$(USE_NVM) += $(ROOTDIR)/memory/NvM\r
105 \r
106 # Fee\r
107 obj-$(USE_FEE) += Fee.o\r
108 obj-$(USE_FEE) += Fee_Cfg.o\r
109 inc-$(USE_FEE) += $(ROOTDIR)/memory/Fee\r
110 vpath-$(USE_FEE) += $(ROOTDIR)/memory/Fee\r
111 \r
112 #Eep\r
113 obj-$(USE_EEP) += Eep.o\r
114 obj-$(USE_EEP) += Eep_Lcfg.o\r
115 #obj-$(USE_EEP) += Eeprom_Lcfg.o\r
116 \r
117 #Fls ext\r
118 obj-$(USE_FLS_SST25XX) += Fls_SST25xx.o\r
119 obj-$(USE_FLS_SST25XX) += Fls_SST25xx_Cfg.o\r
120 vpath-y += $(ROOTDIR)/peripherals\r
121 \r
122 #Wdg\r
123 obj-$(USE_WDG) += Wdg.o\r
124 #obj-$(USE_WDG) += Wdg_Lcfg.o\r
125 \r
126 #WdgIf\r
127 obj-$(USE_WDGIF) += WdgIf.o\r
128 obj-$(USE_WDGIF) += WdgIf_Cfg.o\r
129 inc-y += $(ROOTDIR)/system/WdgIf\r
130 vpath-y += $(ROOTDIR)/system/WdgIf\r
131 \r
132 #WdgM\r
133 obj-$(USE_WDGM) += WdgM.o\r
134 obj-$(USE_WDGM) += WdgM_PBcfg.o\r
135 inc-y += $(ROOTDIR)/system/WdgM\r
136 vpath-y += $(ROOTDIR)/system/WdgM\r
137 \r
138 #Pwm\r
139 obj-$(USE_PWM) += Pwm.o\r
140 obj-$(USE_PWM) += Pwm_Cfg.o\r
141 \r
142 # Misc\r
143 obj-$(USE_DET) += Det.o\r
144 \r
145 # Lin\r
146 obj-$(USE_LIN) += Lin_PBcfg.o\r
147 obj-$(USE_LIN) += Lin_Lcfg.o\r
148 obj-$(USE_LIN) += LinIf_Lcfg.o\r
149 obj-$(USE_LIN) += LinIf_PBcfg.o\r
150 obj-$(USE_LIN) += LinSM_Lcfg.o\r
151 obj-$(USE_LIN) += LinSM_PBcfg.o\r
152 obj-$(USE_LIN) += LinSM_Cfg.o\r
153 obj-$(USE_LIN) += Lin.o\r
154 obj-$(USE_LIN) += LinIf.o\r
155 obj-$(USE_LIN) += LinSM.o\r
156 vpath-y += $(ROOTDIR)/drivers/Lin/\r
157 vpath-y += $(ROOTDIR)/communication/Lin\r
158 inc-y += $(ROOTDIR)/communication/ComM\r
159 \r
160 # ComM\r
161 obj-$(USE_COMM) += ComM.o\r
162 obj-$(USE_COMM) += ComM_Cfg.o\r
163 inc-$(USE_COMM) += $(ROOTDIR)/communication/ComM\r
164 vpath-$(USE_COMM) += $(ROOTDIR)/communication/ComM\r
165 vpath-y += $(ROOTDIR)/communication/ComM\r
166 inc-$(USE_COMM) += $(ROOTDIR)/communication/ComM\r
167 \r
168 # Nm\r
169 obj-$(USE_NM) += Nm.o\r
170 obj-$(USE_NM) += Nm_Cfg.o\r
171 inc-$(USE_NM) += $(ROOTDIR)/communication/Nm\r
172 vpath-$(USE_NM) += $(ROOTDIR)/communication/Nm\r
173 \r
174 # CanNm\r
175 obj-$(USE_CANNM) += CanNm.o\r
176 obj-$(USE_CANNM) += CanNm_LCfg.o\r
177 inc-$(USE_CANNM) += $(ROOTDIR)/communication/CanNm\r
178 vpath-$(USE_CANNM) += $(ROOTDIR)/communication/CanNm\r
179 \r
180 # CanSm\r
181 obj-$(USE_CANSM) += CanSM.o\r
182 obj-$(USE_CANSM) += CanSM_LCfg.o\r
183 inc-$(USE_CANSM) += $(ROOTDIR)/communication/CanSM\r
184 vpath-$(USE_CANSM) += $(ROOTDIR)/communication/CanSM\r
185 \r
186 # Com\r
187 obj-$(USE_COM) += Com_PbCfg.o\r
188 obj-$(USE_COM) += Com_Com.o\r
189 obj-$(USE_COM) += Com_Sched.o\r
190 obj-$(USE_COM) += Com.o\r
191 obj-$(USE_COM) += Com_misc.o\r
192 inc-$(USE_PDUR) += $(ROOTDIR)/communication/Com\r
193 inc-$(USE_COM) += $(ROOTDIR)/communication/Com\r
194 vpath-$(USE_COM) += $(ROOTDIR)/communication/Com\r
195 \r
196 # PduR\r
197 obj-$(USE_PDUR) += PduR_Com.o\r
198 obj-$(USE_PDUR) += PduR_Logic.o\r
199 obj-$(USE_PDUR) += PduR_LinIf.o\r
200 obj-$(USE_PDUR) += PduR_PbCfg.o\r
201 obj-$(USE_PDUR) += PduR_CanIf.o\r
202 obj-$(USE_PDUR) += PduR_CanTp.o\r
203 obj-$(USE_PDUR) += PduR_Dcm.o\r
204 obj-$(USE_PDUR) += PduR_SoAd.o\r
205 obj-$(USE_PDUR) += PduR_Routing.o\r
206 obj-$(USE_PDUR) += PduR.o\r
207 inc-$(USE_PDUR) += $(ROOTDIR)/communication/PduR\r
208 inc-$(USE_COM) += $(ROOTDIR)/communication/PduR\r
209 vpath-$(USE_PDUR) += $(ROOTDIR)/communication/PduR\r
210 \r
211 # IO Hardware Abstraction\r
212 obj-$(USE_IOHWAB) += IoHwAb.o\r
213 \r
214 #Dem\r
215 obj-$(USE_DEM) += Dem.o\r
216 obj-$(USE_DEM) += Dem_LCfg.o\r
217 inc-$(USE_DEM) += $(ROOTDIR)/diagnostic/Dem\r
218 vpath-$(USE_DEM) += $(ROOTDIR)/diagnostic/Dem\r
219 \r
220 #Dcm\r
221 obj-$(USE_DCM) += Dcm.o\r
222 obj-$(USE_DCM) += Dcm_Dsp.o\r
223 obj-$(USE_DCM) += Dcm_Dsd.o\r
224 obj-$(USE_DCM) += Dcm_Dsl.o\r
225 obj-$(USE_DCM) += Dcm_LCfg.o\r
226 inc-$(USE_DCM) += $(ROOTDIR)/diagnostic/Dcm\r
227 vpath-$(USE_DCM) += $(ROOTDIR)/diagnostic/Dcm\r
228 \r
229 obj-$(USE_RAMLOG) += ramlog.o\r
230 \r
231 # Common stuff, if speciied\r
232 VPATH += $(ROOTDIR)/common\r
233 \r
234 \r
235 #TCF\r
236 obj-$(USE_TCF) += tcf.o\r
237 obj-$(USE_TCF) += Tcf_Cfg.o\r
238 obj-$(USE_TCF) += sys_monitor.o\r
239 obj-$(USE_TCF) += streams.o\r
240 inc-$(USE_TCF) += $(ROOTDIR)/common/tcf\r
241 vpath-$(USE_TCF) += $(ROOTDIR)/common/tcf\r
242 \r
243 #SLEEP\r
244 obj-$(USE_SLEEP) += sleep.o\r
245 \r
246 \r
247 \r
248 ifeq ($(COMPILER),cw)\r
249 SELECT_CLIB?=CLIB_CW\r
250 endif\r
251 \r
252 SELECT_CLIB?=CLIB_NEWLIB\r
253 \r
254 ifeq ($(SELECT_CLIB),CLIB_NATIVE)\r
255   # Just use native clib \r
256   \r
257 else ifeq ($(SELECT_CLIB),CLIB_CW)\r
258   # This is not good, but don't know what to do right now....\r
259   obj-y += xtoa.o\r
260   obj-y += msl_port.o\r
261 else\r
262   # Newlib\r
263   obj-y += xtoa.o\r
264   obj-y += newlib_port.o\r
265   # If we have configured console output we include printf. \r
266   # Overridden to use lib implementation with CFG_NEWLIB_PRINTF\r
267   ifneq ($(CFG_NEWLIB_PRINTF),y)\r
268     ifneq (,$(SELECT_CONSOLE) $(SELECT_OS_CONSOLE))\r
269       obj-y += printf.o\r
270     endif # SELECT_CONSOLE\r
271   endif # CFG_NEWLIB_PRINTF\r
272 endif # SELECT_CLIB \r
273 \r
274 \r
275 obj-y += $(obj-y-y)\r
276 \r
277 vpath-y += $(ROOTDIR)/$(ARCH_PATH-y)/kernel\r
278 vpath-y += $(ROOTDIR)/$(ARCH_PATH-y)/drivers\r
279 vpath-y += $(ROOTDIR)/boards/$(BOARDDIR)\r
280 vpath-y += $(ROOTDIR)/arch/$(ARCH_FAM)\r
281 vpath-y += $(ROOTDIR)/boards/$(BOARDDIR)/config\r
282 vpath-y += $(ROOTDIR)/diagnostic/Dem\r
283 vpath-y += $(ROOTDIR)/diagnostic/Dcm\r
284 vpath-y += $(ROOTDIR)/diagnostic/Det\r
285 \r
286 # include files need by us\r
287 inc-y += $(ROOTDIR)/include\r
288 inc-y += $(ROOTDIR)/system/kernel/test\r
289 inc-y += $(ROOTDIR)/system/kernel/include\r
290 inc-y += $(ROOTDIR)/$(ARCH_PATH-y)/kernel\r
291 inc-y += $(ROOTDIR)/$(ARCH_PATH-y)/drivers\r
292 inc-y += $(ROOTDIR)/boards/$(BOARDDIR)/config\r
293 inc-y += $(ROOTDIR)/drivers/Dem\r
294 inc-y += $(ROOTDIR)/drivers/Dcm\r
295 inc-y += $(ROOTDIR)/drivers/test\r
296 \r
297 \r
298 #\r
299 # And last the generic board\r
300 #\r
301 inc-y += $(ROOTDIR)/boards/generic\r
302 vpath-y += $(ROOTDIR)/boards/generic\r
303 \r
304 \r
305 VPATH += $(vpath-y)\r
306 #$(error $(VPATH))\r
307 \r
308 # libs needed by us\r
309 #build-lib-y += $(ROOTDIR)/libs/libboard_$(BOARDDIR).a\r
310 \r