[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] tests/vpci: install test
On Mon, Mar 13, 2023 at 01:12:26PM +0100, Roger Pau Monne wrote: > diff --git a/tools/tests/vpci/Makefile b/tools/tests/vpci/Makefile > index 5075bc2be2..11f1ee7126 100644 > --- a/tools/tests/vpci/Makefile > +++ b/tools/tests/vpci/Makefile > @@ -1,27 +1,37 @@ > XEN_ROOT=$(CURDIR)/../../.. > include $(XEN_ROOT)/tools/Rules.mk > > -TARGET := test_vpci > +TARGET := test-vpci > > .PHONY: all > all: $(TARGET) > > .PHONY: run > run: $(TARGET) > +ifeq ($(CC),$(HOSTCC)) > ./$(TARGET) > +else > + $(warning HOSTCC != CC, cannot run test) > +endif > > $(TARGET): vpci.c vpci.h list.h main.c emul.h > - $(HOSTCC) -g -o $@ vpci.c main.c > + $(CC) $(CFLAGS) -o $@ vpci.c main.c This now needs $(CFLAGS_xeninclude) to build, so "CFLAGS += $(CFLAGS_xeninclude)" somewhere in the file. Also, there's another change needed as we've got this error: vpci.c:344:29: error: ‘dom_xen’ undeclared (first use in this function) 344 | pdev = pci_get_pdev(dom_xen, sbdf); Otherwise, patch looks fine to me. Thanks, -- Anthony PERARD
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |