license: cleanup: add SPDX Apache-2.0 license identifier
Update the files which contain no license information with the
'Apache-2.0' SPDX license identifier. Many source files in the tree are
missing licensing information, which makes it harder for compliance
tools to determine the correct license.
By default all files without license information are under the default
license of Zephyr, which is Apache version 2.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/ci/get_modified_boards.py b/scripts/ci/get_modified_boards.py
index 4e53314..d9f9793 100755
--- a/scripts/ci/get_modified_boards.py
+++ b/scripts/ci/get_modified_boards.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
# A script to generate a list of boards that have changed or added and create an
# arguemnts file for sanitycheck to allow running more tests for those boards.
diff --git a/scripts/ci/get_modified_tests.py b/scripts/ci/get_modified_tests.py
index c7790c8..dcf250d 100755
--- a/scripts/ci/get_modified_tests.py
+++ b/scripts/ci/get_modified_tests.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
# A script to generate a list of tests that have changed or added and create an
# arguemnts file for sanitycheck to allow running those tests with --all
diff --git a/scripts/ci/run_ci.sh b/scripts/ci/run_ci.sh
index 23e14d0..ae9b6fc 100755
--- a/scripts/ci/run_ci.sh
+++ b/scripts/ci/run_ci.sh
@@ -1,5 +1,6 @@
#!/bin/bash
# Copyright (c) 2017 Linaro Limited
+# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
diff --git a/scripts/dir_is_writeable.py b/scripts/dir_is_writeable.py
index b087b0c..14cde3f 100644
--- a/scripts/dir_is_writeable.py
+++ b/scripts/dir_is_writeable.py
@@ -1,3 +1,5 @@
+
+# SPDX-License-Identifier: Apache-2.0
import os
import sys
diff --git a/scripts/footprint/compare_footprint b/scripts/footprint/compare_footprint
index 5f7a8ff..993c969 100755
--- a/scripts/footprint/compare_footprint
+++ b/scripts/footprint/compare_footprint
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
"""
This script help you to compare footprint results with previous commits in git.
If you don't have a git repository, it will compare your current tree
diff --git a/scripts/gitlint/zephyr_commit_rules.py b/scripts/gitlint/zephyr_commit_rules.py
index f625ac1..be2a410 100644
--- a/scripts/gitlint/zephyr_commit_rules.py
+++ b/scripts/gitlint/zephyr_commit_rules.py
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: Apache-2.0
+
"""
The classes below are examples of user-defined CommitRules. Commit rules are gitlint rules that
act on the entire commit at once. Once the rules are discovered, gitlint will automatically take care of applying them
diff --git a/scripts/kconfig/checkconfig.py b/scripts/kconfig/checkconfig.py
index a12a3ca..6040197 100755
--- a/scripts/kconfig/checkconfig.py
+++ b/scripts/kconfig/checkconfig.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
# NOTE: This script has not been updated for Kconfiglib 2 and will not run
diff --git a/scripts/kconfig/diffconfig b/scripts/kconfig/diffconfig
index 94c3f83..dc184fa 100755
--- a/scripts/kconfig/diffconfig
+++ b/scripts/kconfig/diffconfig
@@ -1,5 +1,7 @@
#!/usr/bin/env python3
#
+# SPDX-License-Identifier: Apache-2.0
+#
# diffconfig - a tool to compare .config files.
#
# originally written in 2006 by Matt Mackall
diff --git a/scripts/qemu-machine-hack.py b/scripts/qemu-machine-hack.py
index bff8c29..8ff035f 100755
--- a/scripts/qemu-machine-hack.py
+++ b/scripts/qemu-machine-hack.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
import sys
diff --git a/scripts/sanity_chk/harness.py b/scripts/sanity_chk/harness.py
index 90f5048..d230b88 100644
--- a/scripts/sanity_chk/harness.py
+++ b/scripts/sanity_chk/harness.py
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: Apache-2.0
import re
from collections import OrderedDict
diff --git a/scripts/sanity_chk/ini2yaml.py b/scripts/sanity_chk/ini2yaml.py
index f7ef971..bf3e6ce 100755
--- a/scripts/sanity_chk/ini2yaml.py
+++ b/scripts/sanity_chk/ini2yaml.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-
+# SPDX-License-Identifier: Apache-2.0
import ConfigParser, os
import yaml
import sys
diff --git a/scripts/sanity_chk/scl.py b/scripts/sanity_chk/scl.py
index f716a29..6c73035 100644
--- a/scripts/sanity_chk/scl.py
+++ b/scripts/sanity_chk/scl.py
@@ -1,5 +1,6 @@
#! /usr/bin/python
#
+# SPDX-License-Identifier: Apache-2.0
# Zephyr's Sanity Check library
#
# Set of code that other projects can also import to do things on
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index a27eed6..361b520 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
# vim: set syntax=python ts=4 :
+# SPDX-License-Identifier: Apache-2.0
"""Zephyr Sanity Tests
This script scans for the set of unit test applications in the git
diff --git a/scripts/subfolder_list.py b/scripts/subfolder_list.py
index 10aa984..76927fb 100644
--- a/scripts/subfolder_list.py
+++ b/scripts/subfolder_list.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
import os
import argparse
diff --git a/scripts/support/quartus-flash.py b/scripts/support/quartus-flash.py
index 5ae7dcf..f4aadf0 100755
--- a/scripts/support/quartus-flash.py
+++ b/scripts/support/quartus-flash.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
import subprocess
import tempfile
import argparse