1 -include ..
/..
/config-host.mak
3 CROSS
=xtensa-dc232b-elf-
6 SIM
= qemu-system-xtensa
7 SIMFLAGS
= -M dc232b
-nographic
-semihosting
$(EXTFLAGS
) -kernel
11 SIMFLAGS
= --xtensa-core
=DC_B_232L
--exit_with_target_code
$(EXTFLAGS
)
12 SIMDEBUG
= --gdbserve
=0
16 AS
= $(CROSS
)gcc
-x assembler
23 TESTCASES
+= test_b.tst
24 TESTCASES
+= test_bi.tst
25 #TESTCASES += test_boolean.tst
26 TESTCASES
+= test_bz.tst
27 TESTCASES
+= test_clamps.tst
28 TESTCASES
+= test_fail.tst
29 TESTCASES
+= test_interrupt.tst
30 TESTCASES
+= test_loop.tst
31 TESTCASES
+= test_max.tst
32 TESTCASES
+= test_min.tst
33 TESTCASES
+= test_mmu.tst
34 TESTCASES
+= test_mul16.tst
35 TESTCASES
+= test_mul32.tst
36 TESTCASES
+= test_nsa.tst
38 TESTCASES
+= test_pipeline.tst
40 TESTCASES
+= test_quo.tst
41 TESTCASES
+= test_rem.tst
42 TESTCASES
+= test_rst0.tst
43 TESTCASES
+= test_sar.tst
44 TESTCASES
+= test_sext.tst
45 TESTCASES
+= test_shift.tst
46 TESTCASES
+= test_timer.tst
47 TESTCASES
+= test_windowed.tst
51 %.o
: $(SRC_PATH
)/tests
/xtensa
/%.c
52 $(CC
) $(CFLAGS
) -c
$< -o
$@
54 %.o
: $(SRC_PATH
)/tests
/xtensa
/%.S
55 $(AS
) $(ASFLAGS
) -c
$< -o
$@
57 %.tst
: %.o macros.inc
$(CRT
) Makefile
58 $(LD
) $(LDFLAGS
) $(NOSTDFLAGS
) $(CRT
) $< -o
$@
62 check: $(addprefix run-
, $(TESTCASES
))
65 $(SIM
) $(SIMFLAGS
) .
/$<
67 run-test_fail.tst
: test_fail.tst
68 ! $(SIM
) $(SIMFLAGS
) .
/$<
71 $(SIM
) $(SIMDEBUG
) $(SIMFLAGS
) .
/$<
74 $(RM
) -fr
$(TESTCASES
) $(CRT
)