dummy/Kbuild
changeset 679 62fc387ec928
parent 665 a9794f927d78
child 685 3e7828ef0cd8
equal deleted inserted replaced
678:5e0d5f04dc65 679:62fc387ec928
    31 #
    31 #
    32 #------------------------------------------------------------------------------
    32 #------------------------------------------------------------------------------
    33 
    33 
    34 include $(src)/../config.kbuild
    34 include $(src)/../config.kbuild
    35 
    35 
    36 obj-m := ec_dummy.o
       
    37 
       
    38 ec_dummy-objs := module.o master.o slave.o domain.o
       
    39 
       
    40 REV := $(shell if test -s $(src)/../svnrevision; then \
    36 REV := $(shell if test -s $(src)/../svnrevision; then \
    41 		cat $(src)/../svnrevision; \
    37 		cat $(src)/../svnrevision; \
    42 	else \
    38 	else \
    43 		svnversion $(src) 2>/dev/null || echo "unknown"; \
    39 		svnversion $(src) 2>/dev/null || echo "unknown"; \
    44 	fi)
    40 	fi)
    45 
    41 
    46 CFLAGS_dummy.o := -DSVNREV=$(REV)
    42 ifeq ($(EC_DUMMY),1)
       
    43     obj-m := ec_dummy.o
       
    44 	ec_dummy-objs := module.o master.o slave.o domain.o
       
    45 	CFLAGS_dummy.o := -DSVNREV=$(REV)
       
    46 endif
    47 
    47 
    48 #------------------------------------------------------------------------------
    48 #------------------------------------------------------------------------------