1
0
forked from pool/kernel-source
OBS User unknown
2009-01-10 13:03:47 +00:00
committed by Git OBS Bridge
parent 496d5722b6
commit 79c8e6153d
48 changed files with 20925 additions and 543 deletions

24
post.sh
View File

@@ -3,26 +3,24 @@
# On powerpc, the different kernels are for different board/firmware types
# They are not compatible.
wrong_boardtype() {
echo "This kernel-@FLAVOR@ is for $1, it will not boot on this system."
echo "This kernel-@FLAVOR@.@RPM_TARGET_CPU@.rpm is for $1, it will not boot on this system."
echo "The /boot/vmlinux symlink will not be created or updated."
exit 0
}
if [ -f /proc/cpuinfo ]; then
case "@FLAVOR@" in
ppc64|kdump)
if [ -d /proc/device-tree ]; then
case "@FLAVOR@-@RPM_TARGET_CPU@" in
vanilla-ppc64|default-ppc64|ps3-ppc64|ppc64-ppc64|kdump-ppc64|ps3-ppc|ppc64-ppc|kdump-ppc)
if [ -d /proc/iSeries -o ! -d /proc/ppc64 ]; then
wrong_boardtype "OpenFirmware based 64bit machines"
wrong_boardtype "OpenFirmware based 64bit machines"
fi
fi
;;
default)
if [ -d /proc/ppc64 -o -d /proc/iSeries ]; then
wrong_boardtype "32bit systems"
fi
;;
;;
vanilla-ppc|default-ppc)
if [ -d /proc/ppc64 -o -d /proc/iSeries ]; then
wrong_boardtype "32bit systems"
fi
;;
*)
;;
;;
esac
fi