[RFC kvm-unit-tests PATCH 4/8] Makefiles: use explicit path for including sub-Makefiles
Paolo Bonzini
pbonzini at redhat.com
Thu Apr 27 11:54:44 EDT 2017
On 07/04/2017 14:20, Andrew Jones wrote:
>> -LIBFDT_objdir = lib/libfdt
>> -LIBFDT_srcdir = lib/libfdt
>> +LIBFDT_objdir = $(SRCDIR)/lib/libfdt
>> +LIBFDT_srcdir = $(SRCDIR)/lib/libfdt
>> LIBFDT_archive = $(LIBFDT_objdir)/libfdt.a
>> LIBFDT_include = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_INCLUDES))
>> LIBFDT_version = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_VERSION))
> Can't we just do VPATH += $LIBFDT_srcdir instead?
That would search for every file in the lib/libfdt subdirectory of the
source directory, while here the desired prefix is just $(SRCDIR).
Paolo
More information about the linux-arm-kernel
mailing list