[Buildroot] [PATCH v2 1/1] package/freeswitch: enable video support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Jun 9 22:35:03 UTC 2016


Hello,

On Sat, 23 Apr 2016 23:02:38 +0200, Bernd Kuhls wrote:

> +# needed in addition for patch 0003 for cross-compiling libs/libvpx
> +ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
> +# host/opt/ext-toolchain/bin/ is not part of $PATH, instead of passing

And this is intentional, because you should never call binaries in
host/opt/ext-toolchain/bin/.

> +# GNU_TARGET_NAME we need to pass TOOLCHAIN_EXTERNAL_CROSS which stores
> +# the full path, needed to avoid build error with external toolchains,
> +# quote from compile log:
> +#    [AR] libvpx_g.a
> +# make[3]: x86_64-buildroot-linux-musl-ar: Command not found
> +# or
> +# make[3]: sparc64-buildroot-linux-gnu-ar: Command not found
> +FREESWITCH_MAKE_ENV += CROSS=$(TOOLCHAIN_EXTERNAL_CROSS)
> +else
> +FREESWITCH_MAKE_ENV += CROSS=$(GNU_TARGET_NAME)-
> +endif

Have you tried replacing this complicated stuff with just:

   FREESWITCH_MAKE_ENV += CROSS=$(TARGET_CROSS)

$(TARGET_CROSS) is already defined properly depending on
internal/external.

Could you check if that works and submit an updated version?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list