void-packages/srcpkgs/yaboot/patches/0008-cell-support.patch

45 lines
1.4 KiB
Diff

Description: support cell platform
Origin: other, https://launchpad.net/ubuntu/+source/yaboot
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/ybin/ofpath
+++ b/ybin/ofpath
@@ -906,6 +906,8 @@
SUBARCH=Maple
elif (cat /proc/cpuinfo 2>/dev/null | grep ^machine | grep -q 'CHRP Pegasos') ; then
SUBARCH=Pegasos
+elif (cat /proc/cpuinfo 2>/dev/null | grep ^platform | grep -q 'Cell') ; then
+ SUBARCH=Cell
else
echo 1>&2 "$PRG: This machine is not yet supported"
exit 1
@@ -929,7 +931,7 @@
## use appropriate search for right sub arch.
case "$SUBARCH" in
# Pegasos OF seems to be NewWorld-ish enough to cope with this.
- NewWorld|Pegasos)
+ NewWorld|Pegasos|Cell)
newworld || exit 1
;;
OldWorld)
--- a/ybin/ybin
+++ b/ybin/ybin
@@ -79,6 +79,8 @@
fstype=raw
elif (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'Maple') ; then
fstype=raw
+elif (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'Cell') ; then
+ fstype=raw
else
fstype=hfs
fi
@@ -518,6 +520,8 @@
ADDNOTE=yes
elif (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'Maple') ; then
true
+ elif (cat /proc/cpuinfo 2> /dev/null | grep ^platform | grep -q 'Cell') ; then
+ nonvram=1
else
#echo 1>&2 "$PRG: Warning: Unknown archetecture, $boot may not be bootable on this machine"
[ "$nonvram" = 0 ] && echo 1>&2 "$PRG: Warning: Unknown architecture, nvram will not be updated"