Adjust VPATH to work for check-hyperv (and simplify the modpost wrapper)
This commit is contained in:
parent
eb215f16de
commit
7d90293de3
|
@ -1,7 +1,7 @@
|
|||
# Normalise OUTDIR to avoid triggering rebuilds
|
||||
override OUTDIR := $(patsubst ./%,%,$(OUTDIR))
|
||||
|
||||
VPATH = $(top_srcdir)/$(OUTDIR)
|
||||
VPATH = $(top_rulesdir)/$(OUTDIR) $(top_srcdir)/$(OUTDIR)
|
||||
|
||||
SHELL = /bin/sh -e
|
||||
|
||||
|
|
|
@ -18,5 +18,5 @@ modpost.real-%:
|
|||
modpost-opts.h: $(top_srcdir)/scripts/mod/modpost.c
|
||||
python $(wrapperdir)/gendef.py $< > $@
|
||||
|
||||
modpost.o: $(wrapperdir)/modpost.c modpost-opts.h
|
||||
modpost.o: modpost.c modpost-opts.h
|
||||
$(CC) $(CFLAGS) -I $(CURDIR) -c -o $@ $<
|
||||
|
|
Loading…
Reference in New Issue