[Pkg-chromium-commit] [pkg-chromium] 02/03: debian/rules: add definitions for arm64/armhf
Riku Voipio
riku at moszumanska.debian.org
Mon Dec 5 11:57:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
riku pushed a commit to branch arm-experimental
in repository pkg-chromium.
commit 5e2e713f4026f0af59cc0aaa73e44345f0b88c13
Author: Riku Voipio <riku.voipio at linaro.org>
Date: Mon Dec 5 13:55:10 2016 +0200
debian/rules: add definitions for arm64/armhf
armhf is non-neon currently. some extra work to test that runtime
selection works as expected is needed.
---
debian/rules | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/debian/rules b/debian/rules
index 0f4b60a..f8e6247 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@ export DH_VERBOSE=1
# enable all build hardening flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# linker flags to avoid memory allocation issues on i386
export LDFLAGS+=-Wl,--no-keep-memory -Wl,--reduce-memory-overheads -Wl,--hash-size=7919
@@ -23,6 +24,22 @@ export CXXFLAGS+=-fuse-ld=gold
# treat all warnings as errors
defines=werror=
+ifeq (arm64,$(DEB_HOST_ARCH))
+defines += \
+ target_arch=arm64
+endif
+
+ifeq (armhf,$(DEB_HOST_ARCH))
+defines += \
+ arm_neon=0 \
+ arm_use_neon=0 \
+ v8_use_arm_eabi_hardfloat=true \
+ arm_float_abi=hard \
+ arm_thumb=1 \
+ armv7=1 \
+ arm_version=7
+endif
+
# build with gcc instead of clang
defines+=clang=0
defines+=clang_use_chrome_plugins=
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-chromium/pkg-chromium.git
More information about the Pkg-chromium-commit
mailing list