X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2FKbuild.in;h=d82cb00258fcb51788e64dd3b0928b29f5f67223;hb=9b80f761bed9a32c1b0eb22ee3361966057ea973;hp=07d106dd48aeb6a2318cef16c9237892c0733748;hpb=12bb621f563c2644ce20922e641848c35ede98c0;p=sliver-openvswitch.git diff --git a/datapath/linux/Kbuild.in b/datapath/linux/Kbuild.in index 07d106dd4..d82cb0025 100644 --- a/datapath/linux/Kbuild.in +++ b/datapath/linux/Kbuild.in @@ -24,10 +24,10 @@ EXTRA_CFLAGS += -include $(builddir)/kcompat.h # right place, even though it's conceptually incorrect. NOSTDINC_FLAGS += -I$(top_srcdir)/include -I$(srcdir)/compat -I$(srcdir)/compat/include -obj-m := $(patsubst %,%_mod.o,$(build_modules)) +obj-m := $(patsubst %,%.o,$(build_modules)) define module_template -$(1)_mod-y = $$(notdir $$(patsubst %.c,%.o,$($(1)_sources))) +$(1)-y = $$(notdir $$(patsubst %.c,%.o,$($(1)_sources))) endef $(foreach module,$(build_modules),$(eval $(call module_template,$(module))))