1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1666 deb tidy: use "dkg --print-architecture" to get arch

This commit is contained in:
James Duley 2015-01-09 16:49:28 +13:00
parent 67ecb92d90
commit 931da8ecb9

View File

@ -17,12 +17,8 @@ DEB_BUILD_DIR := $(ROOT_DIR)/debian
SED_DATE_STRG = $(shell date -R)
SED_SCRIPT = s/<VERSION>/$(VERNUM)/;s/<DATE>/$(SED_DATE_STRG)/
DEB_PLATFORM := amd64
MACHINE_TYPE := $(shell uname -m)
ifneq ($(MACHINE_TYPE), x86_64)
DEB_PLATFORM := i386
endif
DEB_PACKAGE_NAME := openpilot_$(VERNUM)_$(DEB_PLATFORM)
DEB_ARCH := $(shell dpkg --print-architecture)
DEB_PACKAGE_NAME := openpilot_$(VERNUM)_$(DEB_ARCH)
.PHONY: package
package: