diff options
author | Paul Mackerras <paulus@samba.org> | 2006-09-27 08:47:03 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-09-28 00:30:02 -0400 |
commit | 2bf118197cb4d9a5e7a9e45b5b007235fdc9f402 (patch) | |
tree | d9d7ceadb4eb1b277e914fcca74c901773f17832 /arch/powerpc/Makefile | |
parent | 4e6d816e51728d5006c53e78e079ac62b902f8aa (diff) |
[POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot
This puts the knowledge of how to create various sorts of zImage
wrappers into a script called "wrapper" that could be used outside of
the kernel tree. This changes arch/powerpc/boot so it first builds
the files that the wrapper script needs, then runs it to create
whatever flavours of zImage are required.
This version does uImages as well. The zImage names are changed
slightly; zImage.pseries is the one with the PT_NOTE program header
entry added, and zImage.pmac is the one without. If the
zImage.pseries gets made, it will also get hardlinked to zImage;
otherwise, if zImage.pmac is made, it gets hardlinked to zImage.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 01667d1d571d..a00fe7236555 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -20,6 +20,7 @@ CROSS32_COMPILE ?= | |||
20 | CROSS32CC := $(CROSS32_COMPILE)gcc | 20 | CROSS32CC := $(CROSS32_COMPILE)gcc |
21 | CROSS32AS := $(CROSS32_COMPILE)as | 21 | CROSS32AS := $(CROSS32_COMPILE)as |
22 | CROSS32LD := $(CROSS32_COMPILE)ld | 22 | CROSS32LD := $(CROSS32_COMPILE)ld |
23 | CROSS32AR := $(CROSS32_COMPILE)ar | ||
23 | CROSS32OBJCOPY := $(CROSS32_COMPILE)objcopy | 24 | CROSS32OBJCOPY := $(CROSS32_COMPILE)objcopy |
24 | 25 | ||
25 | ifeq ($(HAS_BIARCH),y) | 26 | ifeq ($(HAS_BIARCH),y) |
@@ -28,10 +29,11 @@ CROSS32CC := $(CC) -m32 | |||
28 | CROSS32AS := $(AS) -a32 | 29 | CROSS32AS := $(AS) -a32 |
29 | CROSS32LD := $(LD) -m elf32ppc | 30 | CROSS32LD := $(LD) -m elf32ppc |
30 | CROSS32OBJCOPY := $(OBJCOPY) | 31 | CROSS32OBJCOPY := $(OBJCOPY) |
32 | CROSS32AR := $(AR) | ||
31 | endif | 33 | endif |
32 | endif | 34 | endif |
33 | 35 | ||
34 | export CROSS32CC CROSS32AS CROSS32LD CROSS32OBJCOPY | 36 | export CROSS32CC CROSS32AS CROSS32LD CROSS32AR CROSS32OBJCOPY |
35 | 37 | ||
36 | KBUILD_DEFCONFIG := $(shell uname -m)_defconfig | 38 | KBUILD_DEFCONFIG := $(shell uname -m)_defconfig |
37 | 39 | ||
@@ -146,7 +148,7 @@ all: $(KBUILD_IMAGE) | |||
146 | 148 | ||
147 | CPPFLAGS_vmlinux.lds := -Upowerpc | 149 | CPPFLAGS_vmlinux.lds := -Upowerpc |
148 | 150 | ||
149 | BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm uImage vmlinux.bin | 151 | BOOT_TARGETS = zImage zImage.initrd uImage |
150 | 152 | ||
151 | PHONY += $(BOOT_TARGETS) | 153 | PHONY += $(BOOT_TARGETS) |
152 | 154 | ||