Converted more stuff to bazel.

Change-Id: I18c4d5c38cc810086d00479962c1b3f16203a252
diff --git a/aos/linux_code/BUILD b/aos/linux_code/BUILD
new file mode 100644
index 0000000..7305bc7
--- /dev/null
+++ b/aos/linux_code/BUILD
@@ -0,0 +1,70 @@
+package(default_visibility = ['//visibility:public'])
+
+cc_binary(
+  name = 'dump_rtprio',
+  srcs = [
+    'dump_rtprio.cc',
+  ],
+  deps = [
+    '//aos/common/logging:logging',
+    '//aos/common:time',
+  ],
+)
+
+cc_library(
+  name = 'complex_thread_local',
+  srcs = [
+    'complex_thread_local.cc'
+  ],
+  deps = [
+    '//aos/common:once',
+    '//aos/common:die',
+  ],
+)
+
+cc_test(
+  name = 'complex_thread_local_test',
+  srcs = [
+    'complex_thread_local_test.cc',
+  ],
+  deps = [
+    ':complex_thread_local',
+    '//third_party/gtest',
+    '//aos/common/util:thread',
+    '//aos/common/logging:logging',
+  ],
+)
+
+cc_library(
+  name = 'init',
+  srcs = [
+    'init.cc',
+  ],
+  deps = [
+    '//aos/linux_code/ipc_lib:shared_mem',
+    '//aos/common:die',
+    '//aos/common/logging:logging',
+  ],
+)
+
+cc_library(
+  name = 'configuration',
+  src = [
+    'configuration.cc',
+  ],
+  deps = [
+    '//aos/common:once',
+    '//aos/common/logging:logging',
+  ],
+)
+
+cc_binary(
+  name = 'core',
+  srcs = [
+    'core.cc',
+  ],
+  deps = [
+    ':init',
+    '//aos/common/util:run_command',
+  ],
+)
diff --git a/aos/linux_code/linux_code.gyp b/aos/linux_code/linux_code.gyp
index 59f5d27..c8ea24c 100644
--- a/aos/linux_code/linux_code.gyp
+++ b/aos/linux_code/linux_code.gyp
@@ -1,3 +1,4 @@
+# Converted to bazel
 {
   'targets': [
     {
diff --git a/aos/linux_code/logging/BUILD b/aos/linux_code/logging/BUILD
new file mode 100644
index 0000000..fbd153f
--- /dev/null
+++ b/aos/linux_code/logging/BUILD
@@ -0,0 +1,60 @@
+package(default_visibility = ['//visibility:public'])
+
+cc_library(
+  name = 'linux_interface',
+  srcs = [
+    'linux_interface.cc',
+  ],
+  deps = [
+    '//aos/linux_code:complex_thread_local',
+    '//aos/common:die',
+    '//aos/common/libc:aos_strerror',
+  ],
+)
+
+cc_library(
+  name = 'linux_logging',
+  srcs = [
+    'linux_logging.cc',
+  ],
+  deps = [
+    '//aos/linux_code/ipc_lib:queue',
+    '//aos/common:time',
+  ],
+)
+
+cc_test(
+  name = 'logging_impl_test',
+  srcs = [
+    'logging_impl_test.cc',
+  ],
+  deps = [
+    '//third_party/gtest',
+    '//aos/common/logging:logging',
+  ],
+)
+
+cc_library(
+  name = 'queue_logging',
+  srcs = [
+    'queue_logging.cc',
+  ],
+  deps = [
+    '//aos/common/logging:logging',
+    '//aos/common:die',
+    '//aos/common:queue_types',
+  ],
+)
+
+cc_library(
+  name = 'matrix_logging',
+  srcs = [
+    'matrix_logging.cc',
+  ],
+  deps = [
+    '//aos/common/logging:logging',
+    '//aos/common:die',
+    '//aos/common:queue_types',
+    '//third_party/eigen',
+  ],
+)