X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=modules%2FMakefile;h=97ef14cd48eb105d2df2b33db79aaa4912b7701c;hb=022f63d320c2837822dc7f6be84f860a01f02d7c;hp=eef66e056dae130c18eda5721327bdb5e819325d;hpb=2fa62a8319b951b761c235bde156e1eeacce996a;p=palacios.git diff --git a/modules/Makefile b/modules/Makefile index eef66e0..97ef14c 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -1,5 +1,21 @@ -obj-y += null.c -obj-$(CONFIG_LNX_MOD_32BIT) += linux_mods/i386/ -#obj-$(CONFIG_LNX_MOD_64BIT) += linux_mods/x86_64/ -obj-$(CONFIG_V3_MOD_32BIT) += v3_mods/i386/ -#obj-$(CONFIG_V3_MOD_64BIT) += v3_mods/x86_64/ +# Any .o files dropped in here will be linked into the kernel. +# This is a primitive way to allow external builds of complex +# code, such as Infiniband or Linux compatability libraries. + +# Get all the .o files except for built-in.o +object_files:=$(subst $(obj)/built-in.o,,$(wildcard $(obj)/*.vo)) +#lib_files:=$(subst $(obj)/lib.a,,$(wildcard $(obj)/*.a)) + +# Strip the object file directory name +obj-y := $(notdir $(object_files)) null.o +#lib-y := $(notdir $(lib_files)) + +# Override the rules to build the modules that are linked in +# to avoid trying to build them. The message should never +# be printed. +#$(object_files) $(lib_files): FORCE +$(object_files): FORCE + @echo >&2 " MOD $@" + +FORCE: +