]> rtime.felk.cvut.cz Git - arc.git/commitdiff
CRC module only included for NvM (to avoid problems in HCS12 when always including). Ticket1375-AddCRCModules
authorjohn <devnull@localhost>
Fri, 11 May 2012 10:53:19 +0000 (12:53 +0200)
committerjohn <devnull@localhost>
Fri, 11 May 2012 10:53:19 +0000 (12:53 +0200)
boards/board_common.mk

index 6879c7492e295a8547fa69c06d5897369d1a9632..dc02887e082bcd681769b6f846eb1d6f4475fc5f 100644 (file)
@@ -107,10 +107,10 @@ obj-$(USE_ADC) += Adc_Internal.o
 vpath-y += $(ROOTDIR)/drivers\r
 inc-y += $(ROOTDIR)/drivers\r
 \r
-# Crc (Always include)\r
-vpath-y += $(ROOTDIR)/system/Crc\r
-obj-y += Crc_32.o\r
-obj-y += 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
 # J1939Tp\r
 obj-$(USE_J1939TP) += J1939Tp.o\r