master/Makefile
changeset 196 f8a1e9f364a3
parent 191 ca805255a935
child 197 b9a6e2c22745
equal deleted inserted replaced
195:674071846ee3 196:f8a1e9f364a3
    16 obj-m := ec_master.o
    16 obj-m := ec_master.o
    17 
    17 
    18 ec_master-objs := module.o master.o device.o slave.o command.o types.o \
    18 ec_master-objs := module.o master.o device.o slave.o command.o types.o \
    19 			domain.o mailbox.o canopen.o ethernet.o
    19 			domain.o mailbox.o canopen.o ethernet.o
    20 
    20 
    21 EXTRA_CFLAGS := -DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER)
    21 REV := $(shell svnversion $(src) 2>/dev/null)
       
    22 
       
    23 EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER)
    22 
    24 
    23 #------------------------------------------------------------------------------
    25 #------------------------------------------------------------------------------
    24 
    26 
    25 else
    27 else
    26 
    28