Skip to content

Commit

Permalink
CRIS: Merge machine dependent boot/compressed and boot/rescue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Nilsson committed Apr 21, 2009
1 parent a939b96 commit 66ab3a7
Show file tree
Hide file tree
Showing 23 changed files with 186 additions and 429 deletions.
14 changes: 7 additions & 7 deletions arch/cris/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ SRC_ARCH = $(srctree)/arch/cris
# cris object files path
OBJ_ARCH = $(objtree)/arch/cris

boot := arch/cris/$(SARCH)/boot
boot := arch/cris/boot
MACHINE := arch/cris/$(SARCH)

all: zImage
Expand All @@ -81,15 +81,15 @@ zImage Image: vmlinux
archprepare:

archclean:
$(Q)if [ -e arch/cris/$(SARCH)/boot ]; then \
$(MAKE) $(clean)=arch/cris/$(SARCH)/boot; \
$(Q)if [ -e arch/cris/boot ]; then \
$(MAKE) $(clean)=arch/cris/boot; \
fi

CLEAN_FILES += \
$(MACHINE)/boot/zImage \
$(MACHINE)/boot/compressed/decompress.bin \
$(MACHINE)/boot/compressed/piggy.gz \
$(MACHINE)/boot/rescue/rescue.bin
$(boot)/zImage \
$(boot)/compressed/decompress.bin \
$(boot)/compressed/piggy.gz \
$(boot)/rescue/rescue.bin


# MRPROPER_FILES +=
Expand Down
25 changes: 0 additions & 25 deletions arch/cris/arch-v10/boot/compressed/README

This file was deleted.

246 changes: 0 additions & 246 deletions arch/cris/arch-v10/boot/compressed/misc.c

This file was deleted.

20 changes: 0 additions & 20 deletions arch/cris/arch-v32/boot/Makefile

This file was deleted.

26 changes: 0 additions & 26 deletions arch/cris/arch-v32/boot/compressed/Makefile

This file was deleted.

26 changes: 0 additions & 26 deletions arch/cris/arch-v32/boot/rescue/Makefile

This file was deleted.

File renamed without changes.
8 changes: 6 additions & 2 deletions arch/cris/arch-v10/boot/Makefile → arch/cris/boot/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#
# arch/cris/arch-v10/boot/Makefile
# arch/cris/boot/Makefile
#

OBJCOPYFLAGS = -O binary --remove-section=.bss
objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss

OBJCOPYFLAGS = -O binary $(objcopyflags-y)


subdir- := compressed rescue
targets := Image
Expand Down
Loading

0 comments on commit 66ab3a7

Please sign in to comment.