0.7.0-alt1
[qemu] / qemu-0.7.0-alt-kqemu.patch
1 --- Makefile.orig       2005-04-28 00:52:05 +0400
2 +++ Makefile    2005-05-19 21:29:57 +0400
3 @@ -17,13 +17,6 @@
4         for d in $(TARGET_DIRS); do \
5         $(MAKE) -C $$d $@ || exit 1 ; \
6          done
7 -ifdef CONFIG_KQEMU
8 -ifdef CONFIG_WIN32
9 -       $(MAKE) -C kqemu -f Makefile.winnt
10 -else
11 -       $(MAKE) -C kqemu
12 -endif
13 -endif
14  
15  qemu-img$(EXESUF): qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c
16         $(CC) -DQEMU_TOOL $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $@ $^ -lz $(LIBS)
17 @@ -39,9 +32,6 @@
18         for d in $(TARGET_DIRS); do \
19         $(MAKE) -C $$d $@ || exit 1 ; \
20          done
21 -ifdef CONFIG_KQEMU
22 -       $(MAKE) -C kqemu clean
23 -endif
24  
25  distclean: clean
26         rm -f config-host.mak config-host.h
27 @@ -73,9 +63,6 @@
28         for d in $(TARGET_DIRS); do \
29         $(MAKE) -C $$d $@ || exit 1 ; \
30          done
31 -ifdef CONFIG_KQEMU
32 -       cd kqemu ; ./install.sh
33 -endif
34  
35  # various test targets
36  test speed test2: all
37 --- configure.orig      2005-04-28 00:52:05 +0400
38 +++ configure   2005-05-19 21:48:11 +0400
39 @@ -364,41 +364,12 @@
40          kqemu="no"
41      fi
42  fi
43 -  
44 -# Linux specific kqemu configuration
45 -if test $kqemu = "yes" -a $linux = "yes" ; then
46 -# find the kernel path
47 -if test -z "$kernel_path" ; then
48 -kernel_version=`uname -r`
49 -kernel_path="/lib/modules/$kernel_version/build"
50 -if test '!' -d "$kernel_path/include" ; then 
51 -    kernel_path="/usr/src/linux"
52 -    if test '!' -d "$kernel_path/include" ; then 
53 -        echo "Could not find kernel includes in /lib/modules or /usr/src/linux - cannot build the kqemu module"
54 -        kqemu="no"
55 -    fi
56 -fi
57 -fi
58  
59  if test $kqemu = "yes" ; then
60 -
61 -# test that the kernel config is present
62 -if test '!' -f "$kernel_path/Makefile" ; then
63 -    echo "No Makefile file present in $kernel_path - kqemu cannot be built"
64 -    kqemu="no"
65 -fi    
66 -
67 -# find build system (2.6 or legacy)
68 -kbuild26="yes"
69 -if grep -q "PATCHLEVEL = 4" $kernel_path/Makefile ; then
70 -kbuild26="no"
71 -fi
72 -
73 +    # find build system (2.6 or legacy)
74 +    kbuild26="yes"
75  fi # kqemu
76  
77 -fi # kqemu and linux
78 -
79 -
80  echo "Install prefix    $prefix"
81  echo "BIOS directory    $datadir"
82  echo "binary directory  $bindir"