* Cam Macdonell <[EMAIL PROTECTED]> [2007-12-04 13:08]:
> 
> Hi Avi,
> 
> I'm having a problem with "unifdef" target in the 
> kvm-userspace/kernel/Makefile:
> 
> [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ make -C kernel sync 
> LINUX=~/src/KVM/kvm
> make: Entering directory `/home/cam/src/KVM/kvm-userspace/kernel'
> rsync --exclude='*.mod.c' "/home/cam/src/KVM/kvm"/drivers/kvm/*.[ch] .
> rsync "/home/cam/src/KVM/kvm"/include/linux/kvm.h \
>                 "/home/cam/src/KVM/kvm"/include/linux/kvm_para.h \
>                          include/linux
> rsync "/home/cam/src/KVM/kvm"/include/asm-x86/kvm_para.h include/asm
> rsync "/home/cam/src/KVM/kvm"/include/asm-x86/kvm.h include/asm
> mv  include/linux/kvm.h  include/linux/kvm.h.orig && unifdef 
> -DCONFIG_X86  include/linux/kvm.h.orig >  include/linux/kvm.h; (( $? <= 
> 1 )) && rm  include/linux/kvm.h.orig
> /bin/sh: unifdef: not found
> /bin/sh: cannot open =: No such file
> /bin/sh: 127: not found
> make: *** [sync] Error 127
> make: Leaving directory `/home/cam/src/KVM/kvm-userspace/kernel'

I needed to install the unifdef binary (apt-get install unifdef) and
then apply the attached patch to get make LINUX= sync working again.


-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
[EMAIL PROTECTED]
diff --git a/kernel/Makefile b/kernel/Makefile
index 22326b2..782685e 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -18,7 +18,7 @@ hack =        mv $1 $1.orig && \
            | sed 's/\blapic\b/l_apic/g' > $1 && rm $1.orig
 
 unifdef = mv $1 $1.orig && \
-         unifdef -DCONFIG_X86 $1.orig > $1; (( $$? <= 1 )) && rm $1.orig
+         unifdef -DCONFIG_X86 $1.orig > $1; [ $$? -le 1 ] && rm $1.orig
 
 all::
        $(MAKE) -C $(KERNELDIR) M=`pwd` "$$@"
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to