x264: use assembly files on ARMv7
PATCH 1/1 x264: use assembly files on ARMv7
--- package/x264/x264.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/x264/x264.mk +2 -2
@@ -14,7 +14,7 @@ X264_INSTALL_STAGING = YES ifeq ($(BR2_i386)$(BR2_x86_64),y) FFMPEG_DEPENDENCIES += host-yasm -else +else ifeq ($(BR2_cortex_a5)$(BR2_cortex_a7)$(BR2_cortex_a8)$(BR2_cortex_a9)$(BR2_cortex_a12)$(BR2_cortex_a15),) X264_CONF_OPTS += --disable-asm endif
@@ -32,7 +32,7 @@ endif # the configure script is not generated by autoconf define X264_CONFIGURE_CMDS - (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure \ + (cd $(@D); $(TARGET_CONFIGURE_OPTS) AS=$(TARGET_CC) ./configure \ --prefix=/usr \ --host="$(GNU_TARGET_NAME)" \ --cross-prefix="$(TARGET_CROSS)" \
Signature · 1 line
1.9.3
PATCH 1/1 x264: use assembly files on ARMv7
Dear David du Colombier,
package/x264/x264.mk X264_INSTALL_STAGING = YES · line 19
Quoted 6 lines · David du Colombier
ifeq ($(BR2_i386)$(BR2_x86_64),y)
package/x264/x264.mk +1
-1FFMPEG_DEPENDENCIES += host-yasm -else +else ifeq ($(BR2_cortex_a5)$(BR2_cortex_a7)$(BR2_cortex_a8)$(BR2_cortex_a9)$(BR2_cortex_a12)$(BR2_cortex_a15),) X264_CONF_OPTS += --disable-asm endif
Does --enable-asm exists ? If so, I would prefer something such as:
ifeq ($(BR2_i386)$(BR2_x86_64),y)FFMPEG_CONF_OPTS += --enable-asmFFMPEG_DEPENDENCIES += host-yasm
else ifeq ($(BR2_cortex_a5)$(BR2_cortex_a7)$(BR2_cortex_a8)$(BR2_cortex_a9)$(BR2_cortex_a12)$(BR2_cortex_a15),y) FFMPEG_CONF_OPTS += --enable-asm
elseFFMPEG_CONF_OPTS += --disable-asm
endif
package/x264/x264.mk endif · line 35
Quoted 7 lines
package/x264/x264.mk +1
-1@@ -32,7 +32,7 @@ endif # the configure script is not generated by autoconf define X264_CONFIGURE_CMDS - (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure \ + (cd $(@D); $(TARGET_CONFIGURE_OPTS) AS=$(TARGET_CC) ./configure \
You want to use quotes:
AS="$(TARGET_CC)"
to make sure it doesn't break when ccache is used.
Also, maybe add a comment:
# We need to pass gcc as AS, because ...
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 x264: use assembly files on ARMv7
Quoted 1 line
Does --enable-asm exists ? If so, I would prefer something such as:
Sadly, --enable-asm isn't supported.
Quoted 9 lines
package/x264/x264.mk endif · line 35
Quoted 6 lines
package/x264/x264.mk +1
-1@@ -32,7 +32,7 @@ endif # the configure script is not generated by autoconf define X264_CONFIGURE_CMDS - (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure \ + (cd $(@D); $(TARGET_CONFIGURE_OPTS) AS=$(TARGET_CC) ./configure \You want to use quotes:
Quoted 3 lines
AS="$(TARGET_CC)"to make sure it doesn't break when ccache is used.
Done.
Quoted 3 lines
Also, maybe add a comment:
# We need to pass gcc as AS, because ...
Done.
Signature · 1 line
David du Colombier