diff options
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 23 |
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) | |||
18 | CROSS32_COMPILE ?= | 18 | CROSS32_COMPILE ?= |
19 | 19 | ||
20 | CROSS32CC := $(CROSS32_COMPILE)gcc | 20 | CROSS32CC := $(CROSS32_COMPILE)gcc |
21 | CROSS32AS := $(CROSS32_COMPILE)as | ||
22 | CROSS32LD := $(CROSS32_COMPILE)ld | ||
23 | CROSS32AR := $(CROSS32_COMPILE)ar | 21 | CROSS32AR := $(CROSS32_COMPILE)ar |
24 | CROSS32OBJCOPY := $(CROSS32_COMPILE)objcopy | ||
25 | 22 | ||
26 | ifeq ($(HAS_BIARCH),y) | 23 | ifeq ($(HAS_BIARCH),y) |
27 | ifeq ($(CROSS32_COMPILE),) | 24 | ifeq ($(CROSS32_COMPILE),) |
28 | CROSS32CC := $(CC) -m32 | 25 | CROSS32CC := $(CC) -m32 |
29 | CROSS32AS := $(AS) -a32 | ||
30 | CROSS32LD := $(LD) -m elf32ppc | ||
31 | CROSS32OBJCOPY := $(OBJCOPY) | ||
32 | CROSS32AR := GNUTARGET=elf32-powerpc $(AR) | 26 | CROSS32AR := GNUTARGET=elf32-powerpc $(AR) |
33 | endif | 27 | endif |
34 | endif | 28 | endif |
35 | 29 | ||
36 | export CROSS32CC CROSS32AS CROSS32LD CROSS32AR CROSS32OBJCOPY | 30 | export CROSS32CC CROSS32AR |
37 | 31 | ||
38 | ifeq ($(CROSS_COMPILE),) | 32 | ifeq ($(CROSS_COMPILE),) |
39 | KBUILD_DEFCONFIG := $(shell uname -m)_defconfig | 33 | KBUILD_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 | ||
171 | define archhelp | 165 | define 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).' | ||
178 | endef | 185 | endef |
179 | 186 | ||
180 | install: | 187 | install: |