From 8056ff9bd1ac5cb673322e5acee31619dda3a483 Mon Sep 17 00:00:00 2001 From: wolf Date: Sat, 14 Feb 2009 14:26:52 +0000 Subject: [PATCH] Makefile.common: allow CONFIG_CAN_CALC_BITTIMING to be disabled Signed-off-by: Wolfgang Grandegger git-svn-id: svn://svn.berlios.de//socketcan/trunk@936 030b6a49-0b11-0410-94ab-b0dab22257f2 --- kernel/2.6/Makefile.common | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/2.6/Makefile.common b/kernel/2.6/Makefile.common index 50bf84d..4ffa944 100644 --- a/kernel/2.6/Makefile.common +++ b/kernel/2.6/Makefile.common @@ -4,8 +4,11 @@ EXTRA_CFLAGS += \ -I$(TOPDIR)/include \ -I$(TOPDIR)/drivers/net/can/hal \ \ - -DCONFIG_CAN_CALC_BITTIMING \ -DETH_P_CAN=0x000C \ -DARPHRD_CAN=280 +ifneq ($(CONFIG_CAN_CALC_BITTIMING),n) +EXTRA_CFLAGS += -DCONFIG_CAN_CALC_BITTIMING +endif + endif -- 2.39.2