summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2019-12-23 14:11:19 +0000
committerDavid Brazdil <dbrazdil@google.com>2019-12-23 14:13:49 +0000
commit81b90698b40fdcdd886e733a597ced435bd108b9 (patch)
tree41a59c7b65e7f66e121b356a0c661756e29a1dbe
parent9abce277b3963472481d1068b98d502fe42d792c (diff)
downloadlinux-81b90698b40fdcdd886e733a597ced435bd108b9.tar.gz
Add BUILD.gn
Move the build config file into the driver/linux repository. This is useful for removing a symlink in repo-based builds. Change-Id: I5e73eebac60a943d2ba281ff8754182ae99ceaf4
-rw-r--r--BUILD.gn21
1 files changed, 21 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
new file mode 100644
index 0000000..6c7d688
--- /dev/null
+++ b/BUILD.gn
@@ -0,0 +1,21 @@
+# Copyright 2019 The Hafnium 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/linux/linux.gni")
+
+linux_kernel_module("linux") {
+ module_name = "hafnium"
+ kernel_target = "//third_party/linux:linux"
+ kernel_dir = "//third_party/linux"
+}