From: Ian Campbell Subject: Re: [PATCH 32/46] Add configure --with-linux-backend-modules="mod1 mod2" Date: Tue, 23 Sep 2014 11:28:58 +0100 Message-ID: <1411468138.14989.64.camel@kazak.uk.xensource.com> References: <1411390835-7348-1-git-send-email-olaf@aepfle.de> <1411390835-7348-33-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411390835-7348-33-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Keir Fraser , David Scott , Stefano Stabellini , George Dunlap , Tim Deegan , Ian Jackson , xen-devel@lists.xen.org, Jan Beulich , Samuel Thibault List-Id: xen-devel@lists.xenproject.org On Mon, 2014-09-22 at 15:00 +0200, Olaf Hering wrote: > This replaces config/Linux.modules with a configure option. As a result > of this change only a single xencomons.in is required, instead of a > xencomons.in.in and sed hackery. I think the change wrt which blktap modules are loaded deserves mentioning here, since it is a functional change. It's almost worth making that trivial sounding change separately, in case there are knockon effects. Yay to the lack of sed hackery though! > +LINUX_BACKEND_MODULES=" > +xen-evtchn > +xen-gntdev > +xen-gntalloc > +xen-blkback > +xen-netback > +xen-pciback > +evtchn > +gntdev > +netbk > +blkbk > +xen-scsibk > +usbbk > +pciback > +xen-acpi-processor > +blktap2 > +blktap > +" > +;; > +*) > +LINUX_BACKEND_MODULES= > +;; > +esac]) > +LINUX_BACKEND_MODULES="`eval echo $LINUX_BACKEND_MODULES`" Why does this need to be laundered via eval? There's no sensible way a user could want to pass in \$thing and expect it to expand to something useful, is there? > diff --git a/tools/hotplug/Linux/systemd/Makefile b/tools/hotplug/Linux/systemd/Makefile > index dc98b67..ac20c76 100644 > --- a/tools/hotplug/Linux/systemd/Makefile > +++ b/tools/hotplug/Linux/systemd/Makefile > [...] > +$(XEN_SYSTEMD_MODULES): > + for mod in $(LINUX_BACKEND_MODULES) ; do \ > + echo $$mod ; \ > + done > $@.tmp ; \ > + $(call move-if-changed,$@.tmp,$@) No need for "; \" before the call, I think. Ian.