summaryrefslogtreecommitdiff
path: root/resource/csdk/stack/README
diff options
context:
space:
mode:
authorWilliam R. Dieter <william.r.dieter@intel.com>2014-11-05 23:49:45 -0500
committerWilliam R. Dieter <william.r.dieter@intel.com>2014-11-06 00:05:25 -0500
commit4fa7bf9620f1fc79c7534986ae3fa49fff4f89b0 (patch)
tree99279e24a98a1452e9f0c5b344238ceb733f2baa /resource/csdk/stack/README
parent3219cec0cc7345c6f85f774b14e5d82edb8c9102 (diff)
downloadiotivity-4fa7bf9620f1fc79c7534986ae3fa49fff4f89b0.tar.gz
iotivity-4fa7bf9620f1fc79c7534986ae3fa49fff4f89b0.tar.bz2
iotivity-4fa7bf9620f1fc79c7534986ae3fa49fff4f89b0.zip
Repo Merge: Moving resource API down a directory
Change-Id: I92868cd59907eae66db7f18f7e9e1c65e02cc914 Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'resource/csdk/stack/README')
-rw-r--r--resource/csdk/stack/README34
1 files changed, 34 insertions, 0 deletions
diff --git a/resource/csdk/stack/README b/resource/csdk/stack/README
new file mode 100644
index 000000000..5a2c66704
--- /dev/null
+++ b/resource/csdk/stack/README
@@ -0,0 +1,34 @@
+Build notes
+
+//-------------------------------------------------
+// Linux
+//-------------------------------------------------
+To build, run
+make
+
+To enable logging, ensure that
+-D TB_LOG
+is set in the compiler flags
+
+//-------------------------------------------------
+// Android
+//-------------------------------------------------
+To enable logging for Android, TB_LOG should be defined in the ./jni/Android.mk file as
+
+LOCAL_CFLAGS := -DTB_LOG
+
+//-------------------------------------------------
+// Arduino
+//-------------------------------------------------
+To enable the logger for Arduino, TB_LOG should be defined in
+Properties|C/C++ Build|Settings|Tool Settings|AVR Compiler|Symbols
+and
+Properties|C/C++ Build|Settings|Tool Settings|AVR C++ Compiler|Symbols
+
+Note: when building for Arduino, force the compiler to use avr-g++ to build logger.c. Or rename logger.c to logger.cpp.
+
+Note: when building for Arduino, several warnings are generated when trying to place strings in
+PROGMEM
+"warning: only initialized variables can be placed into program memory area"
+This appears to be a known gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
+