Browse Source

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 <stijn@linux-ipv6.be>
lilik-openwrt-22.03
Stijn Tintel 7 years ago
parent
commit
9e265cfa1b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      utils/domoticz/Makefile

+ 3
- 1
utils/domoticz/Makefile View File

@ -11,7 +11,7 @@ PKG_NAME:=domoticz
PKG_VERSION_MAJOR:=3 PKG_VERSION_MAJOR:=3
PKG_VERSION_PATCH:=8153 PKG_VERSION_PATCH:=8153
PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH) PKG_VERSION:=$(PKG_VERSION_MAJOR).$(PKG_VERSION_PATCH)
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE) PKG_SOURCE_URL:=https://github.com/domoticz/domoticz/archive/$(PKG_VERSION)/$(PKG_SOURCE)
@ -62,6 +62,8 @@ CMAKE_OPTIONS += \
-DUSE_STATIC_OPENZWAVE=no \ -DUSE_STATIC_OPENZWAVE=no \
-DUSE_PYTHON=no -DUSE_PYTHON=no
TARGET_CXXFLAGS+=-DWITH_GPIO
define Build/Prepare define Build/Prepare
$(call Build/Prepare/Default) $(call Build/Prepare/Default)
# Fix APPVERSION to suppress update popup # Fix APPVERSION to suppress update popup


Loading…
Cancel
Save