From 9e265cfa1bcbe790139d33842c74cbfa4af49683 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Thu, 21 Sep 2017 00:50:33 +0300 Subject: [PATCH] domoticz: enable GPIO support When cross-compiling Domoticz on a system without GPIO, the WITH_GPIO flag is not set by cmake, and GPIO support is disabled as a result. Enabling GPIO support by adding the flag to TARGET_CXXFLAGS. Signed-off-by: Stijn Tintel --- utils/domoticz/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/domoticz/Makefile b/utils/domoticz/Makefile index 0351ea6d57..d8dee81390 100644 --- a/utils/domoticz/Makefile +++ b/utils/domoticz/Makefile @@ -11,7 +11,7 @@ PKG_NAME:=domoticz PKG_VERSION_MAJOR:=3 PKG_VERSION_PATCH:=8153 PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH) -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE) @@ -62,6 +62,8 @@ CMAKE_OPTIONS += \ -DUSE_STATIC_OPENZWAVE=no \ -DUSE_PYTHON=no +TARGET_CXXFLAGS+=-DWITH_GPIO + define Build/Prepare $(call Build/Prepare/Default) # Fix APPVERSION to suppress update popup