diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-15 19:40:55 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch) | |
tree | 98ec96946eeb2ae709cb0528cc6998e21bb9b290 /firmware/test/i2c/Makefile | |
parent | 17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff) | |
download | rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip |
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets
Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'firmware/test/i2c/Makefile')
-rw-r--r-- | firmware/test/i2c/Makefile | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/firmware/test/i2c/Makefile b/firmware/test/i2c/Makefile deleted file mode 100644 index 51e72b859b..0000000000 --- a/firmware/test/i2c/Makefile +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | CC = sh-elf-gcc | ||
2 | LD = sh-elf-ld | ||
3 | AR = sh-elf-ar | ||
4 | AS = sh-elf-as | ||
5 | OC = sh-elf-objcopy | ||
6 | |||
7 | FIRMWARE=../.. | ||
8 | |||
9 | INCLUDES=-I$(FIRMWARE) -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers | ||
10 | |||
11 | TARGET = -DARCHOS_PLAYER_OLD=1 | ||
12 | |||
13 | CFLAGS = -g -W -Wall -m1 -save-temps -nostdlib -Wstrict-prototypes -fschedule-insns -fno-builtin $(INCLUDES) $(TARGET) -DDEBUG | ||
14 | AFLAGS += -small -relax | ||
15 | |||
16 | SRC := $(wildcard *.c) | ||
17 | OBJS := $(SRC:%.c=%.o) $(FIRMWARE)/crt0.o | ||
18 | DEPS:=.deps | ||
19 | DEPDIRS:=$(DEPS) | ||
20 | |||
21 | all : archos.mod | ||
22 | |||
23 | archos.elf : $(OBJS) app.lds | ||
24 | $(CC) -nostartfiles -o archos.elf $(OBJS) -lgcc -lrockbox -L$(FIRMWARE) -Tapp.lds -Wl,-Map,archos.map | ||
25 | |||
26 | archos.bin : archos.elf | ||
27 | $(OC) -O binary archos.elf archos.bin | ||
28 | |||
29 | archos.asm: archos.bin | ||
30 | sh2d -sh1 archos.bin > archos.asm | ||
31 | |||
32 | archos.mod : archos.bin | ||
33 | scramble archos.bin archos.mod | ||
34 | |||
35 | archos.mod.gz : archos.mod | ||
36 | gzip -f archos.mod | ||
37 | |||
38 | dist: | ||
39 | tar czvf dist.tar.gz Makefile main.c start.s app.lds | ||
40 | |||
41 | clean: | ||
42 | -rm -f $(OBJS) *.x *.i *.o *.s *.elf *.bin *.map *.mod *.bak *~ | ||
43 | -$(RM) -r $(DEPS) | ||
44 | |||
45 | $(DEPS)/%.d: %.c | ||
46 | @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $$d ]; then mkdir $$d; fi; }; done' | ||
47 | @echo "Updating dependencies for $<" | ||
48 | @$(SHELL) -ec '$(CC) -MM $(CFLAGS) $< \ | ||
49 | |sed '\''s|\($*\)\.o[ :]*|\1.o $(<:%.c=%.d) : |g'\'' > $@; \ | ||
50 | [ -s $@ ] || rm -f $@' | ||
51 | |||
52 | -include $(SRC:%.c=$(DEPS)/%.d) | ||
53 | |||