Efr32 gn build (#1958)
* Added support for Ninja in EFR32 platform
* Disable -fPIC by default on embedded platforms
This was set in configure.ac as a default, but since embedded platforms
were always overriding CFLAGS that removed it. Fix this in GN so it only
applies to POSIX platforms.
* Format the build files with GN format
* Adjustments to EFR32 GN
* Cleanup build
- Remove unused target
- Update with master
* Fix conflicts
Co-authored-by: Michael Spang <spang@google.com>
diff --git a/gn/build_overrides/efr32_sdk.gni b/gn/build_overrides/efr32_sdk.gni
new file mode 100644
index 0000000..dda4d4d
--- /dev/null
+++ b/gn/build_overrides/efr32_sdk.gni
@@ -0,0 +1,18 @@
+# Copyright (c) 2020 Project CHIP 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
+#
+# http://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.
+
+declare_args() {
+ # Root directory for efr32 SDK build files.
+ efr32_sdk_build_root = "//third_party/efr32_sdk"
+}