From 2a8d6db055c262adc56559701eb7f75466e1a391 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Mon, 30 Jan 2017 19:37:47 +0000 Subject: [PATCH] Build with -DSC16Q11_TABLE_BITS=8 on armhf --- debian/rules | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index c8a2de0..8e9e082 100755 --- a/debian/rules +++ b/debian/rules @@ -12,13 +12,15 @@ export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 -include /usr/share/dpkg/buildflags.mk +include /usr/share/dpkg/default.mk -DUMP1090_VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version: /v/p') -SRCNAME=$(shell dpkg-parsechangelog | sed -n 's/^Source: //p') +ifeq ($(DEB_HOST_ARCH),armhf) + # Assume a Pi-like target, where using an 8-bit table is a fairly big win over the float path + CPPFLAGS += -DSC16Q11_TABLE_BITS=8 +endif override_dh_auto_build: - dh_auto_build -- HTMLPATH=/usr/share/$(SRCNAME)/html DUMP1090_VERSION=$(DUMP1090_VERSION) RTLSDR_PREFIX=/usr + dh_auto_build -- HTMLPATH=/usr/share/$(DEB_SOURCE)/html DUMP1090_VERSION=$(DEB_VERSION) RTLSDR_PREFIX=/usr override_dh_install: dh_install