Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
9cc8ec84
Commit
9cc8ec84
authored
Sep 23, 2016
by
Paul Sokolovsky
Browse files
py/py.mk: Add support for building modussl_mbedtls.
parent
6d310a55
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/py.mk
View file @
9cc8ec84
...
...
@@ -24,6 +24,11 @@ CFLAGS_MOD += -DMICROPY_PY_USSL=1
ifeq
($(MICROPY_SSL_AXTLS),1)
CFLAGS_MOD
+=
-DMICROPY_SSL_AXTLS
=
1
-I
../lib/axtls/ssl
-I
../lib/axtls/crypto
-I
../lib/axtls/config
LDFLAGS_MOD
+=
-Lbuild
-laxtls
else
ifeq
($(MICROPY_SSL_MBEDTLS),1)
# Can be overriden by ports which have "builtin" mbedTLS
MICROPY_SSL_MBEDTLS_INCLUDE
?=
../lib/mbedtls/include
CFLAGS_MOD
+=
-DMICROPY_SSL_MBEDTLS
=
1
-I
$(MICROPY_SSL_MBEDTLS_INCLUDE)
LDFLAGS_MOD
+=
-L
../lib/mbedtls/library
-lmbedx509
-lmbedtls
-lmbedcrypto
endif
endif
...
...
@@ -212,6 +217,7 @@ PY_O_BASENAME = \
../extmod/machine_i2c.o
\
../extmod/machine_spi.o
\
../extmod/modussl_axtls.o
\
../extmod/modussl_mbedtls.o
\
../extmod/modurandom.o
\
../extmod/modwebsocket.o
\
../extmod/modwebrepl.o
\
...
...
unix/mpconfigport.mk
View file @
9cc8ec84
...
...
@@ -29,6 +29,7 @@ MICROPY_PY_FFI = 1
# ussl module requires axtls
MICROPY_PY_USSL
=
1
MICROPY_SSL_AXTLS
=
1
MICROPY_SSL_MBEDTLS
=
0
# jni module requires JVM/JNI
MICROPY_PY_JNI
=
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment