X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=modules%2FMakefile;h=97ef14cd48eb105d2df2b33db79aaa4912b7701c;hb=504a6fd3bf01d7299ec69f80d5117dea3014ea28;hp=303d52a00a657c8e3f2ce17e45a574b92a64bc9a;hpb=4cc3e8965ada59e7f5a9e55e8ccbc9563d997b93;p=palacios.git diff --git a/modules/Makefile b/modules/Makefile index 303d52a..97ef14c 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -1,2 +1,21 @@ -obj-$(CONFIG_LNX_MOD_32BIT) += linux_mods/i386/ -#obj-$(CONFIG_LNX_MOD_64BIT) += linux_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: +