scripts: add copyright notices Change-Id: I2237d63de5c9beb8355b3c6c9a3816b16a0d5fe1
diff --git a/create-kshell-socket-port.sh b/create-kshell-socket-port.sh index 5d42aaa..e2f11dd 100755 --- a/create-kshell-socket-port.sh +++ b/create-kshell-socket-port.sh
@@ -1,4 +1,19 @@ -#! /bin/bash +#!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. + # Create kata shell socket port based on the renode port number as the input # argument.
diff --git a/download_iree_compiler.py b/download_iree_compiler.py index 83fd678..17ced92 100755 --- a/download_iree_compiler.py +++ b/download_iree_compiler.py
@@ -1,4 +1,19 @@ #!/usr/bin/env python3 +# +# Copyright 2022 Google LLC +# +# 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. + """Download IREE host compiler from the snapshot release.""" import errno
diff --git a/download_renode.py b/download_renode.py index 6f9108e..a47dcbb 100755 --- a/download_renode.py +++ b/download_renode.py
@@ -1,4 +1,19 @@ -#! /usr/bin/env python3 +#!/usr/bin/env python3 +# +# Copyright 2022 Google LLC +# +# 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. + """Download and install renode release package.""" import argparse
diff --git a/generate-renode-port-cmd.sh b/generate-renode-port-cmd.sh index 85de006..50b6b34 100755 --- a/generate-renode-port-cmd.sh +++ b/generate-renode-port-cmd.sh
@@ -1,4 +1,19 @@ -#! /bin/bash +#!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. + # Create renode port command for shodan.resc based on the renode port number as # the input argument.
diff --git a/kgdb.sh b/kgdb.sh index b3a745a..7ea4bdb 100755 --- a/kgdb.sh +++ b/kgdb.sh
@@ -1,4 +1,18 @@ -#! /bin/bash +#!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. # Launch gdb talking to a simulator or similar at localhost:3333 #
diff --git a/kshell.sh b/kshell.sh index db49a73..3d173b3 100755 --- a/kshell.sh +++ b/kshell.sh
@@ -1,4 +1,19 @@ -#! /bin/bash +#!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. + # Connect to the kata console shell & optionally tee output # to /tmp/kshell*.log
diff --git a/kupload.sh b/kupload.sh index eca26bd..5c6761d 100755 --- a/kupload.sh +++ b/kupload.sh
@@ -1,4 +1,19 @@ #!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. + # ZMODEM upload to the Kata rz command over the pty simulating the UART sz -O $1 < /tmp/term > /tmp/term
diff --git a/launch_renode.py b/launch_renode.py index 159b791..46cd569 100644 --- a/launch_renode.py +++ b/launch_renode.py
@@ -1,4 +1,18 @@ #!/usr/bin/env python +# +# Copyright 2022 Google LLC +# +# 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 argparse import IPython
diff --git a/quick_sim.py b/quick_sim.py index 730175d..dd92bac 100755 --- a/quick_sim.py +++ b/quick_sim.py
@@ -1,4 +1,19 @@ #!/usr/bin/env python3 +# +# Copyright 2022 Google LLC +# +# 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. + """ quick_sim.py is a tool to quickly launch simulations
diff --git a/run-chip-verilator-sim.sh b/run-chip-verilator-sim.sh index 67ec121..460f1fa 100755 --- a/run-chip-verilator-sim.sh +++ b/run-chip-verilator-sim.sh
@@ -1,4 +1,19 @@ -#! /bin/bash +#!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. + # Run verilator testbench simulation. if [[ $# -lt 5 || $1 == "--help" ]]; then
diff --git a/run-spike-springbok.sh b/run-spike-springbok.sh index 32d0ef8..ed32639 100755 --- a/run-spike-springbok.sh +++ b/run-spike-springbok.sh
@@ -1,4 +1,19 @@ -#! /bin/bash +#!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. + # Run spike simulation on springbok ELFs if [[ -z "${ROOTDIR}" ]]; then
diff --git a/run-vector-simulation.py b/run-vector-simulation.py index 0425711..ecfcb9e 100755 --- a/run-vector-simulation.py +++ b/run-vector-simulation.py
@@ -1,4 +1,18 @@ #!/usr/bin/env python3 +# +# Copyright 2022 Google LLC +# +# 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 argparse import logging
diff --git a/start-renode.sh b/start-renode.sh index c812c61..c79970e 100755 --- a/start-renode.sh +++ b/start-renode.sh
@@ -1,4 +1,18 @@ #!/bin/bash +# +# Copyright 2022 Google LLC +# +# 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. if [[ -z "${ROOTDIR}" ]]; then echo "Source build/setup.sh first"