Skip to contentSkip to conversation

gstreamer{, 1}: fix unaligned access detection for arc

PATCH Superseded Alexey Brodkin 2 participants 2 messages Aug 19, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gstreamer{, 1}: fix unaligned access detection for arc

Fixes the same issue as reported for microblaze here
http://autobuild.buildroot.net/results/f49/f4914bb3999c8a7a0c0a2afdac5de40fb9058372/

Similar to the existing handling for avr32, microblaze and xtensa. Also add it for gstreamer1 for good measure as it was missing there as well.

Cc Anton Kolesov <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/gstreamer/gstreamer/gstreamer.mk    | 3 +++
 package/gstreamer1/gstreamer1/gstreamer1.mk | 3 +++
 2 files changed, 6 insertions(+)
package/gstreamer/gstreamer/gstreamer.mk +3 -0
index 4696876..8e0b042 100644
@@ -18,6 +18,9 @@ endif
 ifeq ($(BR2_aarch64),y)
 GSTREAMER_CONF_ENV = as_cv_unaligned_access=yes
 endif
+ifeq ($(BR2_arc),y)
+GSTREAMER_CONF_ENV = as_cv_unaligned_access=no
+endif
 
 GSTREAMER_CONF_OPT = \
 		--disable-examples \
package/gstreamer1/gstreamer1/gstreamer1.mk +3 -0
index bf23582..528351f 100644
@@ -20,6 +20,9 @@ endif
 ifeq ($(BR2_aarch64),y)
 GSTREAMER1_CONF_ENV = as_cv_unaligned_access=yes
 endif
+ifeq ($(BR2_arc),y)
+GSTREAMER1_CONF_ENV = as_cv_unaligned_access=no
+endif
 
 GSTREAMER1_CONF_OPT = \
 	--disable-examples \
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 gstreamer{, 1}: fix unaligned access detection for arc

Hi Alexey,

Quoted 20 lines · Alexey Brodkin

Fixes the same issue as reported for microblaze here
http://autobuild.buildroot.net/results/f49/f4914bb3999c8a7a0c0a2afdac5de40fb9058372/

Similar to the existing handling for avr32, microblaze and xtensa. Also add it for gstreamer1 for good measure as it was missing there as well.

Cc Anton Kolesov <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/gstreamer/gstreamer/gstreamer.mk    | 3 +++
 package/gstreamer1/gstreamer1/gstreamer1.mk | 3 +++
 2 files changed, 6 insertions(+)
package/gstreamer/gstreamer/gstreamer.mk +0 -0
index 4696876..8e0b042 100644

package/gstreamer/gstreamer/gstreamer.mk endif · line 23

Quoted 6 lines
package/gstreamer/gstreamer/gstreamer.mk +3 -0
@@ -18,6 +18,9 @@ endif
 ifeq ($(BR2_aarch64),y)
 GSTREAMER_CONF_ENV = as_cv_unaligned_access=yes
 endif
+ifeq ($(BR2_arc),y)
+GSTREAMER_CONF_ENV = as_cv_unaligned_access=no
+endif

Instead of adding another 'ifeq' stanza, why not add ARC to the existing list of architectures? Something like:

package/gstreamer/gstreamer/gstreamer.mk +1 -1
index 4696876d396e..23ad3919f6ee 100644
@@ -12,7 +12,7 @@ GSTREAMER_INSTALL_STAGING = YES
 # Checking if unaligned memory access works correctly cannot be done when cross
 # compiling. For the following architectures there is no information available
 # in the configure script.
-ifeq ($(BR2_avr32)$(BR2_xtensa)$(BR2_microblaze),y)
+ifeq ($(BR2_avr32)$(BR2_xtensa)$(BR2_microblaze)$(BR2_arc),y)
 GSTREAMER_CONF_ENV = as_cv_unaligned_access=no
 endif
 ifeq ($(BR2_aarch64),y)
package/gstreamer1/gstreamer1/gstreamer1.mk +1 -1
index bf2358234bb3..6546dc9dc8ef 100644
@@ -14,7 +14,7 @@ GSTREAMER1_LICENSE = LGPLv2+ LGPLv2.1+
 # Checking if unaligned memory access works correctly cannot be done when cross
 # compiling. For the following architectures there is no information available
 # in the configure script.
-ifeq ($(BR2_avr32)$(BR2_xtensa)$(BR2_microblaze),y)
+ifeq ($(BR2_avr32)$(BR2_xtensa)$(BR2_microblaze)$(BR2_arc),y)
 GSTREAMER1_CONF_ENV = as_cv_unaligned_access=no
 endif
 ifeq ($(BR2_aarch64),y)

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -