diff -r 373cd456dc26 -r cfcaf46c5b3f devices/Kbuild.in --- a/devices/Kbuild.in Mon Oct 19 13:12:40 2009 +0200 +++ b/devices/Kbuild.in Mon Oct 19 13:13:55 2009 +0200 @@ -37,6 +37,13 @@ hg id -i $(src)/.. 2>/dev/null || echo "unknown"; \ fi) +ifeq (@ENABLE_GENERIC@,1) + EC_GENERIC_OBJ := generic.o + obj-m += ec_generic.o + ec_generic-objs := $(EC_GENERIC_OBJ) + CFLAGS_$(EC_GENERIC_OBJ) = -DREV=$(REV) +endif + ifeq (@ENABLE_8139TOO@,1) EC_8139TOO_OBJ := 8139too-@KERNEL_8139TOO@-ethercat.o obj-m += ec_8139too.o