diff --git a/kexec-tools-1.101-ppc-fixup.patch b/kexec-tools-1.101-ppc-fixup.patch new file mode 100644 index 0000000..e1953dc --- /dev/null +++ b/kexec-tools-1.101-ppc-fixup.patch @@ -0,0 +1,10 @@ +--- kexec-tools-1.101/kexec/arch/ppc/kexec-ppc.c.orig 2006-07-05 16:21:50.000000000 -0400 ++++ kexec-tools-1.101/kexec/arch/ppc/kexec-ppc.c 2006-07-05 16:22:01.000000000 -0400 +@@ -33,7 +33,6 @@ int get_memory_ranges(struct memory_rang + memory_range[memory_ranges].type = RANGE_RAM; + memory_ranges++; + #else +-#error Please, fix this for your platform + const char iomem[] = "/proc/iomem"; + char line[MAX_LINE]; + FILE *fp; diff --git a/kexec-tools.spec b/kexec-tools.spec index d9f6342..8ec2566 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -1,6 +1,6 @@ Name: kexec-tools Version: 1.101 -Release: 28%{dist} +Release: 29%{dist} License: GPL Group: Applications/System Summary: The kexec/kdump userspace component. @@ -36,7 +36,15 @@ Patch301: kexec-ppc64-ingnore-args-linux.patch # Patch401: kexec-tools-1.101-s390-fixup.patch -Patch501: kexec-tools-1.101-Makefile.patch +# +# Patches 501 through 600 are meant for ppc kexec-tools enablement +# +Patch501: kexec-tools-1.101-ppc-fixup.patch + +# +# Patches 601 onward are generic patches +# +Patch601: kexec-tools-1.101-Makefile.patch %description kexec-tools provides /sbin/kexec binary that facilitates a new @@ -54,6 +62,7 @@ rm -f ../kexec-tools-1.101.spec %patch301 -p1 %patch401 -p1 %patch501 -p1 +%patch601 -p1 cp $RPM_SOURCE_DIR/kdump.init . cp $RPM_SOURCE_DIR/kdump.sysconfig .