aboutcode-org / aboutcode-org/scancode-toolkit

Missing licenses from ST

Open
#1,549 10 comments 2 reactions 0 assignees View on GitHub
license scan new and improved data
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

Hello,
ST uses two types of licenses, which are currently not detected.
The first one has additional requirements to the BSD-style license, and is currently detected as simply BSD.
You can find multiple samples of this here on Github, like:
https://github.com/akospasztor/stm32-bootloader/blob/master/Middlewares/Third_Party/FatFs/src/diskio.c
or
https://github.com/aws/amazon-freertos/blob/master/lib/third_party/mcu_vendor/st/stm32l475_discovery/BSP/B-L475E-IOT01/stm32l475e_iot01_tsensor.c

The second one is something "different":
https://github.com/micropython/micropython/blob/master/ports/stm32/usbhost/Class/AUDIO/Inc/usbh_audio.h
or
https://github.com/JoeMerten/Stm32-Tools-Evaluation/blob/master/STM32Cube_FW_F4_V1.9.0/Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c
The license is already named in #662 but is declared resolved in #900 however, the license text added in #900 is different.

The following rules add a detection, I welcome a better naming of the files/rules and category.

[missingLicenses.zip](https://github.com/nexB/scancode-toolkit/files/3147683/missingLicenses.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.