add a comma to reduce ambiguity
[openpower-isa.git] / media / Makefile
index 2ef7dcb3a05c894880ab30cfae0e5ba60705b26e..6c33dac1b6e22cd369e6ea9ec0ac7c1d80602335 100644 (file)
@@ -1,11 +1,12 @@
 .PHONY: all wget tests
 
-CROSS ?= powerpc64-linux-gnu-
+CROSS ?= powerpc64le-linux-gnu-
 AS = $(CROSS)as
 LD = $(CROSS)ld
 OBJCOPY = $(CROSS)objcopy
 
-AFLAGS ?= -mpwr9
+PYSVP64TRANS ?= cp
+AFLAGS ?= -mlibresoc
 
 EXPECTED_VER = 1
 VER = $(shell cat data/VERSION)
@@ -31,7 +32,7 @@ wget:
        tar -C data -xvf media-test-data.txz
 
 %.bin: %.s
-       pysvp64asm $< $<.sv
+       $(PYSVP64TRANS) $< $<.sv
        $(AS) $(AFLAGS) -c $<.sv -le -o $<.o
        $(LD) $<.o -EL -o $<.elf -T memmap
        $(OBJCOPY) $<.elf -I elf64-little -O binary $@
@@ -39,11 +40,10 @@ wget:
 tests: $(OBJ)
        @echo audio/mp3_0
        for i in `seq 0 1000 9000`; do \
-               audio/mp3/mp3_0.sh $$i \
+               audio/mp3/mp3_0.sh $$i $$DUMP$$i || exit 1; \
        done
-
        @echo audio/mp3_1
        for i in `seq 0 23`; do \
-               audio/mp3/mp3_1.sh $$i \
+               audio/mp3/mp3_1.sh $$i $$DUMP$$i || exit 1; \
        done