Skip to content

Commit 8c194e6

Browse files
committed
crypto/mbedtls: Use config defining flag globally
Now -DMBEDTLS_USER_CONFIG_FILE=<mbedtls/config_mynewt.h> flag is used globally for each build that depends on mbedtls package. This way we won't have to add this flag in each package that uses mbedtls.
1 parent 165790f commit 8c194e6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

apps/crypto_test/pkg.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,3 @@ pkg.deps:
2828
- "@apache-mynewt-core/sys/log"
2929
- "@apache-mynewt-core/crypto/mbedtls"
3030
- "@apache-mynewt-core/crypto/tinycrypt"
31-
32-
pkg.cflags: '-DMBEDTLS_USER_CONFIG_FILE="mbedtls/config_mynewt.h"'

apps/hash_test/pkg.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,3 @@ pkg.deps:
2828
- "@apache-mynewt-core/sys/log"
2929
- "@apache-mynewt-core/crypto/mbedtls"
3030
- "@apache-mynewt-core/crypto/tinycrypt"
31-
32-
pkg.cflags: '-DMBEDTLS_USER_CONFIG_FILE="mbedtls/config_mynewt.h"'

crypto/mbedtls/pkg.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ pkg.keywords:
2626
- tls
2727
pkg.type: sdk
2828

29-
pkg.cflags:
29+
app.cflags:
3030
- '-DMBEDTLS_USER_CONFIG_FILE=<mbedtls/config_mynewt.h>'
31+
app.cflags.TEST:
32+
- '-DTEST'
33+
34+
pkg.cflags:
3135
- -Wno-maybe-uninitialized
3236
- -Wno-unknown-warning-option
33-
pkg.cflags.TEST: -DTEST
3437

3538
pkg.include_dirs:
3639
- "include"

0 commit comments

Comments
 (0)