echo $(target_alias)-as ; \
fi`
-AS_FOR_TARGET = `\
- if [ -x ${bindir}/dvp-elf-as ]; then \
- echo ${bindir}/dvp-elf-as ; \
+DVPOBJCP_FOR_TARGET = `\
+ if [ -x ${bindir}/dvp-elf-objcopy ]; then \
+ echo ${bindir}/dvp-elf-objcopy ; \
else \
- echo $(target_alias)-as ; \
+ echo $(target_alias)-objcopy ; \
fi`
-LD_FOR_TARGET = `\
+AS_FOR_TARGET = `\
if [ -x ../../../gas/as-new ]; then \
echo ../../../gas/as-new ; \
else \
echo $(target_alias)-as ; \
fi`
-OBJCOPY_FOR_TARGET = `\
- if [ -x ${bindir}/dvp-elf-objcopy ]; then \
- echo ${bindir}/dvp-elf-objcopy ; \
+LD_FOR_TARGET = `\
+ if [ -x ../../../ld/ld-new ]; then \
+ echo ../../../ld/ld-new ; \
else \
- echo $(target_alias)-objcopy ; \
+ echo $(target_alias)-ld ; \
fi`
sce_test53.ok sce_test54.ok sce_test55.ok sce_test56.ok \
sce_test57.ok sce_test58.ok sce_test59.ok
-check: sanity $(TESTS) $(SCE_TESTS)
+check: sanity $(TESTS)
+check_sce: sanity $(SCE_TESTS)
sanity:
@eval echo AS_FOR_TARGET = $(AS_FOR_TARGET)
@eval echo LD_FOR_TARGET = $(LD_FOR_TARGET)
- @eval echo OBJCOPY_FOR_TARGET = $(OBJCOPY_FOR_TARGET)
@eval echo RUN_FOR_TARGET = $(RUN_FOR_TARGET)
@eval echo GCC_FOR_TARGET = $(GCC_FOR_TARGET)
-
+ @eval echo DVPAS_FOR_TARGET = $(DVPAS_FOR_TARGET)
+ @eval echo DVPOBJCP_FOR_TARGET = $(DVPOBJCP_FOR_TARGET)
+
#------------------------------------
# Rules for building and running the SCE tests :
#------------------------------------
LDFLAGS=-T$(srcdir)/sky.ld
CFLAGS += -I$(srcdir)
-ASFLAGS = -a -I$(srcdir)
+ASFLAGS = -I$(srcdir)
sce%.exe: sce%.o sce_main.o refresh.o
$(GCC_FOR_TARGET) $(CFLAGS) $(LDFLAGS) sce_main.o refresh.o -o $@ $<
$(DVPAS_FOR_TARGET) $(ASFLAGS) -o $@ $<
sce2_%.vubin: sce2_%.vu.o
- $(OBJCOPY_FOR_TARGET) -O binary $< $@
+ $(DVPOBJCP_FOR_TARGET) -O binary $< $@
sce2_%.vu.o: sce2_%.vuasm
$(DVPAS_FOR_TARGET) $(ASFLAGS) -o $@ $<
sce%.ok: sce%.exe
rm -f sce$*.ok
- ulimit -t 30 ; $(RUN_FOR_TARGET) $< > sce$*_our_gif.dat; \
+ ulimit -t 30 ; $(RUN_FOR_TARGET) $< >& sce$*_our_gif.dat; \
if [ $$? -ne 0 ]; then \
- echo Running sce$*.exe returns $$? > sce$*.ok ; \
- else \
- diff -bitw sce$*_out_dif.dat sce$*_our_gif.dat > sce$*.ok; \
- fi
+ touch sce$*.ok; \
+ else \
+ echo Running sce$*.exe returns $$? > sce$*.ok ;\
+ fi
+
+# else \
+# diff -bitw sce$*_out_dif.dat sce$*_our_gif.dat > sce$*.ok; \
+# fi
#------------------------
# Rules for running tests
-rm -f *~ core *.o a.out *.x *.grt
-rm -f *.vif*out *.ok tmp-*
rm -f $(TESTS)
- rm -f $(SCE_TESTS) sce*our_gif.dat sce*.exe a.raw
+ rm -f $(SCE_TESTS) sce*our_gif.dat sce*.exe *.vubin a.raw
# if [ x"${SUBDIRS}" != x ] ; then \
# for dir in ${SUBDIRS}; \
# do \