kopia lustrzana https://github.com/micropython/micropython
esp32/hashlib: Fix HASHLIB dependencies.
Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>pull/13557/head
rodzic
ed15b3c6c6
commit
913f6e8f6c
|
@ -101,9 +101,12 @@
|
|||
#define MICROPY_BLUETOOTH_NIMBLE (1)
|
||||
#define MICROPY_BLUETOOTH_NIMBLE_BINDINGS_ONLY (1)
|
||||
#endif
|
||||
#define MICROPY_PY_HASHLIB (1)
|
||||
#if MICROPY_PY_HASHLIB
|
||||
#define MICROPY_PY_HASHLIB_MD5 (1)
|
||||
#define MICROPY_PY_HASHLIB_SHA1 (1)
|
||||
#define MICROPY_PY_HASHLIB_SHA256 (1)
|
||||
#endif
|
||||
#define MICROPY_PY_CRYPTOLIB (1)
|
||||
#define MICROPY_PY_RANDOM_SEED_INIT_FUNC (esp_random())
|
||||
#define MICROPY_PY_OS_INCLUDEFILE "ports/esp32/modos.c"
|
||||
|
|
|
@ -1645,6 +1645,7 @@ typedef double mp_float_t;
|
|||
#define MICROPY_PY_HASHLIB (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_HASHLIB
|
||||
#ifndef MICROPY_PY_HASHLIB_MD5
|
||||
#define MICROPY_PY_HASHLIB_MD5 (0)
|
||||
#endif
|
||||
|
@ -1656,6 +1657,7 @@ typedef double mp_float_t;
|
|||
#ifndef MICROPY_PY_HASHLIB_SHA256
|
||||
#define MICROPY_PY_HASHLIB_SHA256 (1)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_PY_CRYPTOLIB
|
||||
#define MICROPY_PY_CRYPTOLIB (0)
|
||||
|
|
Ładowanie…
Reference in New Issue