Rev 3024 | Rev 3198 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3024 | Rev 3027 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | ## Toolchain configuration |
32 | ## Toolchain configuration |
33 | # |
33 | # |
34 | 34 | ||
35 | ifeq ($(IMAGE),binary) |
35 | ifeq ($(IMAGE),binary) |
36 | BFD = binary |
36 | LD_IN = binary |
37 | endif |
37 | endif |
38 | ifeq ($(IMAGE),ecoff) |
38 | ifeq ($(IMAGE),ecoff) |
39 | BFD = ecoff-littlemips |
39 | LD_IN = ecoff |
40 | endif |
40 | endif |
41 | BFD_NAME = elf32-tradlittlemips |
41 | BFD_NAME = elf32-tradlittlemips |
42 | BFD_ARCH = mips |
42 | BFD_ARCH = mips |
43 | TARGET = mipsel-linux-gnu |
43 | TARGET = mipsel-linux-gnu |
44 | TOOLCHAIN_DIR = /usr/local/mipsel/bin |
44 | TOOLCHAIN_DIR = /usr/local/mipsel/bin |
Line 106... | Line 106... | ||
106 | 106 | ||
107 | depend: |
107 | depend: |
108 | -makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null |
108 | -makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null |
109 | 109 | ||
110 | clean: |
110 | clean: |
111 | -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend |
111 | -rm -f _components.h _components.c _link.ld _link.ld.in $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend |
112 | 112 | ||
113 | _components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS) |
113 | _components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS) _link.ld.in |
114 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD) $(BFD_ARCH) 4096 $(COMPONENTS) |
114 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) |
- | 115 | ||
- | 116 | _link.ld.in: _link.ld.in.$(LD_IN) |
|
- | 117 | cp $< $@ |
|
115 | 118 | ||
116 | %.o: %.S |
119 | %.o: %.S |
117 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
120 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
118 | 121 | ||
119 | %.o: %.c |
122 | %.o: %.c |