From: Thomas Petazzoni Date: Wed, 8 Oct 2014 18:04:39 +0200 Subject: [Buildroot] [PATCH 1/1] x264: use assembly files on ARMv7 In-Reply-To: <1412762494-21843-1-git-send-email-0intro@gmail.com> References: <1412762494-21843-1-git-send-email-0intro@gmail.com> Message-ID: <20141008180439.43004e51@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear David du Colombier, On Wed, 8 Oct 2014 12:01:34 +0200, David du Colombier wrote: > 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 Does --enable-asm exists ? If so, I would prefer something such as: ifeq ($(BR2_i386)$(BR2_x86_64),y) FFMPEG_CONF_OPTS += --enable-asm FFMPEG_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 else FFMPEG_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 \ 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 -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com