domoticz: enable GPIO support
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 20 Sep 2017 21:50:33 +0000 (00:50 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 20 Sep 2017 22:31:45 +0000 (01:31 +0300)
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 <stijn@linux-ipv6.be>
utils/domoticz/Makefile

index 0351ea6d57d04701603760a61185166323917880..d8dee81390ead2b9b0eb650d643873312d10fa9f 100644 (file)
@@ -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