From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: headersinstall of kvm.h does not work Date: Fri, 07 Mar 2008 14:57:53 +0200 Message-ID: <47D13BD1.30801@qumranet.com> References: <200803071326.06682.borntraeger@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, Sam Ravnborg , linux-kernel@vger.kernel.org To: Christian Borntraeger Return-path: In-Reply-To: <200803071326.06682.borntraeger@de.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Christian Borntraeger wrote: > Hello Avi, > > in commit fb56dbb31c4738a3918db81fd24da732ce3b4ae6 you changed > include/linux/Kbuild: > ----snip---- > KVM: Export include/linux/kvm.h only if $ARCH actually supports KVM > Currently, make headers_check barfs due to , which > includes, not existing. Rather than add a zillion s, export > kvm.h only if the arch actually supports it. > [...] > unifdef-y += keyboard.h > -unifdef-y += kvm.h > +unifdef-$(CONFIG_HAVE_KVM) += kvm.h > unifdef-y += llc.h > unifdef-y += loop.h > ----snip------ > > This patch does not work. Kbuild (scripts/Makefile.headersinst) does not > check the config file, so kvm.h is never installed. > > Sam is there an easy way to allow constructs like "unifdef-$(CONFIG_FOO)"? > I think this cleverness has caused too much trouble already, and adding asm-*/kvm.h would have been better. As I'm about to disappear for a week, consider a patch to remove the config dependency and add asm-*/kvm.h pre-acked for mainline. Maybe the presence of those empty asm-*/kvm.h files will encourage further kvm ports to *. -- Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/