Make code deploy more cleanly
This makes it so that the code will actually start on boot and puts the
log_fbs_shmem binary into the robot_code folder.
Change-Id: I46900154e73c03514648cb23a8befe2cf478d967
diff --git a/aos/BUILD b/aos/BUILD
index 57c6b1e..7882244 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -28,6 +28,7 @@
"//aos:core",
"//aos/logging:log_streamer.stripped",
"//aos/logging:log_displayer.stripped",
+ "//aos:log_fbs_shmem.stripped",
"//aos/starter",
],
visibility = ["//visibility:public"],
diff --git a/aos/log_fbs_shmem.cc b/aos/log_fbs_shmem.cc
index c2ed056..e7d9d7c 100644
--- a/aos/log_fbs_shmem.cc
+++ b/aos/log_fbs_shmem.cc
@@ -25,6 +25,7 @@
const aos::Configuration *config_msg = &config.message();
::aos::ShmEventLoop event_loop(config_msg);
+ event_loop.SkipTimingReport();
if (argc == 1) {
std::cout << "Channels:\n";
diff --git a/aos/starter/starter.sh b/aos/starter/starter.sh
index b81bf62..cbbc09c 100755
--- a/aos/starter/starter.sh
+++ b/aos/starter/starter.sh
@@ -3,7 +3,9 @@
# NI already has a core pattern, so we probably shouldn't change it.
#echo '/home/driver/tmp/robot_logs/%e-%s-%p-%t.coredump' > /proc/sys/kernel/core_pattern
+ROBOT_CODE=/home/admin/robot_code
+cd $ROBOT_CODE
while true; do
- export PATH=$PATH:/home/admin/robot_code
- starter_exe /home/admin/robot_code/start_list.txt
+ export PATH=$PATH:$ROBOT_CODE
+ starter_exe $ROBOT_CODE/start_list.txt
done