From 9fd690efb303ecc5dfc80d2f5806bff5d8b0ee5d Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Wed, 4 Jul 2018 15:52:22 +0100 Subject: [PATCH] Update copyrights - Update the year in the copyrights to match the last year the file was modified. - Add the copyright header to files that did not already have one. --- devlib/__init__.py | 15 +++++++++++++++ devlib/derived/__init__.py | 2 +- devlib/derived/energy.py | 2 +- devlib/derived/fps.py | 15 +++++++++++++++ devlib/exception.py | 2 +- devlib/host.py | 2 +- devlib/instrument/acmecape.py | 15 +++++++++++++++ devlib/instrument/arm_energy_probe.py | 15 +++++++++++++++ devlib/instrument/daq.py | 15 +++++++++++++++ devlib/instrument/energy_probe.py | 2 +- devlib/instrument/frames.py | 15 +++++++++++++++ devlib/instrument/gem5power.py | 2 +- devlib/instrument/hwmon.py | 2 +- devlib/instrument/monsoon.py | 15 +++++++++++++++ devlib/instrument/netstats/__init__.py | 15 +++++++++++++++ devlib/module/__init__.py | 2 +- devlib/module/android.py | 2 +- devlib/module/biglittle.py | 15 +++++++++++++++ devlib/module/cgroups.py | 2 +- devlib/module/cpufreq.py | 2 +- devlib/module/cpuidle.py | 2 +- devlib/module/gem5stats.py | 2 +- devlib/module/gpufreq.py | 15 +++++++++++++++ devlib/module/hotplug.py | 15 +++++++++++++++ devlib/module/hwmon.py | 2 +- devlib/module/sched.py | 15 +++++++++++++++ devlib/module/thermal.py | 2 +- devlib/module/vexpress.py | 2 +- devlib/platform/__init__.py | 15 +++++++++++++++ devlib/platform/arm.py | 2 +- devlib/platform/gem5.py | 2 +- devlib/target.py | 15 +++++++++++++++ devlib/trace/__init__.py | 15 +++++++++++++++ devlib/trace/ftrace.py | 2 +- devlib/trace/logcat.py | 15 +++++++++++++++ devlib/trace/serial_trace.py | 15 +++++++++++++++ devlib/trace/systrace.py | 15 +++++++++++++++ devlib/utils/android.py | 2 +- devlib/utils/csvutil.py | 15 +++++++++++++++ devlib/utils/gem5.py | 2 +- devlib/utils/misc.py | 2 +- devlib/utils/parse_aep.py | 15 +++++++++++++++ devlib/utils/rendering.py | 15 +++++++++++++++ devlib/utils/serial_port.py | 2 +- devlib/utils/ssh.py | 2 +- devlib/utils/types.py | 2 +- devlib/utils/uefi.py | 2 +- devlib/utils/version.py | 15 +++++++++++++++ 48 files changed, 356 insertions(+), 26 deletions(-) diff --git a/devlib/__init__.py b/devlib/__init__.py index a6b4647..f0773f1 100644 --- a/devlib/__init__.py +++ b/devlib/__init__.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + from devlib.target import Target, LinuxTarget, AndroidTarget, LocalLinuxTarget, ChromeOsTarget from devlib.host import PACKAGE_BIN_DIRECTORY from devlib.exception import DevlibError, TargetError, HostError, TargetNotRespondingError diff --git a/devlib/derived/__init__.py b/devlib/derived/__init__.py index 24ac060..43cba29 100644 --- a/devlib/derived/__init__.py +++ b/devlib/derived/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2017 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/derived/energy.py b/devlib/derived/energy.py index 205c9d2..5091efc 100644 --- a/devlib/derived/energy.py +++ b/devlib/derived/energy.py @@ -1,4 +1,4 @@ -# Copyright 2013-2015 ARM Limited +# Copyright 2013-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/derived/fps.py b/devlib/derived/fps.py index 86ba4c6..69182f3 100644 --- a/devlib/derived/fps.py +++ b/devlib/derived/fps.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + from __future__ import division import os import re diff --git a/devlib/exception.py b/devlib/exception.py index 1a2c994..ea5e518 100644 --- a/devlib/exception.py +++ b/devlib/exception.py @@ -1,4 +1,4 @@ -# Copyright 2013-2015 ARM Limited +# Copyright 2013-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/host.py b/devlib/host.py index 8062d24..9d84bec 100644 --- a/devlib/host.py +++ b/devlib/host.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2017 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/instrument/acmecape.py b/devlib/instrument/acmecape.py index cc47d6d..adeba5a 100644 --- a/devlib/instrument/acmecape.py +++ b/devlib/instrument/acmecape.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + #pylint: disable=attribute-defined-outside-init from __future__ import division import os diff --git a/devlib/instrument/arm_energy_probe.py b/devlib/instrument/arm_energy_probe.py index 4438f20..bdfaadb 100644 --- a/devlib/instrument/arm_energy_probe.py +++ b/devlib/instrument/arm_energy_probe.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + # Copyright 2018 Linaro Limited # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/devlib/instrument/daq.py b/devlib/instrument/daq.py index efc9b11..2fb8468 100644 --- a/devlib/instrument/daq.py +++ b/devlib/instrument/daq.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import os import tempfile from itertools import chain diff --git a/devlib/instrument/energy_probe.py b/devlib/instrument/energy_probe.py index a817369..9dfb3ea 100644 --- a/devlib/instrument/energy_probe.py +++ b/devlib/instrument/energy_probe.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/instrument/frames.py b/devlib/instrument/frames.py index a2e06b3..a72d383 100644 --- a/devlib/instrument/frames.py +++ b/devlib/instrument/frames.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + from __future__ import division from devlib.instrument import (Instrument, CONTINUOUS, MeasurementsCsv, MeasurementType) diff --git a/devlib/instrument/gem5power.py b/devlib/instrument/gem5power.py index 2877777..140c02d 100644 --- a/devlib/instrument/gem5power.py +++ b/devlib/instrument/gem5power.py @@ -1,4 +1,4 @@ -# Copyright 2017 ARM Limited +# Copyright 2017-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/instrument/hwmon.py b/devlib/instrument/hwmon.py index 5a9d8af..72fb2ec 100644 --- a/devlib/instrument/hwmon.py +++ b/devlib/instrument/hwmon.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2017 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/instrument/monsoon.py b/devlib/instrument/monsoon.py index d0a8053..b983c42 100644 --- a/devlib/instrument/monsoon.py +++ b/devlib/instrument/monsoon.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import os import signal import sys diff --git a/devlib/instrument/netstats/__init__.py b/devlib/instrument/netstats/__init__.py index ceac1fd..2b29f93 100644 --- a/devlib/instrument/netstats/__init__.py +++ b/devlib/instrument/netstats/__init__.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import os import re import tempfile diff --git a/devlib/module/__init__.py b/devlib/module/__init__.py index 9804350..15dec73 100644 --- a/devlib/module/__init__.py +++ b/devlib/module/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/android.py b/devlib/module/android.py index d5e7237..d939bba 100644 --- a/devlib/module/android.py +++ b/devlib/module/android.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/biglittle.py b/devlib/module/biglittle.py index e353229..69e8242 100644 --- a/devlib/module/biglittle.py +++ b/devlib/module/biglittle.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + from devlib.module import Module diff --git a/devlib/module/cgroups.py b/devlib/module/cgroups.py index 97fee8d..22f212e 100644 --- a/devlib/module/cgroups.py +++ b/devlib/module/cgroups.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/cpufreq.py b/devlib/module/cpufreq.py index 6272586..be11032 100644 --- a/devlib/module/cpufreq.py +++ b/devlib/module/cpufreq.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/cpuidle.py b/devlib/module/cpuidle.py index ba1b81b..d178959 100644 --- a/devlib/module/cpuidle.py +++ b/devlib/module/cpuidle.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/gem5stats.py b/devlib/module/gem5stats.py index 42fb4fa..7a1ad45 100644 --- a/devlib/module/gem5stats.py +++ b/devlib/module/gem5stats.py @@ -1,4 +1,4 @@ -# Copyright 2017 ARM Limited +# Copyright 2017-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/gpufreq.py b/devlib/module/gpufreq.py index 4ce6600..2acc20c 100644 --- a/devlib/module/gpufreq.py +++ b/devlib/module/gpufreq.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + # Copyright 2017 Google, ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/devlib/module/hotplug.py b/devlib/module/hotplug.py index cfce2e5..5baef2f 100644 --- a/devlib/module/hotplug.py +++ b/devlib/module/hotplug.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + from devlib.module import Module diff --git a/devlib/module/hwmon.py b/devlib/module/hwmon.py index 7cf4757..ed77cc1 100644 --- a/devlib/module/hwmon.py +++ b/devlib/module/hwmon.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/sched.py b/devlib/module/sched.py index 3501dea..afcc68c 100644 --- a/devlib/module/sched.py +++ b/devlib/module/sched.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + # Copyright 2018 Arm Limited # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/devlib/module/thermal.py b/devlib/module/thermal.py index 9bd738d..69b7bd3 100644 --- a/devlib/module/thermal.py +++ b/devlib/module/thermal.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/module/vexpress.py b/devlib/module/vexpress.py index 9794f67..6eda03b 100644 --- a/devlib/module/vexpress.py +++ b/devlib/module/vexpress.py @@ -1,5 +1,5 @@ # -# Copyright 2015 ARM Limited +# Copyright 2015-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/platform/__init__.py b/devlib/platform/__init__.py index cac872d..3fdc775 100644 --- a/devlib/platform/__init__.py +++ b/devlib/platform/__init__.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import logging diff --git a/devlib/platform/arm.py b/devlib/platform/arm.py index f3ee326..58b030c 100644 --- a/devlib/platform/arm.py +++ b/devlib/platform/arm.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/platform/gem5.py b/devlib/platform/gem5.py index f98f090..15bc93b 100644 --- a/devlib/platform/gem5.py +++ b/devlib/platform/gem5.py @@ -1,4 +1,4 @@ -# Copyright 2016 ARM Limited +# Copyright 2016-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/target.py b/devlib/target.py index 81b38b6..81a76b3 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import os import re import time diff --git a/devlib/trace/__init__.py b/devlib/trace/__init__.py index 5eeb939..d55e9cf 100644 --- a/devlib/trace/__init__.py +++ b/devlib/trace/__init__.py @@ -1,3 +1,18 @@ +# Copyright 2015 ARM Limited +# +# 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. +# + import logging diff --git a/devlib/trace/ftrace.py b/devlib/trace/ftrace.py index 8e62ffa..ee7ebf2 100644 --- a/devlib/trace/ftrace.py +++ b/devlib/trace/ftrace.py @@ -1,4 +1,4 @@ -# Copyright 2015 ARM Limited +# Copyright 2015-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/trace/logcat.py b/devlib/trace/logcat.py index 1372d7a..c135fec 100644 --- a/devlib/trace/logcat.py +++ b/devlib/trace/logcat.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import os import re import shutil diff --git a/devlib/trace/serial_trace.py b/devlib/trace/serial_trace.py index 6f3b3e4..6db813c 100644 --- a/devlib/trace/serial_trace.py +++ b/devlib/trace/serial_trace.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + from pexpect.exceptions import TIMEOUT import shutil from tempfile import NamedTemporaryFile diff --git a/devlib/trace/systrace.py b/devlib/trace/systrace.py index 7c72549..a650fb3 100644 --- a/devlib/trace/systrace.py +++ b/devlib/trace/systrace.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + # Copyright 2018 Arm Limited # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/devlib/utils/android.py b/devlib/utils/android.py index 4b43808..1c0c9cb 100755 --- a/devlib/utils/android.py +++ b/devlib/utils/android.py @@ -1,4 +1,4 @@ -# Copyright 2013-2015 ARM Limited +# Copyright 2013-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/utils/csvutil.py b/devlib/utils/csvutil.py index 5984b79..2cb1212 100644 --- a/devlib/utils/csvutil.py +++ b/devlib/utils/csvutil.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + ''' Due to the change in the nature of "binary mode" when opening files in Python 3, the way files need to be opened for ``csv.reader`` and ``csv.writer`` diff --git a/devlib/utils/gem5.py b/devlib/utils/gem5.py index d3b2f66..58c6226 100644 --- a/devlib/utils/gem5.py +++ b/devlib/utils/gem5.py @@ -1,4 +1,4 @@ -# Copyright 2017 ARM Limited +# Copyright 2017-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/utils/misc.py b/devlib/utils/misc.py index dde6755..ff42020 100644 --- a/devlib/utils/misc.py +++ b/devlib/utils/misc.py @@ -1,4 +1,4 @@ -# Copyright 2013-2015 ARM Limited +# Copyright 2013-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/utils/parse_aep.py b/devlib/utils/parse_aep.py index a3abe52..e59f26e 100755 --- a/devlib/utils/parse_aep.py +++ b/devlib/utils/parse_aep.py @@ -1,4 +1,19 @@ #!/usr/bin/env python +# Copyright 2018 ARM Limited +# +# 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. +# + # Copyright 2018 Linaro Limited # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/devlib/utils/rendering.py b/devlib/utils/rendering.py index 24cca56..30ea679 100644 --- a/devlib/utils/rendering.py +++ b/devlib/utils/rendering.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import logging import os import re diff --git a/devlib/utils/serial_port.py b/devlib/utils/serial_port.py index ba416dc..82f520d 100644 --- a/devlib/utils/serial_port.py +++ b/devlib/utils/serial_port.py @@ -1,4 +1,4 @@ -# Copyright 2013-2015 ARM Limited +# Copyright 2013-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/utils/ssh.py b/devlib/utils/ssh.py index 9daa380..3f4c93f 100644 --- a/devlib/utils/ssh.py +++ b/devlib/utils/ssh.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/utils/types.py b/devlib/utils/types.py index 48647ba..c806f60 100644 --- a/devlib/utils/types.py +++ b/devlib/utils/types.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/utils/uefi.py b/devlib/utils/uefi.py index 9a9d05b..e02ed39 100644 --- a/devlib/utils/uefi.py +++ b/devlib/utils/uefi.py @@ -1,4 +1,4 @@ -# Copyright 2014-2015 ARM Limited +# Copyright 2014-2018 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/devlib/utils/version.py b/devlib/utils/version.py index 1669a6e..2830630 100644 --- a/devlib/utils/version.py +++ b/devlib/utils/version.py @@ -1,3 +1,18 @@ +# Copyright 2018 ARM Limited +# +# 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. +# + import os import sys from subprocess import Popen, PIPE