[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 9 of 9 RFC v2] blktap3/libblktapctl: Introduce makefile that builds tapback-required libblktapctl functionality


  • To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
  • From: Thanos Makatos <thanos.makatos@xxxxxxxxxx>
  • Date: Mon, 21 Jan 2013 18:16:18 +0000
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 21 Jan 2013 18:16:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac31hBt81kBpJDaeSwCJkz4kRGDXcgCfhN2A
  • Thread-topic: [Xen-devel] [PATCH 9 of 9 RFC v2] blktap3/libblktapctl: Introduce makefile that builds tapback-required libblktapctl functionality

> On Tue, 2012-12-04 at 18:19 +0000, Thanos Makatos wrote:
> > diff --git a/config/StdGNU.mk b/config/StdGNU.mk
> > --- a/config/StdGNU.mk
> > +++ b/config/StdGNU.mk
> > @@ -77,3 +77,6 @@ ifeq ($(lto),y)
> >  CFLAGS += -flto
> >  LDFLAGS-$(clang) += -plugin LLVMgold.so  endif
> > +
> > +TAPDISK_EXEC = "tapdisk"
> > +TAPDISK_EXECDIR = $(LIBEXEC)
> 
> Do these need to be configurable?
> 
> I'd be tempted to suggest that you just do
>         #define TAPDISK_EXEC "tapdisk"
>         #define TAPDISK_EXECDIR LIBEXEC
> in one of you headers.
> 
> Ian.

They were originally specified in the Makefile and you suggested they were put 
elsewhere:

> > diff --git a/tools/blktap2/control/Makefile
> > b/tools/blktap3/control/Makefile copy from
> > tools/blktap2/control/Makefile copy to tools/blktap3/control/Makefile
> > --- a/tools/blktap2/control/Makefile
> > +++ b/tools/blktap3/control/Makefile
> > @@ -6,40 +6,36 @@ MINOR              = 0
> >  LIBNAME            = libblktapctl
> >  LIBSONAME          = $(LIBNAME).so.$(MAJOR)
> >
> > -IBIN               = tap-ctl
> > +override CFLAGS += \
> > +   -I../include \
> > +   -DTAPDISK_EXEC='"tapdisk"' \
> > +   -DTAPDISK_EXECDIR='"/usr/local/libexec"' \
> 
> This should come from tools/configure and config/Tools.mk etc rather
> than being hard coded here.
> 
> By default it should likely be under /usr/lib/xen (aka LIBEXEC_DIR).
> Check out buildmakevars2file in tools/Rules.mk and the use of it in
> tools/libxl/Makefile -- you probably want to do something similar.

Is the above still valid? I don't see any reason why they should be 
configurable, so I'd agree they should be placed in a header file.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.