You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/07/18 18:38:39 UTC
[2/2] incubator-mynewt-core git commit: bleprph - Compile out debug
log / unused features.
bleprph - Compile out debug log / unused features.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/8e930a76
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8e930a76
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8e930a76
Branch: refs/heads/develop
Commit: 8e930a76dfb515e0c08a8000a1bb418a1528a829
Parents: 96c5e00
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Jul 18 11:37:45 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Jul 18 11:37:45 2016 -0700
----------------------------------------------------------------------
apps/bleprph/pkg.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8e930a76/apps/bleprph/pkg.yml
----------------------------------------------------------------------
diff --git a/apps/bleprph/pkg.yml b/apps/bleprph/pkg.yml
index a63f8ea..4b0c0b3 100644
--- a/apps/bleprph/pkg.yml
+++ b/apps/bleprph/pkg.yml
@@ -31,3 +31,14 @@ pkg.deps:
- net/nimble/host/store/ram
- libs/console/full
- libs/baselibc
+
+pkg.cflags:
+ # Use INFO log level to reduce code size. DEBUG is too large for nRF51.
+ - "-DLOG_LEVEL=1"
+
+ # Disable unused roles; bleprph is a peripheral-only app.
+ - "-DNIMBLE_OPT_ROLE_OBSERVER=0"
+ - "-DNIMBLE_OPT_ROLE_CENTRAL=0"
+
+ # Disable unused eddystone feature.
+ - "-DNIMBLE_OPT_EDDYSTONE=0"