[OpenBIOS] [PATCH v2] arch/ppc/qemu: Rename root node for Macs to match Apple

BALATON Zoltan balaton at eik.bme.hu
Sun Jun 22 11:36:57 CEST 2014


Apple calls the root node of the device tree "device-tree" and MorphOS
relies on this to decide what properties to get. Make it happy.

Signed-off-by: BALATON Zoltan <balaton at eik.bme.hu>
---

v2: Do this from Forth for all qemu-ppc as requested in review
---
 openbios-devel/arch/ppc/qemu/tree.fs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/openbios-devel/arch/ppc/qemu/tree.fs b/openbios-devel/arch/ppc/qemu/tree.fs
index 1b9c293..1ed8383 100644
--- a/openbios-devel/arch/ppc/qemu/tree.fs
+++ b/openbios-devel/arch/ppc/qemu/tree.fs
@@ -12,7 +12,8 @@ include config.fs
 \ -------------------------------------------------------------
 
 " /" find-device
-
+\ Apple calls the root node device-tree
+" device-tree" device-name
 [IFDEF] CONFIG_PPC64 2 [ELSE] 1 [THEN] encode-int " #address-cells" property
 1 encode-int " #size-cells" property
 h# 05f5e100 encode-int " clock-frequency" property
-- 
1.8.1.5




More information about the OpenBIOS mailing list