devices/Kbuild
changeset 366 148ac5ef18ae
parent 364 9028b20e3c12
child 382 72500991bcc3
equal deleted inserted replaced
365:7aede8ed6025 366:148ac5ef18ae
    37 
    37 
    38 obj-m := ec_8139too.o
    38 obj-m := ec_8139too.o
    39 
    39 
    40 ec_8139too-objs := 8139too.o
    40 ec_8139too-objs := 8139too.o
    41 
    41 
    42 REV := $(shell svnversion $(src) 2>/dev/null || echo "unknown")
    42 REV := $(shell if test -s $(src)/../svnrevision; then \
       
    43 		cat $(src)/../svnrevision; \
       
    44 	else \
       
    45 		svnversion $(src) 2>/dev/null || echo "unknown"; \
       
    46 	fi)
    43 
    47 
    44 EXTRA_CFLAGS = -DEC_REV=$(REV) -DEC_USER=$(USER)
    48 EXTRA_CFLAGS = -DEC_REV=$(REV) -DEC_USER=$(USER)
    45 
    49 
    46 #------------------------------------------------------------------------------
    50 #------------------------------------------------------------------------------