summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-13 17:13:04 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-13 17:13:04 +1000
commitea064f5405f1539356dcb6355f7c432b36979261 (patch)
tree36f8d5a73c1338578de13493853512b190959533 /Makefile
parent67cbe2dec8f80bfad01c28b0eee2fdced4b2cca8 (diff)
downloadcf-fsi-ea064f5405f1539356dcb6355f7c432b36979261.tar.gz
cf-fsi-ea064f5405f1539356dcb6355f7c432b36979261.zip
Add palmetto variant of the test code
It does the magic to boot the host Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 04caf17..26eab9c 100644
--- a/Makefile
+++ b/Makefile
@@ -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
+all: $(TARGETS_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,15 +44,21 @@ cf-code/%.elf : cf-code/%.o
cf-code/%.bin : cf-code/%.elf
$(M68KOC) -O binary $^ $@
-cf-wrapper.o : cf-wrapper.S cf-code/cf-fsi-romulus.bin
- $(CC) $(CFLAGS) -c cf-wrapper.S -o $@
+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-test : cf-fsi-test.o cf-wrapper.o
- $(CC) $(CFLAGS) $^ -o $@
+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-fsi-test-rom : cf-fsi-test.c cf-wrapper-rom.o
+ $(CC) $(CFLAGS) -DROMULUS $^ -o $@
+
+cf-fsi-test-palm : cf-fsi-test.c cf-wrapper-palm.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
+ rm -rf cf-fsi-test-* *.o
rm -rf cf-code/*.elf cf-code/*.bin cf-code/*.s cf-code/*.o
OpenPOWER on IntegriCloud