X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=modules%2FMakefile;h=97ef14cd48eb105d2df2b33db79aaa4912b7701c;hb=e3f45cda75462948e8d2ad89a6167fbecc8d13f5;hp=bf3f9f6aed880323394c047fd48848ba7388e325;hpb=b37bfbde9f008544f155d4bdf0d3f56f340c39cc;p=palacios.git diff --git a/modules/Makefile b/modules/Makefile index bf3f9f6..97ef14c 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -1 +1,21 @@ -obj-y += null.c +# 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: +