1TESTS_PATH = $(SRC_PATH)/tests/tcg/tricore 2ASM_TESTS_PATH = $(TESTS_PATH)/asm 3C_TESTS_PATH = $(TESTS_PATH)/c 4 5LDFLAGS = -T$(TESTS_PATH)/link.ld --mcpu=tc162 6ASFLAGS = -mtc162 7CFLAGS = -mtc162 -c -I$(TESTS_PATH) 8 9TESTS += test_abs.asm.tst 10TESTS += test_bmerge.asm.tst 11TESTS += test_clz.asm.tst 12TESTS += test_crcn.asm.tst 13TESTS += test_dextr.asm.tst 14TESTS += test_dvstep.asm.tst 15TESTS += test_fadd.asm.tst 16TESTS += test_fmul.asm.tst 17TESTS += test_ftohp.asm.tst 18TESTS += test_ftoi.asm.tst 19TESTS += test_ftou.asm.tst 20TESTS += test_hptof.asm.tst 21TESTS += test_imask.asm.tst 22TESTS += test_insert.asm.tst 23TESTS += test_ld_bu.asm.tst 24TESTS += test_ld_h.asm.tst 25TESTS += test_madd.asm.tst 26TESTS += test_msub.asm.tst 27TESTS += test_muls.asm.tst 28 29TESTS += test_boot_to_main.c.tst 30TESTS += test_context_save_areas.c.tst 31 32QEMU_OPTS += -M tricore_testboard -cpu tc37x -nographic -kernel 33 34%.pS: $(ASM_TESTS_PATH)/%.S 35 $(CC) -E -o $@ $< 36 37%.o: %.pS 38 $(AS) $(ASFLAGS) -o $@ $< 39 40%.asm.tst: %.o 41 $(LD) $(LDFLAGS) $< -o $@ 42 43crt0-tc2x.o: $(C_TESTS_PATH)/crt0-tc2x.S 44 $(AS) $(ASFLAGS) -o $@ $< 45 46%.o: $(C_TESTS_PATH)/%.c 47 $(CC) $(CFLAGS) -o $@ $< 48 49%.c.tst: %.o crt0-tc2x.o 50 $(LD) $(LDFLAGS) -o $@ $^ 51 52# We don't currently support the multiarch system tests 53undefine MULTIARCH_TESTS 54