[FFmpeg-devel] How to wire asm to the makefile
Book Moons
waic9e at protonmail.com
Mon Jul 9 07:29:21 EEST 2018
Hello,
I have a Power optimized function in asm for an upcoming patch. Having some trouble figuring out how to wire it up to the makefiles / build system. Are there any docs on how to do that?
The only other example of Power asm seems to be libavcodec/ppc/fft_altivec.S. That's simply appended to the OBJS-yes variable:
OBJS-$(CONFIG_FFT) += ppc/fft_init.o \
ppc/fft_altivec.o \
ppc/fft_vsx.o
Doing the same thing in the relevant makefile (for libswscale/ppc) doesn't seem to work.
OBJS += ppc/swscale_altivec.o \
ppc/yuv2rgb_altivec.o \
ppc/yuv2yuv_altivec.o \
ppc/hScale8To15_vsx.o
It looks for a .c file. Building with that change gives this error:
>make: *** No rule to make target 'src/libswscale/ppc/hScale8To15_vsx.c', needed by 'libswscale/ppc/hScale8To15_vsx.o'. Stop.
More information about the ffmpeg-devel
mailing list