diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2009-04-21 05:44:57 -0400 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2009-04-21 05:44:57 -0400 |
commit | 66ab3a74c5ce737effc2c64391e036b0938b1c36 (patch) | |
tree | abe71b0c811dd13c9b9ad2587ba8779a8f852220 /arch/cris/boot/Makefile | |
parent | a939b96cccdb65df80a52447ec8e4a6d79c56dbb (diff) |
CRIS: Merge machine dependent boot/compressed and boot/rescue
Merge the machine dependent boot directories for v10 and v32.
This avoids some code duplication and eases the way for further
merging later on.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/boot/Makefile')
-rw-r--r-- | arch/cris/boot/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/cris/boot/Makefile b/arch/cris/boot/Makefile new file mode 100644 index 000000000000..144f3afa0119 --- /dev/null +++ b/arch/cris/boot/Makefile | |||
@@ -0,0 +1,24 @@ | |||
1 | # | ||
2 | # arch/cris/boot/Makefile | ||
3 | # | ||
4 | |||
5 | objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment | ||
6 | objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss | ||
7 | |||
8 | OBJCOPYFLAGS = -O binary $(objcopyflags-y) | ||
9 | |||
10 | |||
11 | subdir- := compressed rescue | ||
12 | targets := Image | ||
13 | |||
14 | $(obj)/Image: vmlinux FORCE | ||
15 | $(call if_changed,objcopy) | ||
16 | @echo ' Kernel: $@ is ready' | ||
17 | |||
18 | $(obj)/compressed/vmlinux: $(obj)/Image FORCE | ||
19 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ | ||
20 | $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin | ||
21 | |||
22 | $(obj)/zImage: $(obj)/compressed/vmlinux | ||
23 | @cp $< $@ | ||
24 | @echo ' Kernel: $@ is ready' | ||