summaryrefslogtreecommitdiffstats
path: root/rules/vo-aacenc.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2014-06-01 14:42:25 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2014-06-01 14:42:25 +0200
commit7e840e630cf9fb267279892eb277d0f3df480c3c (patch)
tree5b12653221a028f5a245530663d9b0e76a8bc66d /rules/vo-aacenc.make
parent5b7ee9053a2dcb58dc48e16d78177fe7c5182082 (diff)
downloadptxdist-7e840e630cf9fb267279892eb277d0f3df480c3c.tar.gz
ptxdist-7e840e630cf9fb267279892eb277d0f3df480c3c.tar.xz
vo-aacenc: fix compilation on arm
The vo-aacenc package contains ARM assembly code that cannot be compiled in Thumb2 mode, so we must force the traditional ARM mode. Additionally, -mfpu=neon has to be set for builds with NEON capabile cpus. This patch was inspired by a similar patch by Thomas Petazzoni from the buildroot project (dc4d0e2f5cc783a826b3bfe4d31c00840407a8e2 in buildroot git). Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'rules/vo-aacenc.make')
-rw-r--r--rules/vo-aacenc.make7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/vo-aacenc.make b/rules/vo-aacenc.make
index 6d23e1a6f..0cc7a82e9 100644
--- a/rules/vo-aacenc.make
+++ b/rules/vo-aacenc.make
@@ -40,6 +40,13 @@ VO_AACENC_CONF_OPT := \
--disable-example \
--disable-static
+ifdef PTXCONF_ARCH_ARM
+VO_AACENC_CONF_ENV := $(CROSS_ENV) CFLAGS="$(CROSS_CFLAGS) -marm"
+ifdef PTXCONF_ARCH_ARM_NEON
+VO_AACENC_CONF_ENV := $(CROSS_ENV) CFLAGS="$(CROSS_CFLAGS) -marm -mfpu=neon"
+endif
+endif
+
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------