diff options
author | David B. Kinder <david.b.kinder@intel.com> | 2017-01-18 17:01:01 -0800 |
---|---|---|
committer | Kumar Gala <kumar.gala@linaro.org> | 2017-01-19 03:50:58 +0000 |
commit | ac74d8b652f602198fbcc9425029fd09caf73052 (patch) | |
tree | b4116314ec004c89307974e781ed8ae65db5757a /samples/legacy | |
parent | 811b3710ba493f018c29af1280b3d877c05483c4 (diff) |
license: Replace Apache boilerplate with SPDX tag
Replace the existing Apache 2.0 boilerplate header with an SPDX tag
throughout the zephyr code tree. This patch was generated via a
script run over the master branch.
Also updated doc/porting/application.rst that had a dependency on
line numbers in a literal include.
Manually updated subsys/logging/sys_log.c that had a malformed
header in the original file. Also cleanup several cases that already
had a SPDX tag and we either got a duplicate or missed updating.
Jira: ZEP-1457
Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'samples/legacy')
20 files changed, 20 insertions, 220 deletions
diff --git a/samples/legacy/cpp_synchronization/microkernel/src/main.cpp b/samples/legacy/cpp_synchronization/microkernel/src/main.cpp index 59e46323b..3b7865adb 100644 --- a/samples/legacy/cpp_synchronization/microkernel/src/main.cpp +++ b/samples/legacy/cpp_synchronization/microkernel/src/main.cpp @@ -1,17 +1,7 @@ /* * Copyright (c) 2015-2016 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/samples/legacy/cpp_synchronization/nanokernel/src/main.cpp b/samples/legacy/cpp_synchronization/nanokernel/src/main.cpp index e28e1f97d..83ab59efb 100644 --- a/samples/legacy/cpp_synchronization/nanokernel/src/main.cpp +++ b/samples/legacy/cpp_synchronization/nanokernel/src/main.cpp @@ -1,17 +1,7 @@ /* * Copyright (c) 2015-2016 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/samples/legacy/kernel_event_logger/microkernel/src/kernel_event_collector_sample.c b/samples/legacy/kernel_event_logger/microkernel/src/kernel_event_collector_sample.c index cd76e48fd..57fe91fe3 100644 --- a/samples/legacy/kernel_event_logger/microkernel/src/kernel_event_collector_sample.c +++ b/samples/legacy/kernel_event_logger/microkernel/src/kernel_event_collector_sample.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2015 Intel Corporation * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> diff --git a/samples/legacy/philosophers/microkernel/src/phil.h b/samples/legacy/philosophers/microkernel/src/phil.h index 155c5a4de..e2b7a9b02 100644 --- a/samples/legacy/philosophers/microkernel/src/phil.h +++ b/samples/legacy/philosophers/microkernel/src/phil.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2011-2014 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #if defined(CONFIG_STDOUT_CONSOLE) #include <stdio.h> diff --git a/samples/legacy/philosophers/microkernel/src/phil_fiber.c b/samples/legacy/philosophers/microkernel/src/phil_fiber.c index 54df48f6b..83d035e06 100644 --- a/samples/legacy/philosophers/microkernel/src/phil_fiber.c +++ b/samples/legacy/philosophers/microkernel/src/phil_fiber.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2011-2015 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include "phil.h" diff --git a/samples/legacy/philosophers/microkernel/src/phil_task.c b/samples/legacy/philosophers/microkernel/src/phil_task.c index 8b743a708..773f7b66e 100644 --- a/samples/legacy/philosophers/microkernel/src/phil_task.c +++ b/samples/legacy/philosophers/microkernel/src/phil_task.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2011-2014 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> diff --git a/samples/legacy/synchronization/microkernel/src/main.c b/samples/legacy/synchronization/microkernel/src/main.c index 821bcf94b..7d2e2fa7c 100644 --- a/samples/legacy/synchronization/microkernel/src/main.c +++ b/samples/legacy/synchronization/microkernel/src/main.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2012-2014 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> diff --git a/samples/legacy/synchronization/nanokernel/src/main.c b/samples/legacy/synchronization/nanokernel/src/main.c index ab9cda71a..6b333bd92 100644 --- a/samples/legacy/synchronization/nanokernel/src/main.c +++ b/samples/legacy/synchronization/nanokernel/src/main.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2012-2014 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> diff --git a/samples/legacy/task_profiler/microkernel/src/hello.c b/samples/legacy/task_profiler/microkernel/src/hello.c index 4e4d6dc97..28d354f52 100644 --- a/samples/legacy/task_profiler/microkernel/src/hello.c +++ b/samples/legacy/task_profiler/microkernel/src/hello.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2012-2014 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> diff --git a/samples/legacy/task_profiler/nanokernel/src/hello.c b/samples/legacy/task_profiler/nanokernel/src/hello.c index f36aa9a8e..2b2987c22 100644 --- a/samples/legacy/task_profiler/nanokernel/src/hello.c +++ b/samples/legacy/task_profiler/nanokernel/src/hello.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2012-2014 Wind River Systems, Inc. * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py index b9ca3cf93..d59bea8cf 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_parse.py @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation. # -# 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. +# SPDX-License-Identifier: Apache-2.0 # import os, sys, re diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py index 3b11568db..84f7f5a59 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_run.py @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation. # -# 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. +# SPDX-License-Identifier: Apache-2.0 # # A S ==> R B, A goes to sleep state, A runtime is timestamp_switch - previous_timestamp. diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py index 08e4006bc..c7829e0bf 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_timeslice.py @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation. # -# 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. +# SPDX-License-Identifier: Apache-2.0 # # IMPORTANT: timeslice must be bigger than max running time of tasks diff --git a/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py b/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py index f266cb7a6..e49835adb 100755 --- a/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py +++ b/samples/legacy/task_profiler/profiler/scripts/contextswitch_totals.py @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation. # -# 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. +# SPDX-License-Identifier: Apache-2.0 # # 2 possible algos: at each new timestamp, update run/queue/sleep time for all threads vs update diff --git a/samples/legacy/task_profiler/profiler/scripts/profile.sh b/samples/legacy/task_profiler/profiler/scripts/profile.sh index a2fcb8451..04ab3f930 100755 --- a/samples/legacy/task_profiler/profiler/scripts/profile.sh +++ b/samples/legacy/task_profiler/profiler/scripts/profile.sh @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation. # -# 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. +# SPDX-License-Identifier: Apache-2.0 # function usage() { diff --git a/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py b/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py index 841cd76d1..b5d699ac7 100755 --- a/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py +++ b/samples/legacy/task_profiler/profiler/scripts/profile_kernel.py @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation. # -# 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. +# SPDX-License-Identifier: Apache-2.0 # import sys,re,os diff --git a/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py b/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py index 4c6e6955d..c552e0282 100755 --- a/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py +++ b/samples/legacy/task_profiler/profiler/scripts/profile_monitor.py @@ -3,17 +3,7 @@ # # Copyright (c) 2016 Intel Corporation. # -# 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. +# SPDX-License-Identifier: Apache-2.0 # import sys,re,os diff --git a/samples/legacy/task_profiler/profiler/scripts/term/term.c b/samples/legacy/task_profiler/profiler/scripts/term/term.c index ecedfd73c..e7ac026a3 100644 --- a/samples/legacy/task_profiler/profiler/scripts/term/term.c +++ b/samples/legacy/task_profiler/profiler/scripts/term/term.c @@ -1,17 +1,7 @@ /* * Copyright (c) 2016 Intel Corporation * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> diff --git a/samples/legacy/task_profiler/profiler/src/profiler.c b/samples/legacy/task_profiler/profiler/src/profiler.c index 4e6811be9..331a9b780 100644 --- a/samples/legacy/task_profiler/profiler/src/profiler.c +++ b/samples/legacy/task_profiler/profiler/src/profiler.c @@ -3,17 +3,7 @@ /* * Copyright (c) 2016 Intel Corporation * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> diff --git a/samples/legacy/task_profiler/profiler/src/profiler.h b/samples/legacy/task_profiler/profiler/src/profiler.h index 8d21c9873..c8837c6f7 100644 --- a/samples/legacy/task_profiler/profiler/src/profiler.h +++ b/samples/legacy/task_profiler/profiler/src/profiler.h @@ -3,17 +3,7 @@ /* * Copyright (c) 2016 Intel Corporation * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef PROFILER_H |