]> rtime.felk.cvut.cz Git - arc.git/blobdiff - boards/board_common.mk
Should not build sleep only for mpc5516 and mpc5668
[arc.git] / boards / board_common.mk
index 1fc7d36deeb02327b999e8df58f0a0d1d8ced25c..ccbe58a98af0918fca7a81a0e44de8517978ce47 100644 (file)
@@ -1,6 +1,7 @@
 \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
@@ -36,7 +37,9 @@ endif
 obj-$(USE_ECUM) += EcuM.o\r
 obj-$(USE_ECUM) += EcuM_Main.o\r
 obj-$(USE_ECUM) += EcuM_PBcfg.o\r
+ifeq ($(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
@@ -58,6 +61,7 @@ inc-$(USE_DMA) += $(ROOTDIR)/$(ARCH_PATH-y)/drivers
 # Mcu\r
 obj-$(USE_MCU) += Mcu.o\r
 obj-$(USE_MCU) += Mcu_Cfg.o\r
+obj-$(USE_MCU)-$(if $(CFG_MPC5668)$(CFG_MPC5516),y) += Mcu_Sleep.o\r
 #obj-$(CFG_MPC55XX)-$(USE_MCU) += Mcu_Exceptions.o\r
 \r
 # Flash\r
@@ -74,6 +78,7 @@ inc-$(CFG_MPC55XX) +=  $(ROOTDIR)/$(ARCH_PATH-y)/delivery/mpc5500_h7f/include
 obj-$(USE_CAN) += Can.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
@@ -96,6 +101,7 @@ obj-$(USE_PORT) += Port.o
 obj-$(USE_PORT) += Port_Cfg.o\r
 \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
@@ -105,10 +111,15 @@ obj-$(USE_ADC) += Adc_Internal.o
 vpath-y += $(ROOTDIR)/drivers\r
 inc-y += $(ROOTDIR)/drivers\r
 \r
-# Crc\r
-vpath-$(USE_CRC32) += $(ROOTDIR)/system/Crc\r
-obj-$(USE_CRC32) += Crc_32.o\r
-obj-$(USE_CRC16) += Crc_16.o\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
@@ -128,7 +139,7 @@ obj-$(USE_SPI) += Spi_Lcfg.o
 # NvM\r
 obj-$(USE_NVM) += NvM.o\r
 obj-$(USE_NVM) += NvM_Cfg.o\r
-obj-$(USE_NVM)-$(CFG_NVM_USE_SERVICE_COMPONENT) += NvmM_ServiceComponent.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
@@ -176,6 +187,7 @@ obj-$(USE_LIN) += Lin_PBcfg.o
 obj-$(USE_LIN) += Lin_Lcfg.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
@@ -245,12 +257,11 @@ inc-$(USE_COM) += $(ROOTDIR)/communication/PduR
 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
-obj-$(USE_IOHWAB) += IoHwAb_Impl.o\r
 \r
 #Dem\r
 obj-$(USE_DEM) += Dem.o\r
@@ -264,6 +275,10 @@ obj-$(USE_DCM) += Dcm_Dsp.o
 obj-$(USE_DCM) += Dcm_Dsd.o\r
 obj-$(USE_DCM) += Dcm_Dsl.o\r
 obj-$(USE_DCM) += Dcm_LCfg.o\r
+ifeq ($(filter Dcm_Callout_Stubs.o,$(obj-y)),)\r
+obj-$(USE_DCM) += Dcm_Callout_Stubs.o\r
+endif\r
+\r
 inc-$(USE_DCM) += $(ROOTDIR)/diagnostic/Dcm\r
 vpath-$(USE_DCM) += $(ROOTDIR)/diagnostic/Dcm\r
 \r
@@ -284,7 +299,8 @@ vpath-$(USE_TCF) += $(ROOTDIR)/common/tcf
 #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