Skip to content

Commit d2ab502

Browse files
author
Rob Walker
authored
remove no openssl code from Makefile_Standalone (project-chip#793)
1 parent 6ad7904 commit d2ab502

File tree

2 files changed

+0
-91
lines changed

2 files changed

+0
-91
lines changed

Makefile-Standalone

-31
Original file line numberDiff line numberDiff line change
@@ -88,37 +88,6 @@ ifeq ($(HOSTOS),darwin)
8888
configure_OPTIONS += ac_cv_func_clock_gettime=no ac_cv_have_decl_clock_gettime=no
8989
endif
9090

91-
# By default, attempt use the system's OpenSSL library, falling back to building the internal
92-
# copy of OpenSSL (in third_party/openssl) when necessary.
93-
#
94-
# On Linux, the logic uses pkg-config to determine if the OpenSSL development package (libssl-dev)
95-
# has been installed. If not, the internal copy of OpenSSL is built.
96-
#
97-
# On OS X, the logic uses homebrew to determine if OpenSSL has been installed. If not, the
98-
# internal copy of OpenSSL will be built.
99-
#
100-
# The variable OPENSSL can be used to override the above logic and specify a particular root
101-
# directory in which to find the OpenSSL headers and libraries.
102-
#
103-
# Setting OPENSSL=no or NO_OPENSSL=1 will cause CHIP to be built without OpenSSL. Note that
104-
# building without OpenSSL automatically suppresses the building of various command line tools that
105-
# have a hard dependency on OpenSSL (e.g. the CHIP tool).
106-
107-
ifeq ($(NO_OPENSSL),1)
108-
OPENSSL = no
109-
else
110-
ifeq ($(HOSTOS),darwin)
111-
OPENSSL ?= $(shell if which brew > /dev/null && brew ls --versions openssl > /dev/null; then brew --prefix openssl; else echo "internal"; fi)
112-
else
113-
OPENSSL ?= $(shell if which pkg-config > /dev/null && pkg-config --exists openssl; then echo ""; else echo "internal"; fi)
114-
endif
115-
endif
116-
configure_OPTIONS += --with-openssl=$(OPENSSL)
117-
ifeq ($(OPENSSL),no)
118-
configure_OPTIONS += --disable-tools
119-
ProjectConfigDir = $(AbsTopSourceDir)/config/standalone/no-openssl
120-
endif
121-
12291
# If the user has asserted USE_FUZZING enable fuzzing build
12392
ifeq ($(USE_FUZZING),1)
12493
configure_OPTIONS += --enable-fuzzing

config/standalone/no-openssl/CHIPProjectConfig.h

-60
This file was deleted.

0 commit comments

Comments
 (0)