openwch / ch32v003

CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10
386 stars 56 forks source link

Relax licensing terms and add explicit license for header files #45

Closed kholia closed 1 week ago

kholia commented 3 months ago

Hi,

We are adding support for CH32 RISC-V MCUs in Zephyr via https://github.com/zephyrproject-rtos/zephyr/pull/73761.

The following licensing text in this repository is NOT compatible with Zephyr.

Attention: This software (modified or not) and binary are used for 
microcontroller manufactured by Nanjing Qinheng Microelectronics.

This PR removes this restrictive licensing condition and explicitly licenses the header files in this repository under a dual-license (MIT License and Apache-2.0 License). Please note that many files in this repository are already licensed under Apache-2.0 License.

CC @openwch @fabiobaltieri @nzmichaelh @AlexanderMandera @cnlohr.

AlexanderMandera commented 3 months ago

Here is the quoted message from Patrick Yang to cnlohr about the licensing, as a reference: https://github.com/zephyrproject-rtos/zephyr/pull/73761#issuecomment-2188506016

cnlohr commented 3 months ago

This re-license affects source files, not just header files. All that is important is that the header files are permitted for use in other licensed projects.

kholia commented 3 months ago

@cnlohr Thanks! I have updated this PR to only target the header files now.

Furthermore, I have added the following file to this PR.

$ cat LICENSE 
The header files in this repository are dual-licensed under MIT License and
Apache-2.0 License.

Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
zhang-wenchao commented 1 week ago

Any update? Please merge this PR. Thank you!

cnlohr commented 1 week ago

@zhang-wenchao merging here is no longer required. (edit: Would just be desirable for some other projects). They gave explicit license permission for the header files externally.