\r
_BOARD_COMMON_MK:=y # Include guard for backwards compatability\r
\r
+\r
obj-$(CFG_PPC) += crt0.o\r
obj-$(CFG_HC1X) += crt0.o\r
vpath-$(CFG_ARM_CM3) += $(ROOTDIR)/$(ARCH_PATH-y)/kernel\r
#Ecu\r
obj-$(USE_ECUM) += EcuM.o\r
obj-$(USE_ECUM) += EcuM_Main.o\r
-obj-$(USE_ECUM) += EcuM_Cfg.o\r
-obj-$(USE_ECUM) += EcuM_Callout_template.o\r
+obj-$(USE_ECUM) += EcuM_PBcfg.o\r
+ifneq ($(filter EcuM_Callout_Stubs.o,$(obj-y)),)\r
+obj-$(USE_ECUM) += EcuM_Callout_Stubs.o\r
+endif\r
+obj-$(USE_ECUM)-$(CFG_ECUM_USE_SERVICE_COMPONENT) += EcuM_ServiceComponent.o\r
inc-$(USE_ECUM) += $(ROOTDIR)/system/EcuM\r
vpath-$(USE_ECUM) += $(ROOTDIR)/system/EcuM\r
\r
# Mcu\r
obj-$(USE_MCU) += Mcu.o\r
obj-$(USE_MCU) += Mcu_Cfg.o\r
+obj-$(USE_MCU) += Mcu_Sleep.o\r
#obj-$(CFG_MPC55XX)-$(USE_MCU) += Mcu_Exceptions.o\r
\r
# Flash\r
\r
# Can\r
obj-$(USE_CAN) += Can.o\r
-obj-$(USE_CAN) += Can_Lcfg.o\r
+obj-$(USE_CAN)-$(CFG_PPC) += Can_PBcfg.o\r
+obj-$(USE_CAN)-$(CFG_ARM_CM3) += Can_Lcfg.o\r
+obj-$(USE_CAN)-$(CFG_ARM_CR4) += Can_Lcfg.o\r
+obj-$(USE_CAN)-$(CFG_HC1X) += Can_Lcfg.o\r
\r
# CanIf\r
obj-$(USE_CANIF) += CanIf.o\r
obj-$(USE_PORT) += Port.o\r
obj-$(USE_PORT) += Port_Cfg.o\r
\r
-obj-$(USE_ADC) += Adc.o\r
+obj-$(USE_ADC)-$(CFG_MPC560X) += Adc_560x.o\r
+obj-$(USE_ADC)-$(CFG_MPC5668) += Adc_560x.o\r
+obj-$(USE_ADC)-$(CFG_HC1X) += Adc.o\r
+obj-$(USE_ADC)-$(CFG_ARM_CM3) += Adc.o\r
+obj-$(USE_ADC)-$(CFG_MPC5516) += Adc_eQADC.o\r
+obj-$(USE_ADC)-$(CFG_MPC5567) += Adc_eQADC.o\r
obj-$(USE_ADC) += Adc_Cfg.o\r
+obj-$(USE_ADC) += Adc_Internal.o\r
+vpath-y += $(ROOTDIR)/drivers\r
+inc-y += $(ROOTDIR)/drivers\r
+\r
+# Crc (Include when using NvM)\r
+vpath-$(USE_NVM) += $(ROOTDIR)/system/Crc\r
+obj-$(USE_NVM) += Crc_32.o\r
+obj-$(USE_NVM) += Crc_16.o\r
+\r
+# SchM, always find the include files.\r
+inc-y += $(ROOTDIR)/system/SchM\r
+vpath-$(USE_SCHM) += $(ROOTDIR)/system/SchM\r
+obj-$(USE_SCHM) += SchM.o\r
\r
# J1939Tp\r
obj-$(USE_J1939TP) += J1939Tp.o\r
# NvM\r
obj-$(USE_NVM) += NvM.o\r
obj-$(USE_NVM) += NvM_Cfg.o\r
+obj-$(USE_NVM)-$(CFG_NVM_USE_SERVICE_COMPONENT) += NvM_ServiceComponent.o\r
inc-$(USE_NVM) += $(ROOTDIR)/memory/NvM\r
vpath-$(USE_NVM) += $(ROOTDIR)/memory/NvM\r
\r
#Fls ext\r
obj-$(USE_FLS_SST25XX) += Fls_SST25xx.o\r
obj-$(USE_FLS_SST25XX) += Fls_SST25xx_Cfg.o\r
-vpath-y += $(ROOTDIR)/peripherals\r
\r
#Wdg\r
obj-$(USE_WDG) += Wdg.o\r
#WdgIf\r
obj-$(USE_WDGIF) += WdgIf.o\r
obj-$(USE_WDGIF) += WdgIf_Cfg.o\r
+obj-$(USE_WDGM)-$(CFG_WDGM_USE_SERVICE_COMPONENT) += WdgM_ServiceComponent.o\r
inc-y += $(ROOTDIR)/system/WdgIf\r
vpath-y += $(ROOTDIR)/system/WdgIf\r
\r
# Lin\r
obj-$(USE_LIN) += Lin_PBcfg.o\r
obj-$(USE_LIN) += Lin_Lcfg.o\r
-obj-$(USE_LIN) += Lin.o\r
+obj-$(USE_LIN)-$(CFG_MPC560X) += LinFlex.o\r
+obj-$(USE_LIN)-$(CFG_MPC5516) += Lin.o\r
+obj-$(USE_LIN)-$(CFG_MPC5567) += Lin.o\r
\r
# LinIf\r
obj-$(USE_LINIF) += LinIf_Lcfg.o\r
vpath-$(USE_PDUR) += $(ROOTDIR)/communication/PduR\r
\r
# IO Hardware Abstraction\r
-obj-$(USE_IOHWAB) += IoHwAb.o\r
+vpath-$(USE_IOHWAB) += $(ROOTDIR)/system/IoHwAb\r
+obj-$(USE_IOHWAB) += IoHwAb_Digital.o\r
+obj-$(USE_IOHWAB) += IoHwAb_Analog.o\r
+obj-$(USE_IOHWAB) += IoHwAb_Pwm.o\r
+obj-$(USE_IOHWAB)-$(CFG_IOHWAB_USE_SERVICE_COMPONENT) += IoHwAb_ServiceComponent.o\r
\r
#Dem\r
obj-$(USE_DEM) += Dem.o\r
obj-$(USE_DCM) += Dcm_Dsd.o\r
obj-$(USE_DCM) += Dcm_Dsl.o\r
obj-$(USE_DCM) += Dcm_LCfg.o\r
+obj-$(USE_DCM) += Dcm_Callout_Stubs.o\r
inc-$(USE_DCM) += $(ROOTDIR)/diagnostic/Dcm\r
vpath-$(USE_DCM) += $(ROOTDIR)/diagnostic/Dcm\r
\r
#SLEEP\r
obj-$(USE_SLEEP) += sleep.o\r
\r
-\r
+# Circular Buffer (always)\r
+obj-y += cirq_buffer.o\r
\r
ifeq ($(COMPILER),cw)\r
SELECT_CLIB?=CLIB_CW\r