Skip to contentSkip to conversation

bootwrapper: Add in OF operations (and rename to of.c)

PATCH In review Mark A. Greer 1 participant 2 messages Jul 19, 2006 – Sep 8, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 2/6 bootwrapper: Add in OF operations (and rename to of.c)

This patch adds the operations necessary for the bootwrapper to run on an OF platform. This code used to be in prom.[ch] but was moved to of.c because its a more accurate name (IMHO).

--

 arch/powerpc/boot/prom.c     |  165 -----------------------
 arch/powerpc/boot/prom.h     |   41 -----
 b/arch/powerpc/boot/Makefile |    5 
 b/arch/powerpc/boot/of.c     |  301 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 305 insertions(+), 207 deletions(-)

--

arch/powerpc/boot/Makefile +4 -1
index afc776f..c2bb541 100644
@@ -36,7 +36,10 @@ zliblinuxheader := zlib.h zconf.h zutil.
 $(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) $(addprefix $(obj)/,$(zlibheader))
 #$(addprefix $(obj)/,main.o): $(addprefix $(obj)/,zlib.h)
 
-src-boot := crt0.S string.S prom.c stdio.c main.c div64.S
+src-boot := crt0.S string.S stdio.c main.c div64.S
+ifeq ($(CONFIG_PPC_MULTIPLATFORM),y)
+src-boot += of.c
+endif
 src-boot += $(zlib)
 src-boot := $(addprefix $(obj)/, $(src-boot))
 obj-boot := $(addsuffix .o, $(basename $(src-boot)))
arch/powerpc/boot/of.c new file +301 -0

301 lines not on this page · raw message

arch/powerpc/boot/prom.c deleted +0 -165

165 lines not on this page · raw message

arch/powerpc/boot/prom.h deleted +0 -41

41 lines not on this page · raw message

#1 lore raw

This patch adds the operations necessary for the bootwrapper to run on an OF platform. This code used to be in prom.[ch] but was moved to of.c because its a more accurate name (IMHO).

--

 arch/powerpc/boot/prom.c     |  165 ------------------------
 arch/powerpc/boot/prom.h     |   41 ------
 b/arch/powerpc/boot/Makefile |    5 
 b/arch/powerpc/boot/of.c     |  286 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 290 insertions(+), 207 deletions(-)

--

arch/powerpc/boot/Makefile +4 -1
index afc776f..c2bb541 100644
@@ -36,7 +36,10 @@ zliblinuxheader := zlib.h zconf.h zutil.
 $(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) $(addprefix $(obj)/,$(zlibheader))
 #$(addprefix $(obj)/,main.o): $(addprefix $(obj)/,zlib.h)
 
-src-boot := crt0.S string.S prom.c stdio.c main.c div64.S
+src-boot := crt0.S string.S stdio.c main.c div64.S
+ifeq ($(CONFIG_PPC_MULTIPLATFORM),y)
+src-boot += of.c
+endif
 src-boot += $(zlib)
 src-boot := $(addprefix $(obj)/, $(src-boot))
 obj-boot := $(addsuffix .o, $(basename $(src-boot)))
arch/powerpc/boot/of.c new file +286 -0

286 lines not on this page · raw message

arch/powerpc/boot/prom.c deleted +0 -165

165 lines not on this page · raw message

arch/powerpc/boot/prom.h deleted +0 -41

41 lines not on this page · raw message