fixed lots of not-thread-safe things
Most of the things I fixed here were using libc functions that are
fundamentally not thread-safe.
diff --git a/bbb_cape/src/flasher/flasher.gyp b/bbb_cape/src/flasher/flasher.gyp
index fba1477..09e4ccf 100644
--- a/bbb_cape/src/flasher/flasher.gyp
+++ b/bbb_cape/src/flasher/flasher.gyp
@@ -19,6 +19,7 @@
'<(DEPTH)/bbb_cape/src/bbb/bbb.gyp:gpios',
'<(DEPTH)/bbb_cape/src/bbb/bbb.gyp:export_uart',
'<(AOS)/common/common.gyp:time',
+ '<(AOS)/common/libc/libc.gyp:dirname',
],
},
],