Build with -DSC16Q11_TABLE_BITS=8 on armhf

This commit is contained in:
Oliver Jowett 2017-01-30 19:37:47 +00:00
parent 417cda7061
commit 2a8d6db055

10
debian/rules vendored
View file

@ -12,13 +12,15 @@ export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1 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') ifeq ($(DEB_HOST_ARCH),armhf)
SRCNAME=$(shell dpkg-parsechangelog | sed -n 's/^Source: //p') # 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: 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: override_dh_install:
dh_install dh_install