diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-28 11:38:55 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-28 21:34:11 +1000 |
commit | f4680fa1cb44e210480648567ad6da0f2d5db83a (patch) | |
tree | 2a41e7ac5a630a5e79d8b57a136d992c4ce5f8f1 /Makefile | |
parent | be2bfce487dabc94782f94563116e7ec118bb1bf (diff) | |
download | cf-fsi-f4680fa1cb44e210480648567ad6da0f2d5db83a.tar.gz cf-fsi-f4680fa1cb44e210480648567ad6da0f2d5db83a.zip |
WIP non-system-specific FW
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -30,7 +30,7 @@ TARGETS_bin = $(patsubst %.h,%.bin,$(TARGET_DEFS)) FW_SOURCE = cf-code/cf-fsi-fw.S FW_DEPS = $(FW_SOURCE) cf-fsi-fw.h -all: $(TARGETS_bin) cf-fsi-test-rom cf-fsi-test-palm +all: cf-fsi-fw.bin cf-fsi-test-rom cf-fsi-test-palm cf-code/%.s : cf-code/%.h $(FW_DEPS) $(CC) -E $(M68KCPPFLAGS) -I. -include $< $(FW_SOURCE) -o $@ @@ -44,21 +44,21 @@ cf-code/%.elf : cf-code/%.o cf-code/%.bin : cf-code/%.elf $(M68KOC) -O binary $^ $@ -cf-wrapper-rom.o : cf-wrapper.S cf-code/cf-fsi-romulus.bin - $(CC) $(CFLAGS) -DCF_FILE="cf-code/cf-fsi-romulus.bin" -c cf-wrapper.S -o $@ +cf-fsi-fw.bin : $(TARGETS_bin) + cat $^ >$@ -cf-wrapper-palm.o : cf-wrapper.S cf-code/cf-fsi-palmetto.bin - $(CC) $(CFLAGS) -DCF_FILE="cf-code/cf-fsi-palmetto.bin" -c cf-wrapper.S -o $@ +cf-wrapper.o : cf-fsi-fw.bin cf-wrapper.S + $(CC) $(CFLAGS) -DCF_FILE=$< -c cf-wrapper.S -o $@ -cf-fsi-test-rom : cf-fsi-test.c cf-wrapper-rom.o +cf-fsi-test-rom : cf-fsi-test.c cf-wrapper.o $(CC) $(CFLAGS) -DROMULUS $^ -o $@ -cf-fsi-test-palm : cf-fsi-test.c cf-wrapper-palm.o +cf-fsi-test-palm : cf-fsi-test.c cf-wrapper.o $(CC) $(CFLAGS) -O0 -mcpu=arm926ej-s -DPALMETTO $^ -o $@ # Keep the ELF for debugging .PRECIOUS : cf-code/%.elf clean: - rm -rf cf-fsi-test-* *.o *.s + rm -rf cf-fsi-test-* *.o *.s *.bin rm -rf cf-code/*.elf cf-code/*.bin cf-code/*.s cf-code/*.o |