pw_system: initial commit

- Added docs, and empty build files to get started.

Change-Id: Id3cadabfec7dc172b206e597371b30569e9e2c79
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/72840
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Carlos Chinchilla <cachinchilla@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index ddf6321..dc6528e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -298,6 +298,7 @@
       "$dir_pw_string",
       "$dir_pw_sync",
       "$dir_pw_sys_io",
+      "$dir_pw_system",
       "$dir_pw_thread",
       "$dir_pw_tool",
       "$dir_pw_trace",
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 42838fb..b92964e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,7 @@
 add_subdirectory(pw_sync_stl EXCLUDE_FROM_ALL)
 add_subdirectory(pw_sys_io EXCLUDE_FROM_ALL)
 add_subdirectory(pw_sys_io_stdio EXCLUDE_FROM_ALL)
+add_subdirectory(pw_system EXCLUDE_FROM_ALL)
 add_subdirectory(pw_tokenizer EXCLUDE_FROM_ALL)
 add_subdirectory(pw_trace EXCLUDE_FROM_ALL)
 add_subdirectory(pw_trace_tokenized EXCLUDE_FROM_ALL)
diff --git a/docs/BUILD.gn b/docs/BUILD.gn
index d217631..ccf779e 100644
--- a/docs/BUILD.gn
+++ b/docs/BUILD.gn
@@ -144,6 +144,7 @@
     "$dir_pw_sys_io_baremetal_stm32f429:docs",
     "$dir_pw_sys_io_mcuxpresso:docs",
     "$dir_pw_sys_io_stdio:docs",
+    "$dir_pw_system:docs",
     "$dir_pw_target_runner:docs",
     "$dir_pw_thread:docs",
     "$dir_pw_thread_embos:docs",
diff --git a/modules.gni b/modules.gni
index c1c1151..d2d8929 100644
--- a/modules.gni
+++ b/modules.gni
@@ -105,6 +105,7 @@
   dir_pw_sys_io_arduino = get_path_info("pw_sys_io_arduino", "abspath")
   dir_pw_sys_io_mcuxpresso = get_path_info("pw_sys_io_mcuxpresso", "abspath")
   dir_pw_sys_io_stdio = get_path_info("pw_sys_io_stdio", "abspath")
+  dir_pw_system = get_path_info("pw_system", "abspath")
   dir_pw_target_runner = get_path_info("pw_target_runner", "abspath")
   dir_pw_thread = get_path_info("pw_thread", "abspath")
   dir_pw_thread_stl = get_path_info("pw_thread_stl", "abspath")
diff --git a/pw_system/BUILD.bazel b/pw_system/BUILD.bazel
new file mode 100644
index 0000000..7d19ffe
--- /dev/null
+++ b/pw_system/BUILD.bazel
@@ -0,0 +1,17 @@
+# Copyright 2021 The Pigweed Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#     https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+package(default_visibility = ["//visibility:public"])
+
+licenses(["notice"])
diff --git a/pw_system/BUILD.gn b/pw_system/BUILD.gn
new file mode 100644
index 0000000..9a6699a
--- /dev/null
+++ b/pw_system/BUILD.gn
@@ -0,0 +1,21 @@
+# Copyright 2021 The Pigweed Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#     https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+import("//build_overrides/pigweed.gni")
+
+import("$dir_pw_docgen/docs.gni")
+
+pw_doc_group("docs") {
+  sources = [ "docs.rst" ]
+}
diff --git a/pw_system/CMakeLists.txt b/pw_system/CMakeLists.txt
new file mode 100644
index 0000000..c242726
--- /dev/null
+++ b/pw_system/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Copyright 2021 The Pigweed Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#     https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
diff --git a/pw_system/OWNERS b/pw_system/OWNERS
new file mode 100644
index 0000000..621c582
--- /dev/null
+++ b/pw_system/OWNERS
@@ -0,0 +1,4 @@
+amontanez@google.com
+cachinchilla@google.com
+keir@google.com
+tonymd@google.com
diff --git a/pw_system/docs.rst b/pw_system/docs.rst
new file mode 100644
index 0000000..439ea21
--- /dev/null
+++ b/pw_system/docs.rst
@@ -0,0 +1,7 @@
+.. _module-pw_system:
+
+=========
+pw_system
+=========
+.. warning::
+  Under construction, stay tuned!