diff --git a/.github/workflows/.project-automation.yml b/.github/workflows/.project-automation.yml index f588ee50c..0fcc2be72 100644 --- a/.github/workflows/.project-automation.yml +++ b/.github/workflows/.project-automation.yml @@ -1,3 +1,20 @@ +# Copyright (c) 2019-2021, Arm Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + name: Code Review Workflow on: diff --git a/builbot_master/master.cfg b/builbot_master/master.cfg index f337768be..8365cc483 100644 --- a/builbot_master/master.cfg +++ b/builbot_master/master.cfg @@ -1,6 +1,23 @@ # -*- python -*- # ex: set syntax=python: +# Copyright (c) 2016-2021, Arm Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + # This is a sample buildmaster config file. It must be installed as # 'master.cfg' in your buildmaster's base directory. diff --git a/dev_envs/docker_files/debian-9-i386/Dockerfile b/dev_envs/docker_files/debian-9-i386/Dockerfile index 828295241..9ab70bad0 100644 --- a/dev_envs/docker_files/debian-9-i386/Dockerfile +++ b/dev_envs/docker_files/debian-9-i386/Dockerfile @@ -1,9 +1,21 @@ # debian-9-i386/Dockerfile # -# This file is part of mbed TLS (https://tls.mbed.org) +# Copyright (c) 2018-2021, ARM Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (c) 2018, ARM Limited, All Rights Reserved - +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) ################################################################ diff --git a/dev_envs/docker_files/debian-9-x64/Dockerfile b/dev_envs/docker_files/debian-9-x64/Dockerfile index fc7abf43a..a27e6b983 100644 --- a/dev_envs/docker_files/debian-9-x64/Dockerfile +++ b/dev_envs/docker_files/debian-9-x64/Dockerfile @@ -1,8 +1,21 @@ # debian-9-x64/Dockerfile # -# This file is part of mbed TLS (https://tls.mbed.org) +# Copyright (c) 2018-2021, ARM Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (c) 2018, ARM Limited, All Rights Reserved +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) diff --git a/dev_envs/docker_files/run.sh b/dev_envs/docker_files/run.sh index 41ed4b838..b7f4dffee 100755 --- a/dev_envs/docker_files/run.sh +++ b/dev_envs/docker_files/run.sh @@ -1,6 +1,21 @@ #!/bin/sh # -# Copyright (c) 2017, ARM Limited, All Rights Reserved +# Copyright (c) 2017-2021, ARM Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) # # Purpose # diff --git a/dev_envs/docker_files/ubuntu-16.04/Dockerfile b/dev_envs/docker_files/ubuntu-16.04/Dockerfile index a33120916..5f530157c 100644 --- a/dev_envs/docker_files/ubuntu-16.04/Dockerfile +++ b/dev_envs/docker_files/ubuntu-16.04/Dockerfile @@ -1,8 +1,21 @@ # ubuntu-16.04/Dockerfile # -# This file is part of mbed TLS (https://tls.mbed.org) +# Copyright (c) 2018-2021, ARM Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (c) 2018, ARM Limited, All Rights Reserved +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) diff --git a/dev_envs/docker_files/ubuntu-17.10/Dockerfile b/dev_envs/docker_files/ubuntu-17.10/Dockerfile index 3c6258119..111628490 100644 --- a/dev_envs/docker_files/ubuntu-17.10/Dockerfile +++ b/dev_envs/docker_files/ubuntu-17.10/Dockerfile @@ -1,8 +1,21 @@ # ubuntu-17.10/Dockerfile # -# This file is part of mbed TLS (https://tls.mbed.org) +# Copyright (c) 2018-2021, ARM Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (c) 2018, ARM Limited, All Rights Reserved +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) diff --git a/dev_envs/docker_files/ubuntu-18.04/Dockerfile b/dev_envs/docker_files/ubuntu-18.04/Dockerfile index cb0a19563..477ab2397 100644 --- a/dev_envs/docker_files/ubuntu-18.04/Dockerfile +++ b/dev_envs/docker_files/ubuntu-18.04/Dockerfile @@ -1,8 +1,21 @@ # ubuntu-18.04/Dockerfile # -# This file is part of mbed TLS (https://tls.mbed.org) +# Copyright (c) 2018-2021, ARM Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (c) 2018, ARM Limited, All Rights Reserved +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) diff --git a/fuzzing/server-config/puppet.conf b/fuzzing/server-config/puppet.conf index 3e1daecd7..305342909 100644 --- a/fuzzing/server-config/puppet.conf +++ b/fuzzing/server-config/puppet.conf @@ -1,3 +1,20 @@ +# Copyright (c) 2017-2021, Arm Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + [main] logdir=/var/log/puppet vardir=/var/lib/puppet diff --git a/ram_analysis/callgrind_path_parser.py b/ram_analysis/callgrind_path_parser.py index e2763cf01..0bfbc243e 100644 --- a/ram_analysis/callgrind_path_parser.py +++ b/ram_analysis/callgrind_path_parser.py @@ -1,5 +1,22 @@ #!/usr/bin/env python2 +# Copyright (c) 2018-2021, Arm Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + # This script requires python 2.7 # This script parses a callgrind output file and builds up the function call paths. # It then combines this with the stack usage information from a .su file and gives diff --git a/ram_analysis/su_merge.py b/ram_analysis/su_merge.py index 868c104bc..822b7115b 100644 --- a/ram_analysis/su_merge.py +++ b/ram_analysis/su_merge.py @@ -1,5 +1,22 @@ #!/usr/bin/env python2 +# Copyright (c) 2018-2021, Arm Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + # This script requires python 2.7 # This script merges .su files into a single file diff --git a/report_generator/generate-test-report.py b/report_generator/generate-test-report.py index 762442400..ab8f0c67c 100755 --- a/report_generator/generate-test-report.py +++ b/report_generator/generate-test-report.py @@ -1,5 +1,22 @@ #! /usr/bin/env python +# Copyright (c) 2016-2021, Arm Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + import csv import argparse import sys diff --git a/resources/windows/windows_testing.py b/resources/windows/windows_testing.py index 9b7519812..5df6a9d88 100644 --- a/resources/windows/windows_testing.py +++ b/resources/windows/windows_testing.py @@ -1,4 +1,22 @@ #!/usr/bin/env python3 + +# Copyright (c) 2019-2021, Arm Limited, All Rights Reserved +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# +# This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + """ The script checks that Mbed TLS can be built on Windows in different configurations of Visual Studio, as well as MinGW32. Returns 0 on success, diff --git a/vars/analysis.groovy b/vars/analysis.groovy index 62e8bf40f..d52a107e2 100644 --- a/vars/analysis.groovy +++ b/vars/analysis.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + import groovy.transform.Field // A static field has its content preserved across stages. diff --git a/vars/checkout_repo.groovy b/vars/checkout_repo.groovy index 849669fe4..734935241 100644 --- a/vars/checkout_repo.groovy +++ b/vars/checkout_repo.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + /* This function checks out the repo that branch that the job is testing. * If testing the TLS tests with an Mbed Crypto PR, checkout the Mbed TLS * development branch and update the crypto submodule to the Mbed Crypto PR branch diff --git a/vars/common.groovy b/vars/common.groovy index b73a26993..6da2341fc 100644 --- a/vars/common.groovy +++ b/vars/common.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + import groovy.transform.Field /* diff --git a/vars/environ.groovy b/vars/environ.groovy index 45a2c0064..5578ddbf4 100644 --- a/vars/environ.groovy +++ b/vars/environ.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + def set_crypto_pr_environment(is_production) { env.JOB_TYPE = 'PR' env.TARGET_REPO = 'crypto' diff --git a/vars/examples.groovy b/vars/examples.groovy index 4e837ed6e..1fa71a6ae 100644 --- a/vars/examples.groovy +++ b/vars/examples.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + import groovy.transform.Field @Field compilers = ['ARM', 'GCC_ARM'] diff --git a/vars/gen_jobs.groovy b/vars/gen_jobs.groovy index 8cd56768d..6cb75c5c4 100644 --- a/vars/gen_jobs.groovy +++ b/vars/gen_jobs.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + import groovy.transform.Field // Keep track of builds that fail diff --git a/vars/mbed-crypto-pr-test-Jenkinsfile b/vars/mbed-crypto-pr-test-Jenkinsfile index d99372bb9..3b72173cb 100644 --- a/vars/mbed-crypto-pr-test-Jenkinsfile +++ b/vars/mbed-crypto-pr-test-Jenkinsfile @@ -1,5 +1,24 @@ #!/usr/bin/env groovy +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + /* * This script takes the following parameters: * diff --git a/vars/mbed-crypto-release-Jenkinsfile b/vars/mbed-crypto-release-Jenkinsfile index f7f00973f..77cebb662 100644 --- a/vars/mbed-crypto-release-Jenkinsfile +++ b/vars/mbed-crypto-release-Jenkinsfile @@ -1,5 +1,24 @@ #!/usr/bin/env groovy +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + /* * This script takes the following parameters: * diff --git a/vars/mbed-os-example-pr-test-Jenkinsfile b/vars/mbed-os-example-pr-test-Jenkinsfile index 022dcc076..096ac1837 100644 --- a/vars/mbed-os-example-pr-test-Jenkinsfile +++ b/vars/mbed-os-example-pr-test-Jenkinsfile @@ -1,5 +1,24 @@ #!/usr/bin/env groovy +/* + * Copyright (c) 2020-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + /* * This script takes the following parameters: * diff --git a/vars/mbed_crypto.groovy b/vars/mbed_crypto.groovy index 1a79b3d0a..74731fb7c 100644 --- a/vars/mbed_crypto.groovy +++ b/vars/mbed_crypto.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + def run_crypto_tests() { try { def jobs = [:] diff --git a/vars/mbed_os_example.groovy b/vars/mbed_os_example.groovy index 096aa3411..b5af4a587 100644 --- a/vars/mbed_os_example.groovy +++ b/vars/mbed_os_example.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + def run_pr_job(example, is_production=true) { timestamps { environ.set_mbed_os_example_pr_environment(example, is_production) diff --git a/vars/mbedtls-pr-test-Jenkinsfile b/vars/mbedtls-pr-test-Jenkinsfile index d9597de8a..7e430a668 100644 --- a/vars/mbedtls-pr-test-Jenkinsfile +++ b/vars/mbedtls-pr-test-Jenkinsfile @@ -1,5 +1,24 @@ #!/usr/bin/env groovy +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + /* * This script takes the following parameters: * diff --git a/vars/mbedtls-release-Jenkinsfile b/vars/mbedtls-release-Jenkinsfile index 0e63b138e..adeb26899 100644 --- a/vars/mbedtls-release-Jenkinsfile +++ b/vars/mbedtls-release-Jenkinsfile @@ -1,5 +1,24 @@ #!/usr/bin/env groovy +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + /* * This script takes the following parameters: * diff --git a/vars/mbedtls.groovy b/vars/mbedtls.groovy index 969c4a084..61e1a53ce 100644 --- a/vars/mbedtls.groovy +++ b/vars/mbedtls.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2018-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + /* This runs the job using the main TLS development branch and a Mbed Crypto PR */ def run_tls_tests_with_crypto_pr(is_production) { env.REPO_TO_CHECKOUT = 'tls' diff --git a/vars/mbedtls_psa.groovy b/vars/mbedtls_psa.groovy index 0b26c366f..64a736d0d 100644 --- a/vars/mbedtls_psa.groovy +++ b/vars/mbedtls_psa.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2018-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + def run_job() { mbed_crypto.run_pr_job() } diff --git a/vars/scripts.groovy b/vars/scripts.groovy index bf149e3d3..d84cce88b 100644 --- a/vars/scripts.groovy +++ b/vars/scripts.groovy @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2019-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ + import groovy.transform.Field @Field std_make_test_sh = """\ diff --git a/website_scripts/forum_activity.inc.php b/website_scripts/forum_activity.inc.php index 5aaadc187..c1ae89da3 100644 --- a/website_scripts/forum_activity.inc.php +++ b/website_scripts/forum_activity.inc.php @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017-2021, Arm Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * 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. + * + * This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/) + */ +