diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-10 19:25:40 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-10 19:59:32 -0400 |
commit | 20f629549b30a1154c8b5e830cb10a0c0faa875f (patch) | |
tree | 39ea48bbdb63a9a3d43f477e28de019d44100da7 /arch/powerpc/Makefile | |
parent | 3c3f42d63a11f2e22dbff6bb4d170f92dbd39316 (diff) |
powerpc: Make building the boot image work for both 32-bit and 64-bit
At the moment we don't have a merged arch/powerpc/boot, so we build the
boot images in arch/ppc/boot and arch/ppc64/boot. Unfortunately the
makefile targets are different in those two directories, so this makes
a change to accommodate both for the moment.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 27649cfc2a5d..8d1e7bd14c55 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -140,6 +140,7 @@ drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ | |||
140 | 140 | ||
141 | defaultimage-$(CONFIG_PPC32) := uImage zImage | 141 | defaultimage-$(CONFIG_PPC32) := uImage zImage |
142 | defaultimage-$(CONFIG_PPC_ISERIES) := vmlinux | 142 | defaultimage-$(CONFIG_PPC_ISERIES) := vmlinux |
143 | defaultimage-$(CONFIG_PPC_PSERIES) := zImage | ||
143 | KBUILD_IMAGE := $(defaultimage-y) | 144 | KBUILD_IMAGE := $(defaultimage-y) |
144 | all: $(KBUILD_IMAGE) | 145 | all: $(KBUILD_IMAGE) |
145 | 146 | ||
@@ -154,8 +155,14 @@ BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm | |||
154 | 155 | ||
155 | boot := arch/$(OLDARCH)/boot | 156 | boot := arch/$(OLDARCH)/boot |
156 | 157 | ||
158 | # urk | ||
159 | ifeq ($(CONFIG_PPC64),y) | ||
160 | $(BOOT_TARGETS): vmlinux | ||
161 | $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) | ||
162 | else | ||
157 | $(BOOT_TARGETS): vmlinux | 163 | $(BOOT_TARGETS): vmlinux |
158 | $(Q)$(MAKE) ARCH=$(OLDARCH) $(build)=$(boot) $@ | 164 | $(Q)$(MAKE) ARCH=ppc $(build)=$(boot) $@ |
165 | endif | ||
159 | 166 | ||
160 | uImage: vmlinux | 167 | uImage: vmlinux |
161 | $(Q)$(MAKE) ARCH=$(OLDARCH) $(build)=$(boot)/images $(boot)/images/$@ | 168 | $(Q)$(MAKE) ARCH=$(OLDARCH) $(build)=$(boot)/images $(boot)/images/$@ |