pulseaudio: fix non-NEON ARM compiles
PulseAudio in some cases does not detect the ARM CPU's capabilities
correctly and enables NEON ASM while it is not supported. For example
when compiling for arm_arm1176jzf-s_vfp the assembler rejects this and
the compile fails:
{standard input}: Assembler messages:
{standard input}:27: Error: selected processor does not support `vld1.16 {d0},[r1]!' in ARM mode
{standard input}:28: Error: selected processor does not support `vmovl.s16 q0,d0' in ARM mode
{standard input}:29: Error: selected FPU does not support instruction -- `vcvt.f32.s32 q0,q0,#15'
{standard input}:31: Error: selected processor does not support `vst1.32 {q0},[r2]!' in ARM mode
{standard input}:70: Error: selected processor does not support `vld1.32 {q0},[r1]!' in ARM mode
{standard input}:71: Error: selected FPU does not support instruction -- `vcvt.s32.f32 q0,q0,#31'
{standard input}:72: Error: selected processor does not support `vqrshrn.s32 d0,q0,#16' in ARM mode
{standard input}:74: Error: selected processor does not support `vst1.16 {d0},[r2]!' in ARM mode
Makefile:8668: recipe for target 'pulsecore/libpulsecore_sconv_neon_la-sconv_neon.lo' failed
To fix this tell PulseAudio explicitly when to use the NEON ASM and when
not to.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years ago |
|
- #
- # Copyright (C) 2011-2016 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
-
- include $(TOPDIR)/rules.mk
-
- PKG_NAME:=pulseaudio
- PKG_VERSION:=12.1
- PKG_RELEASE:=1
-
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
- PKG_SOURCE_URL:=https://freedesktop.org/software/pulseaudio/releases/
- PKG_HASH:=5f5dfb5e2c376e8c974b80f93b983ed77088ade7fb8b9325a575c45aa35977f3
- PKG_LICENSE:=LGPL-2.1+
- PKG_LICENSE_FILES:=GPL LICENSE
-
- PKG_BUILD_PARALLEL:=1
- PKG_BUILD_DEPENDS:=intltool/host
-
- PKG_FIXUP:=autoreconf
- PKG_USE_MIPS16:=0
-
- PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
-
- PKG_INSTALL = 1
-
- include $(INCLUDE_DIR)/package.mk
- include $(INCLUDE_DIR)/nls.mk
-
- define Package/pulseaudio/Default
- SECTION:=sound
- CATEGORY:=Sound
- DEPENDS:=+libsndfile +libltdl +libpthread +librt +alsa-lib \
- +libopenssl +libwrap +libcap $(ICONV_DEPENDS) $(INTL_DEPENDS)
- TITLE:=Network sound server
- MAINTAINER:=Peter Wagner <tripolar@gmx.at>
- URL:=http://www.pulseaudio.org
- PROVIDES:=pulseaudio
- USERID:=pulse=51:pulse=51
- endef
-
- define Package/pulseaudio-daemon
- $(call Package/pulseaudio/Default)
- VARIANT:=noavahi
- endef
-
- define Package/pulseaudio-daemon-avahi
- $(call Package/pulseaudio/Default)
- DEPENDS+=+dbus +libavahi-client +sbc
- TITLE+= (avahi/bluez)
- VARIANT:=avahi
- endef
-
- define Package/pulseaudio/Default/description
- PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
- endef
-
- define Package/pulseaudio-daemon/description
- $(call Package/pulseaudio/Default/description)
- endef
-
- define Package/pulseaudio-daemon-avahi/description
- $(call Package/pulseaudio/Default/description)
- This package enables avahi,bluez and is compiled against dbus, sbc, and avahi.
- endef
-
- define Package/pulseaudio-daemon/conffiles
- /etc/pulse/client.conf
- /etc/pulse/daemon.conf
- /etc/pulse/default.pa
- /etc/pulse/system.pa
- endef
-
- define Package/pulseaudio-daemon-avahi/conffiles
- /etc/pulse/client.conf
- /etc/pulse/daemon.conf
- /etc/pulse/default.pa
- /etc/pulse/system.pa
- endef
-
- define Package/pulseaudio-tools
- SECTION:=sound
- CATEGORY:=Sound
- DEPENDS:=+libsndfile +pulseaudio
- TITLE:=Tools for Pulseaudio
- URL:=http://www.pulseaudio.org
- VARIANT:=noavahi
- endef
-
- define Package/pulseaudio-profiles
- SECTION:=sound
- CATEGORY:=Sound
- DEPENDS:=+pulseaudio
- TITLE:=Profiles for Pulseaudio
- URL:=http://www.pulseaudio.org
- endef
-
- CONFIGURE_ARGS += \
- $(if $(findstring neon,$(CONFIG_TARGET_OPTIMIZATION)),--enable-neon-opt,--disable-neon-opt) \
- --with-system-user=pulse \
- --with-system-group=pulse \
- --with-access-group=audio \
- --with-database=simple \
- --enable-alsa \
- --disable-hal \
- --disable-gconf \
- --disable-nls \
- --disable-manpages \
- --enable-oss-output \
- --disable-oss-wrapper \
- --disable-samplerate \
- --disable-per-user-esound-socket \
- --disable-solaris \
- --disable-gtk2 \
- --disable-glib2 \
- --disable-jack \
- --disable-asyncns \
- --disable-lirc \
- --disable-udev \
- --without-fftw \
- --without-soxr \
- --without-speex
-
- ifeq ($(BUILD_VARIANT),avahi)
- CONFIGURE_ARGS += \
- --enable-avahi \
- --enable-dbus
- endif
-
- ifeq ($(BUILD_VARIANT),noavahi)
- CONFIGURE_ARGS += \
- --disable-avahi \
- --disable-dbus
- endif
-
- CONFIGURE_VARS += \
- PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
-
- define Build/InstallDev
- $(INSTALL_DIR) \
- $(1)/usr/lib/pkgconfig \
- $(1)/usr/include/pulse \
- $(1)/usr/lib \
- $(1)/usr/lib/pulseaudio
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/include/pulse/* \
- $(1)/usr/include/pulse
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
- $(1)/usr/lib/pkgconfig
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/*.so* \
- $(1)/usr/lib/
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
- $(1)/usr/lib/pulseaudio/
- endef
-
- define Package/pulseaudio-daemon/install
- $(INSTALL_DIR) \
- $(1)/etc/pulse \
- $(1)/etc/init.d \
- $(1)/usr/bin \
- $(1)/usr/lib \
- $(1)/usr/lib/pulseaudio \
- $(1)/usr/lib/pulse-$(PKG_VERSION)/modules
-
- $(INSTALL_BIN) \
- $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
- $(1)/usr/bin/pulseaudio
-
- $(INSTALL_BIN) \
- ./files/pulseaudio.init \
- $(1)/etc/init.d/pulseaudio
-
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/etc/pulse/* \
- $(1)/etc/pulse
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/*.so* \
- $(1)/usr/lib/
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
- $(1)/usr/lib/pulseaudio/
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
- $(1)/usr/lib/
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
- $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
-
- endef
-
- define Package/pulseaudio-daemon-avahi/install
- $(INSTALL_DIR) \
- $(1)/etc/pulse \
- $(1)/etc/init.d \
- $(1)/usr/bin \
- $(1)/usr/lib \
- $(1)/usr/lib/pulseaudio \
- $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
- $(1)/etc/dbus-1/system.d
-
- $(INSTALL_BIN) \
- $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
- $(1)/usr/bin/pulseaudio
-
- $(INSTALL_BIN) \
- ./files/pulseaudio.init \
- $(1)/etc/init.d/pulseaudio
-
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/etc/pulse/* \
- $(1)/etc/pulse
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/*.so* \
- $(1)/usr/lib/
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
- $(1)/usr/lib/pulseaudio/
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
- $(1)/usr/lib/
-
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
- $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
-
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/etc/dbus-1/system.d/pulseaudio-system.conf \
- $(1)/etc/dbus-1/system.d/pulseaudio-system.conf
- endef
-
- define Package/pulseaudio-tools/install
- $(INSTALL_DIR) \
- $(1)/usr/bin
-
- $(INSTALL_BIN) \
- $(PKG_INSTALL_DIR)/usr/bin/pa* \
- $(1)/usr/bin/
- endef
-
- define Package/pulseaudio-profiles/install
- $(INSTALL_DIR) \
- $(1)/usr/share/pulseaudio/alsa-mixer/paths \
- $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
-
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
- $(1)/usr/share/pulseaudio/alsa-mixer/paths
-
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
- $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
- endef
-
- $(eval $(call BuildPackage,pulseaudio-daemon))
- $(eval $(call BuildPackage,pulseaudio-daemon-avahi))
- $(eval $(call BuildPackage,pulseaudio-tools))
- $(eval $(call BuildPackage,pulseaudio-profiles))
|