Skip to content

Commit

Permalink
openzwave: fix gcc7 compile and remove bad patch
Browse files Browse the repository at this point in the history
Patch 903-no-examples.patch removes MinOZW binary. This is wrong since
install section of openzwave is still using it. We can either remove the
patch or remove install section for openzwave. It seems people are using
this binary so we remove the patch.

After removing the patch the following issue appears with gcc7:
cc1plus: error: -Wformat-security ignored without -Wformat

This is resolved by adding the following to Makefile
TARGET_CPPFLAGS+=-Wno-format -Wno-format-security

Signed-off-by: Marko Ratkaj <[email protected]>
  • Loading branch information
Marko Ratkaj committed Apr 11, 2018
1 parent 30fa215 commit 1a4d9b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 2 additions & 0 deletions utils/openzwave/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ $(call Package/openzwave/default)
TITLE:=Open-ZWave Device Configs
endef

TARGET_CPPFLAGS+=-Wno-format -Wno-format-security

MAKE_FLAGS += \
LD="$(TARGET_CROSS)g++" \
LIBDIR="$(PKG_BUILD_DIR)" \
Expand Down
18 changes: 0 additions & 18 deletions utils/openzwave/patches/903-no-examples.patch

This file was deleted.

0 comments on commit 1a4d9b7

Please sign in to comment.