fixed to build xen rpm properly
authorMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 31 Oct 2006 15:54:51 +0000 (15:54 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 31 Oct 2006 15:54:51 +0000 (15:54 +0000)
scripts/kernel-2.6-planetlab.spec

index c593552..a9fe783 100644 (file)
@@ -6,7 +6,7 @@ Summary: The Linux kernel (the core of the Linux operating system)
 %define buildup 1
 %define buildsmp 1
 %define builduml 1
-%define buildxen 0
+%define buildxen 1
 %define builddoc 1
 
 # Versions of various parts
@@ -394,7 +394,7 @@ BuildKernel() {
       cp -a asm-i386 $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
     fi
 %if %{buildxen}
-    if [ "$Flavour" = "xen" ]; then
+    if [ "$Flavour" = "xenU" ]; then
       cp -a asm-xen $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
     fi
 %endif
@@ -426,6 +426,11 @@ BuildKernel() {
     mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
     cp vmlinux $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
 %endif
+%if %{buildxen}
+    if [ -f vmlinuz ]; then
+      cp vmlinuz $RPM_BUILD_ROOT/%{image_install_path}/vmlinuz-$KernelVer
+    fi
+%endif
 
     find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
 
@@ -463,7 +468,7 @@ BuildKernel linux um uml
 %endif
 
 %if %{buildxen}
-BuildKernel %make_target xen xenU
+BuildKernel vmlinuz %kernel_arch xenU
 %endif
 
 ###