aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r--arch/powerpc/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index b7d4c4ce2fe6..9155c9312c1e 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -18,22 +18,16 @@ HAS_BIARCH := $(call cc-option-yn, -m32)
18CROSS32_COMPILE ?= 18CROSS32_COMPILE ?=
19 19
20CROSS32CC := $(CROSS32_COMPILE)gcc 20CROSS32CC := $(CROSS32_COMPILE)gcc
21CROSS32AS := $(CROSS32_COMPILE)as
22CROSS32LD := $(CROSS32_COMPILE)ld
23CROSS32AR := $(CROSS32_COMPILE)ar 21CROSS32AR := $(CROSS32_COMPILE)ar
24CROSS32OBJCOPY := $(CROSS32_COMPILE)objcopy
25 22
26ifeq ($(HAS_BIARCH),y) 23ifeq ($(HAS_BIARCH),y)
27ifeq ($(CROSS32_COMPILE),) 24ifeq ($(CROSS32_COMPILE),)
28CROSS32CC := $(CC) -m32 25CROSS32CC := $(CC) -m32
29CROSS32AS := $(AS) -a32
30CROSS32LD := $(LD) -m elf32ppc
31CROSS32OBJCOPY := $(OBJCOPY)
32CROSS32AR := GNUTARGET=elf32-powerpc $(AR) 26CROSS32AR := GNUTARGET=elf32-powerpc $(AR)
33endif 27endif
34endif 28endif
35 29
36export CROSS32CC CROSS32AS CROSS32LD CROSS32AR CROSS32OBJCOPY 30export CROSS32CC CROSS32AR
37 31
38ifeq ($(CROSS_COMPILE),) 32ifeq ($(CROSS_COMPILE),)
39KBUILD_DEFCONFIG := $(shell uname -m)_defconfig 33KBUILD_DEFCONFIG := $(shell uname -m)_defconfig
@@ -169,12 +163,25 @@ bootwrapper_install %.dtb:
169 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) 163 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
170 164
171define archhelp 165define archhelp
172 @echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)' 166 @echo '* zImage - Build default images selected by kernel config'
167 @echo ' zImage.* - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)'
168 @echo ' uImage - U-Boot native image format'
169 @echo ' cuImage.<dt> - Backwards compatible U-Boot image for older'
170 @echo ' versions which do not support device trees'
171 @echo ' dtbImage.<dt> - zImage with an embedded device tree blob'
172 @echo ' simpleImage.<dt> - Firmware independent image.'
173 @echo ' treeImage.<dt> - Support for older IBM 4xx firmware (not U-Boot)'
173 @echo ' install - Install kernel using' 174 @echo ' install - Install kernel using'
174 @echo ' (your) ~/bin/installkernel or' 175 @echo ' (your) ~/bin/installkernel or'
175 @echo ' (distribution) /sbin/installkernel or' 176 @echo ' (distribution) /sbin/installkernel or'
176 @echo ' install to $$(INSTALL_PATH) and run lilo' 177 @echo ' install to $$(INSTALL_PATH) and run lilo'
177 @echo ' *_defconfig - Select default config from arch/$(ARCH)/configs' 178 @echo ' *_defconfig - Select default config from arch/$(ARCH)/configs'
179 @echo ''
180 @echo ' Targets with <dt> embed a device tree blob inside the image'
181 @echo ' These targets support board with firmware that does not'
182 @echo ' support passing a device tree directly. Replace <dt> with the'
183 @echo ' name of a dts file from the arch/$(ARCH)/boot/dts/ directory'
184 @echo ' (minus the .dts extension).'
178endef 185endef
179 186
180install: 187install: