Last change
on this file since 901 was
810,
checked in by cfuguet, 10 years ago
|
giet_tsar: updating giet_tsar to use new hard_config format
Other optimizations:
- Using a memory lock instead of the hard lock for the TTY
- Each tty channel data is aligned to a cacheline (lock and buffers).
- The applications' ldscript is generated from a template which
includes the hard_config.h file.
|
-
Property svn:executable set to
*
|
File size:
840 bytes
|
Rev | Line | |
---|
[626] | 1 | LD = mipsel-unknown-elf-ld |
---|
| 2 | CC = mipsel-unknown-elf-gcc |
---|
| 3 | AS = mipsel-unknown-elf-as |
---|
| 4 | DU = mipsel-unknown-elf-objdump |
---|
| 5 | |
---|
[744] | 6 | OBJS = reset.o \ |
---|
| 7 | giet.o \ |
---|
| 8 | stdio.o \ |
---|
| 9 | main.o |
---|
[626] | 10 | |
---|
[744] | 11 | CFLAGS = -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 |
---|
[626] | 12 | |
---|
| 13 | GIET = ../giet_tsar |
---|
| 14 | |
---|
[810] | 15 | bin.soft: $(OBJS) giet.ld |
---|
| 16 | $(LD) -o $@ -T giet.ld $(OBJS) |
---|
[626] | 17 | $(DU) -D $@ > $@.txt |
---|
| 18 | |
---|
| 19 | reset.o: $(GIET)/reset.S hard_config.h |
---|
| 20 | $(CC) -I. $(CFLAGS) -c -o $@ $< |
---|
| 21 | $(DU) -D $@ > $@.txt |
---|
| 22 | |
---|
| 23 | giet.o: $(GIET)/giet.S hard_config.h |
---|
| 24 | $(CC) -I. $(CFLAGS) -c -o $@ $< |
---|
| 25 | $(DU) -D $@ > $@.txt |
---|
| 26 | |
---|
| 27 | stdio.o: $(GIET)/stdio.c hard_config.h |
---|
| 28 | $(CC) -I. $(CFLAGS) -c -o $@ $< |
---|
| 29 | $(DU) -D $@ > $@.txt |
---|
| 30 | |
---|
| 31 | main.o: main.c hard_config.h |
---|
| 32 | $(CC) -I. $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 33 | $(DU) -D $@ > $@.txt |
---|
| 34 | |
---|
[810] | 35 | giet.ld: giet.ld.in |
---|
| 36 | $(CC) -x c -P -E -I. $< -o $@ |
---|
| 37 | |
---|
[626] | 38 | clean: |
---|
[810] | 39 | rm -f *.o bin.soft *.txt core term* temp giet.ld |
---|
Note: See
TracBrowser
for help on using the repository browser.