diff options
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 4b2be611f77f..98392fb5f581 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -40,7 +40,8 @@ zliblinuxheader := zlib.h zconf.h zutil.h | |||
40 | $(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) \ | 40 | $(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) \ |
41 | $(addprefix $(obj)/,$(zlibheader)) | 41 | $(addprefix $(obj)/,$(zlibheader)) |
42 | 42 | ||
43 | src-wlib := string.S stdio.c main.c div64.S $(zlib) | 43 | src-wlib := string.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ |
44 | ns16550.c serial.c simple_alloc.c div64.S util.S $(zlib) | ||
44 | src-plat := of.c | 45 | src-plat := of.c |
45 | src-boot := crt0.S $(src-wlib) $(src-plat) empty.c | 46 | src-boot := crt0.S $(src-wlib) $(src-plat) empty.c |
46 | 47 | ||
@@ -74,7 +75,7 @@ $(obj)/zImage.lds $(obj)/zImage.coff.lds: $(obj)/%: $(srctree)/$(src)/%.S | |||
74 | @cp $< $@ | 75 | @cp $< $@ |
75 | 76 | ||
76 | clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \ | 77 | clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \ |
77 | $(obj)/empty.c | 78 | empty.c zImage zImage.coff.lds zImage.lds zImage.sandpoint |
78 | 79 | ||
79 | quiet_cmd_bootcc = BOOTCC $@ | 80 | quiet_cmd_bootcc = BOOTCC $@ |
80 | cmd_bootcc = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $< | 81 | cmd_bootcc = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $< |
@@ -93,13 +94,13 @@ $(patsubst %.S,%.o, $(filter %.S, $(src-boot))): %.o: %.S | |||
93 | $(obj)/wrapper.a: $(obj-wlib) | 94 | $(obj)/wrapper.a: $(obj-wlib) |
94 | $(call cmd,bootar) | 95 | $(call cmd,bootar) |
95 | 96 | ||
96 | hostprogs-y := addnote addRamDisk hack-coff | 97 | hostprogs-y := addnote addRamDisk hack-coff mktree |
97 | 98 | ||
98 | extra-y := $(obj)/crt0.o $(obj)/wrapper.a $(obj-plat) $(obj)/empty.o \ | 99 | extra-y := $(obj)/crt0.o $(obj)/wrapper.a $(obj-plat) $(obj)/empty.o \ |
99 | $(obj)/zImage.lds $(obj)/zImage.coff.lds | 100 | $(obj)/zImage.lds $(obj)/zImage.coff.lds |
100 | 101 | ||
101 | wrapper :=$(srctree)/$(src)/wrapper | 102 | wrapper :=$(srctree)/$(src)/wrapper |
102 | wrapperbits := $(extra-y) $(addprefix $(obj)/,addnote hack-coff) | 103 | wrapperbits := $(extra-y) $(addprefix $(obj)/,addnote hack-coff mktree) |
103 | 104 | ||
104 | ############# | 105 | ############# |
105 | # Bits for building various flavours of zImage | 106 | # Bits for building various flavours of zImage |
@@ -148,13 +149,21 @@ $(obj)/zImage.miboot: vmlinux $(wrapperbits) | |||
148 | $(obj)/zImage.initrd.miboot: vmlinux $(wrapperbits) | 149 | $(obj)/zImage.initrd.miboot: vmlinux $(wrapperbits) |
149 | $(call cmd,wrap_initrd,miboot) | 150 | $(call cmd,wrap_initrd,miboot) |
150 | 151 | ||
152 | $(obj)/zImage.ps3: vmlinux | ||
153 | $(STRIP) -s -R .comment $< -o $@ | ||
154 | |||
155 | $(obj)/zImage.initrd.ps3: vmlinux | ||
156 | @echo " WARNING zImage.initrd.ps3 not supported (yet)" | ||
157 | |||
151 | $(obj)/uImage: vmlinux $(wrapperbits) | 158 | $(obj)/uImage: vmlinux $(wrapperbits) |
152 | $(call cmd,wrap,uboot) | 159 | $(call cmd,wrap,uboot) |
153 | 160 | ||
154 | image-$(CONFIG_PPC_PSERIES) += zImage.pseries | 161 | image-$(CONFIG_PPC_PSERIES) += zImage.pseries |
155 | image-$(CONFIG_PPC_MAPLE) += zImage.pseries | 162 | image-$(CONFIG_PPC_MAPLE) += zImage.pseries |
156 | image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries | 163 | image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries |
164 | image-$(CONFIG_PPC_PS3) += zImage.ps3 | ||
157 | image-$(CONFIG_PPC_CHRP) += zImage.chrp | 165 | image-$(CONFIG_PPC_CHRP) += zImage.chrp |
166 | image-$(CONFIG_PPC_EFIKA) += zImage.chrp | ||
158 | image-$(CONFIG_PPC_PMAC) += zImage.pmac | 167 | image-$(CONFIG_PPC_PMAC) += zImage.pmac |
159 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage | 168 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage |
160 | 169 | ||
@@ -176,3 +185,4 @@ install: $(CONFIGURE) $(image-y) | |||
176 | 185 | ||
177 | clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.strip.gz) | 186 | clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.strip.gz) |
178 | clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.bin.gz) | 187 | clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.bin.gz) |
188 | clean-files += $(image-) | ||