[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 1/2] fuzz/x86emul: avoid race in link farm rune
>>> On 17.02.17 at 11:27, <wei.liu2@xxxxxxxxxx> wrote: > --- a/tools/fuzz/x86_instruction_emulator/Makefile > +++ b/tools/fuzz/x86_instruction_emulator/Makefile > @@ -8,19 +8,20 @@ else > x86-instruction-emulator-fuzzer-all: > endif > > -x86_emulate/x86_emulate.c x86_emulate/x86_emulate.h: > - [ -L x86_emulate ] || ln -sf $(XEN_ROOT)/xen/arch/x86/x86_emulate . > +x86_emulate: > + [ -L $@ ] || ln -sf $(XEN_ROOT)/xen/arch/x86/$@ . > > -asm/x86-vendors.h asm/x86-defns.h asm/msr-index.h: > - [ -L asm ] || ln -sf $(XEN_ROOT)/xen/include/asm-x86 asm > +x86_emulate/x86_emulate.c x86_emulate/x86_emulate.h: x86_emulate > + > +asm: > + [ -L $@ ] || ln -sf $(XEN_ROOT)/xen/include/asm-x86 $@ > > x86_emulate.c x86_emulate.h: %: > [ -L $* ] || ln -sf $(XEN_ROOT)/tools/tests/x86_emulator/$* > > CFLAGS += $(CFLAGS_xeninclude) -D__XEN_TOOLS__ -I. > > -x86.h := asm/x86-vendors.h asm/x86-defns.h asm/msr-index.h > -x86_emulate.h := x86_emulate.h x86_emulate/x86_emulate.h $(x86.h) > +x86_emulate.h := x86_emulate.h x86_emulate/x86_emulate.h asm > > x86_emulate.o: x86_emulate.c x86_emulate/x86_emulate.c $(x86_emulate.h) This now breaks the need for re-compilation of x86_emulate.o when any of the headers in $(x86.h) changed. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |