diff --git a/AUTHORS.rst b/AUTHORS.rst index 9a8224dc7da..6a78cf7956b 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -84,6 +84,7 @@ The following organizations or individuals have contributed to ScanCode: - Sebastian Schuberth @sschuberth - Shankhadeep Dey @Iamshankhadeep - Sharikzama @ZamaSharik +- Shreyash Neeraj @shreyashsri79 - Shrijal Acharya @OctoPie23 - Shivam Chauhan @chashiv - Shivam Sandbhor @sbs2001 diff --git a/CHANGELOG.rst b/CHANGELOG.rst index abc3ae41ad2..6c01f1fc40b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,9 @@ Changelog Next release -------------- +- Add Airoha firmware license detection instead of reporting it as MediaTek. + https://github.com/aboutcode-org/scancode-toolkit/issues/5394 + - Fix the optional ``licenses`` extra dependency typo to install ``licensedcode-data``. https://github.com/aboutcode-org/scancode-toolkit/pull/5056 diff --git a/src/licensedcode/data/licenses/airoha-firmware.LICENSE b/src/licensedcode/data/licenses/airoha-firmware.LICENSE new file mode 100644 index 00000000000..e2666efa949 --- /dev/null +++ b/src/licensedcode/data/licenses/airoha-firmware.LICENSE @@ -0,0 +1,21 @@ +--- +key: airoha-firmware +short_name: Airoha Firmware License +name: Airoha Firmware License +category: Proprietary Free +owner: Airoha Inc. +homepage_url: https://gitlab.com/kernel-firmware/linux-firmware +spdx_license_key: LicenseRef-scancode-airoha-firmware +text_urls: + - https://gitlab.com/kernel-firmware/linux-firmware/-/blob/0cb5a7fb037ef9489deaa4ebecd78b40fe7c07c6/LICENSES/LICENSE.airoha +--- + +Airoha Inc. grants permission to use and redistribute aforementioned firmware +files for the use with devices containing Airoha chipsets, but not as part of +the Linux kernel or in any other form which would require these files themselves +to be covered by the terms of the GNU General Public License or the GNU Lesser +General Public License. + +These firmware files are distributed in the hope that they will be useful, but +are provided WITHOUT ANY WARRANTY, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTY +OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. \ No newline at end of file diff --git a/tests/licensedcode/data/datadriven/lic4/airoha-firmware.txt b/tests/licensedcode/data/datadriven/lic4/airoha-firmware.txt new file mode 100644 index 00000000000..82541b0d342 --- /dev/null +++ b/tests/licensedcode/data/datadriven/lic4/airoha-firmware.txt @@ -0,0 +1,9 @@ +Airoha Inc. grants permission to use and redistribute aforementioned firmware +files for the use with devices containing Airoha chipsets, but not as part of +the Linux kernel or in any other form which would require these files themselves +to be covered by the terms of the GNU General Public License or the GNU Lesser +General Public License. + +These firmware files are distributed in the hope that they will be useful, but +are provided WITHOUT ANY WARRANTY, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTY +OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. \ No newline at end of file diff --git a/tests/licensedcode/data/datadriven/lic4/airoha-firmware.txt.yml b/tests/licensedcode/data/datadriven/lic4/airoha-firmware.txt.yml new file mode 100644 index 00000000000..d1773e9f0e3 --- /dev/null +++ b/tests/licensedcode/data/datadriven/lic4/airoha-firmware.txt.yml @@ -0,0 +1,7 @@ +license_expressions: + - airoha-firmware +notes: | + Linux-firmware LICENSES/LICENSE.airoha, retrieved from canonical + GitLab upstream at commit 0cb5a7fb037ef9489deaa4ebecd78b40fe7c07c6. + Git blob: 82541b0d34209fa855cc0423b5cea1f318c5ddcf + https://gitlab.com/kernel-firmware/linux-firmware/-/blob/0cb5a7fb037ef9489deaa4ebecd78b40fe7c07c6/LICENSES/LICENSE.airoha