Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84937
b: refs/heads/master
c: dbf9f14
h: refs/heads/master
i:
  84935: 91f533b
v: v3
  • Loading branch information
Jesper Nilsson committed Feb 8, 2008
1 parent 46b9a6c commit 99597bd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28bf739b127c0f0e893baf4efd97d218247d5d71
refs/heads/master: dbf9f14476dc88887b6e8f29eea97162ce4d8cbd
41 changes: 16 additions & 25 deletions trunk/arch/cris/arch-v32/boot/rescue/Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,27 @@
#
# Makefile for rescue code
# Makefile for rescue (bootstrap) code
#
target = $(target_rescue_dir)
src = $(src_rescue_dir)

CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE)
CFLAGS = -O2
EXTRA_CFLAGS = -O2
AFLAGS += -I $(TOPDIR)/include/asm/arch/mach/ -I $(TOPDIR)/include/asm/arch
EXTRA_CFLAGS += -I $(TOPDIR)/include/asm/arch/mach/ -I $(TOPDIR)/include/asm/arch
LD = gcc-cris -mlinux -march=v32 -nostdlib
LDFLAGS = -T $(obj)/rescue.ld
LDPOSTFLAGS = -lgcc
OBJCOPY = objcopy-cris
OBJCOPYFLAGS = -O binary --remove-section=.bss
obj-$(CONFIG_ETRAX_AXISFLASHMAP) = head.o
OBJECT := $(obj)/head.o

all: $(target)/rescue.bin
targets := rescue.o rescue.bin

rescue: rescue.bin
# do nothing
quiet_cmd_ldlibgcc = LD $@
cmd_ldlibgcc = $(LD) $(LDFLAGS) $(filter-out FORCE,$^) $(LDPOSTFLAGS) -o $@

$(target)/rescue.bin: $(target) $(target)/head.o
$(LD) -T $(src)/rescue.ld -o $(target)/rescue.o $(target)/head.o
$(OBJCOPY) $(OBJCOPYFLAGS) $(target)/rescue.o $(target)/rescue.bin
cp -p $(target)/rescue.bin $(objtree)
$(obj)/rescue.o: $(OBJECTS) FORCE
$(call if_changed,ldlibgcc)

$(target):
mkdir -p $(target)

$(target)/head.o: $(src)/head.S
$(CC) -D__ASSEMBLY__ -c $< -o $*.o

clean:
rm -f $(target)/*.o $(target)/*.bin

fastdep:

modules:

modules-install:
$(obj)/rescue.bin: $(obj)/rescue.o FORCE
$(call if_changed,objcopy)
cp -p $(obj)/rescue.bin $(objtree)

0 comments on commit 99597bd

Please sign in to comment.