Version 0.6.2
- include gpio debug module for android
- fix compliation issue and set env variables needed for android
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
diff --git a/powerdebug.c b/powerdebug.c
index cc9e871..073fd42 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -216,6 +216,16 @@
struct powerdebug_options *options;
int ret;
+#ifdef __ANDROID__
+ if (setenv("TERM", "xterm", 1) < 0) {
+ fprintf(stderr, "setenv failure");
+ return 1;
+ }
+ if (setenv("TERMINFO", "/system/etc/terminfo", 1) < 0) {
+ fprintf(stderr, "setenv failure");
+ return 1;
+ }
+#endif
options = powerdebug_init();
if (!options) {
fprintf(stderr, "not enough memory to allocate options\n");