Relicense Hafnium under the BSD 3 clause license.
Updates to the rest of the links in the documentation will follow in a
separate patch.
Change-Id: I52e35dad8fa12be48df5459a5fc8521adc53d55b
Signed-off-by: Andrew Walbran <qwandor@google.com>
diff --git a/build/BUILD.gn b/build/BUILD.gn
index ed5119d..6da8954 100644
--- a/build/BUILD.gn
+++ b/build/BUILD.gn
@@ -1,16 +1,8 @@
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
import("//build/toolchain/platform.gni")
diff --git a/build/BUILDCONFIG.gn b/build/BUILDCONFIG.gn
index d888563..1acb46d 100644
--- a/build/BUILDCONFIG.gn
+++ b/build/BUILDCONFIG.gn
@@ -1,16 +1,8 @@
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
# Configuration of the build toolchain.
declare_args() {
diff --git a/build/bash/common.inc b/build/bash/common.inc
index 821da0c..f7bfc6c 100644
--- a/build/bash/common.inc
+++ b/build/bash/common.inc
@@ -1,16 +1,8 @@
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
# Fail on any error.
set -e
diff --git a/build/bash/symlink_repo.py b/build/bash/symlink_repo.py
index eefa46b..e57d896 100755
--- a/build/bash/symlink_repo.py
+++ b/build/bash/symlink_repo.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Parse Repo manifest and symlink files specified in <linkfile> tags.
diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile
index 1d4a3d5..eb9cb3e 100644
--- a/build/docker/Dockerfile
+++ b/build/docker/Dockerfile
@@ -1,16 +1,8 @@
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
#
# Base container image to be uploaded to Google Cloud Platform as
diff --git a/build/docker/Dockerfile.local b/build/docker/Dockerfile.local
index 67eb92f..4af45ca 100644
--- a/build/docker/Dockerfile.local
+++ b/build/docker/Dockerfile.local
@@ -1,16 +1,8 @@
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
#
# Container derived from the base image hosted on Google Cloud Platform.
diff --git a/build/docker/build.sh b/build/docker/build.sh
index 7d1b8bf..3dae71a 100755
--- a/build/docker/build.sh
+++ b/build/docker/build.sh
@@ -1,17 +1,9 @@
#!/usr/bin/env bash
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
set -euo pipefail
diff --git a/build/docker/common.inc b/build/docker/common.inc
index 0d1e1db..805aa3a 100644
--- a/build/docker/common.inc
+++ b/build/docker/common.inc
@@ -1,16 +1,8 @@
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
CONTAINER_TAG="eu.gcr.io/hafnium-build/hafnium_ci"
diff --git a/build/docker/publish.sh b/build/docker/publish.sh
index bc8b1a8..edd8a28 100755
--- a/build/docker/publish.sh
+++ b/build/docker/publish.sh
@@ -1,17 +1,9 @@
#!/usr/bin/env bash
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
set -euo pipefail
diff --git a/build/image/check_elf.py b/build/image/check_elf.py
index a949e72..1c7fb63 100644
--- a/build/image/check_elf.py
+++ b/build/image/check_elf.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Check ELF file for assembly-level regressions.
diff --git a/build/image/convert_to_binary.py b/build/image/convert_to_binary.py
index 978d359..1a81e32 100644
--- a/build/image/convert_to_binary.py
+++ b/build/image/convert_to_binary.py
@@ -2,17 +2,9 @@
#
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Convert a file to binary format.
diff --git a/build/image/dtc.py b/build/image/dtc.py
index c0caff8..d077818 100755
--- a/build/image/dtc.py
+++ b/build/image/dtc.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Wrapper around Device Tree Compiler (dtc)"""
diff --git a/build/image/generate_initrd.py b/build/image/generate_initrd.py
index 901bc68..d5e94be 100644
--- a/build/image/generate_initrd.py
+++ b/build/image/generate_initrd.py
@@ -2,17 +2,9 @@
#
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Generate an initial RAM disk for the hypervisor.
diff --git a/build/image/generate_linux_initrd.py b/build/image/generate_linux_initrd.py
index c93e19a..a9c65fe 100644
--- a/build/image/generate_linux_initrd.py
+++ b/build/image/generate_linux_initrd.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Generate an initial RAM disk for a Linux VM."""
diff --git a/build/image/image.gni b/build/image/image.gni
index 8004a8b..02343b7 100644
--- a/build/image/image.gni
+++ b/build/image/image.gni
@@ -1,16 +1,8 @@
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
import("//build/toolchain/embedded.gni")
import("//build/toolchain/platform.gni")
diff --git a/build/image/image.ld b/build/image/image.ld
index ec5f316..97b1f88 100644
--- a/build/image/image.ld
+++ b/build/image/image.ld
@@ -1,17 +1,9 @@
/*
* Copyright 2018 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.
+ * Use of this source code is governed by a BSD-style
+ * license that can be found in the LICENSE file or at
+ * https://opensource.org/licenses/BSD-3-Clause.
*/
/*
diff --git a/build/image/incbin.S b/build/image/incbin.S
index 9a19d87..c46ba1f 100644
--- a/build/image/incbin.S
+++ b/build/image/incbin.S
@@ -1,17 +1,9 @@
/*
* 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.
+ * Use of this source code is governed by a BSD-style
+ * license that can be found in the LICENSE file or at
+ * https://opensource.org/licenses/BSD-3-Clause.
*/
.section SECTION_NAME, "a"
diff --git a/build/license.py b/build/license.py
index ee1b5e9..545eb29 100644
--- a/build/license.py
+++ b/build/license.py
@@ -2,17 +2,9 @@
#
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Add license header to source files.
@@ -26,19 +18,11 @@
import sys
-apache2 = """{comment} Copyright {year} The Hafnium Authors.
+bsd = """{comment} Copyright {year} The Hafnium Authors.
{comment}
-{comment} Licensed under the Apache License, Version 2.0 (the "License");
-{comment} you may not use this file except in compliance with the License.
-{comment} You may obtain a copy of the License at
-{comment}
-{comment} https://www.apache.org/licenses/LICENSE-2.0
-{comment}
-{comment} Unless required by applicable law or agreed to in writing, software
-{comment} distributed under the License is distributed on an "AS IS" BASIS,
-{comment} WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-{comment} See the License for the specific language governing permissions and
-{comment} limitations under the License."""
+{comment} Use of this source code is governed by a BSD-style
+{comment} license that can be found in the LICENSE file or at
+{comment} https://opensource.org/licenses/BSD-3-Clause."""
def Main():
parser = argparse.ArgumentParser()
@@ -47,7 +31,7 @@
args = parser.parse_args()
header = "/*\n" if args.style == "c" else ""
year = str(datetime.datetime.now().year)
- header += apache2.format(comment=" *" if args.style == "c" else "#", year=year)
+ header += bsd.format(comment=" *" if args.style == "c" else "#", year=year)
header += "\n */" if args.style == "c" else ""
header += "\n\n"
header_regex = re.escape(header).replace(year, r"\d\d\d\d")
diff --git a/build/linux/copy_dirs.py b/build/linux/copy_dirs.py
index 3e8ccf6..ecb4eaf 100644
--- a/build/linux/copy_dirs.py
+++ b/build/linux/copy_dirs.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Copies all files inside one folder to another, preserving subfolders."""
diff --git a/build/linux/gen_depfile.py b/build/linux/gen_depfile.py
index 12fbd51..3e94e8d 100755
--- a/build/linux/gen_depfile.py
+++ b/build/linux/gen_depfile.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Generate a depfile for a folder."""
diff --git a/build/linux/linux.gni b/build/linux/linux.gni
index 952bedc..65cc9df 100644
--- a/build/linux/linux.gni
+++ b/build/linux/linux.gni
@@ -1,16 +1,8 @@
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
template("source_dir") {
action("${target_name}") {
diff --git a/build/make.py b/build/make.py
index 15cce9b..f12f3e6 100644
--- a/build/make.py
+++ b/build/make.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Runs make to build a target."""
diff --git a/build/parse_strace_open.py b/build/parse_strace_open.py
index a971220..9fb942c 100755
--- a/build/parse_strace_open.py
+++ b/build/parse_strace_open.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Script which parses the output of `strace` and dumping a list of files
that were touched by the traced processes outside of whitelisted folders.
diff --git a/build/run_in_container.sh b/build/run_in_container.sh
index 1cc3512..860b38a 100755
--- a/build/run_in_container.sh
+++ b/build/run_in_container.sh
@@ -1,17 +1,9 @@
#!/usr/bin/env bash
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
set -euo pipefail
diff --git a/build/strace_open.sh b/build/strace_open.sh
index e69a72d..95ee24f 100755
--- a/build/strace_open.sh
+++ b/build/strace_open.sh
@@ -1,17 +1,9 @@
#!/usr/bin/env bash
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
set -euxo pipefail
diff --git a/build/toolchain/BUILD.gn b/build/toolchain/BUILD.gn
index 3a84156..13843e4 100644
--- a/build/toolchain/BUILD.gn
+++ b/build/toolchain/BUILD.gn
@@ -1,16 +1,8 @@
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
import("//build/toolchain/embedded.gni")
import("//build/toolchain/host.gni")
diff --git a/build/toolchain/embedded.gni b/build/toolchain/embedded.gni
index 7115956..066d1b5 100644
--- a/build/toolchain/embedded.gni
+++ b/build/toolchain/embedded.gni
@@ -1,16 +1,8 @@
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
declare_args() {
# Set by arch toolchain. Prefix for binutils tools.
diff --git a/build/toolchain/gen_offset_size_header.py b/build/toolchain/gen_offset_size_header.py
index 31baa24..d05bbb4 100755
--- a/build/toolchain/gen_offset_size_header.py
+++ b/build/toolchain/gen_offset_size_header.py
@@ -2,17 +2,9 @@
#
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
"""Generate a header file with definitions of constants parsed from a binary."""
diff --git a/build/toolchain/host.gni b/build/toolchain/host.gni
index feffa11..2a1d06b 100644
--- a/build/toolchain/host.gni
+++ b/build/toolchain/host.gni
@@ -1,16 +1,8 @@
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
# Template for host toolchains.
template("host_cc_toolchain") {
diff --git a/build/toolchain/offset_size_header.gni b/build/toolchain/offset_size_header.gni
index b409284..a290914 100644
--- a/build/toolchain/offset_size_header.gni
+++ b/build/toolchain/offset_size_header.gni
@@ -1,16 +1,8 @@
# 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
# This template auto-generate a C header file with "#define" constants, e.g.
# struct sizes and member offsets.
diff --git a/build/toolchain/platform.gni b/build/toolchain/platform.gni
index 6f4df04..33e01c2 100644
--- a/build/toolchain/platform.gni
+++ b/build/toolchain/platform.gni
@@ -1,16 +1,8 @@
# Copyright 2018 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.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://opensource.org/licenses/BSD-3-Clause.
# Configuration of the build for the platform.
declare_args() {