Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP-TEE License - BSD or GPL ? #6834

Closed
sahilnxp opened this issue May 13, 2024 · 16 comments · Fixed by #6873
Closed

OP-TEE License - BSD or GPL ? #6834

sahilnxp opened this issue May 13, 2024 · 16 comments · Fixed by #6873

Comments

@sahilnxp
Copy link
Contributor

Hi @jenswi-linaro @jforissier

There has been recent addition of some files in optee_os code like:

./core/drivers/hisi_trng.c
./scripts/gen_compile_commands.py

These files have only SPDX-License-Identifier: GPL-2.0 License
But as far as I know, OP-TEE has BSD License.
If we combine files with GPL2.0 and BSD license in a project, that project will be distributed under GPL2.0 License

So can you please let me know if there is any recent change regarding the License of OP-TEE ?

Thanks
Sahil Malhotra

@jforissier
Copy link
Contributor

Hello Sahil,

The OP-TEE license terms have not changed.

./scripts/gen_compile_commands.py

This is a helper script that can be used to set up a development environment (see commit 8d541ae). It is not embedded in OP-TEE OS and not even used during the build. So I don't think it is an issue that it is GPL-2.0.

./core/drivers/hisi_trng.c

That one however should not have been checked-in with a GPL license. That's an oversight during the review process. @bhLou would you mind submitting a pull request to change the license to BSD-2-Clause?

@sahilnxp
Copy link
Contributor Author

Hi @jforissier

Thanks a lot for this information.

There is one more file https://github.com/OP-TEE/optee_os/blob/master/core/include/dt-bindings/mfd/st%2Cstpmic1.h which has only GPL-2.0, but that is pretty old file. Can we take care of this also ?

This file https://github.com/OP-TEE/optee_test/blob/master/scripts/aes_gcm_test.py in optee-test also don't have any license, Should we put one here? If you want me to open one issue for OP-TEE test in optee_test repo, please let me know.

@jforissier
Copy link
Contributor

Hi @jforissier

Thanks a lot for this information.

There is one more file https://github.com/OP-TEE/optee_os/blob/master/core/include/dt-bindings/mfd/st%2Cstpmic1.h which has only GPL-2.0, but that is pretty old file. Can we take care of this also ?

@etienne-lms this is for you I suppose ;)

This file https://github.com/OP-TEE/optee_test/blob/master/scripts/aes_gcm_test.py in optee-test also don't have any license, Should we put one here? If you want me to open one issue for OP-TEE test in optee_test repo, please let me know.

@omasse-linaro what license would be applicable?

@omasse-linaro
Copy link
Contributor

omasse-linaro commented May 14, 2024

Hi @jforissier

This file https://github.com/OP-TEE/optee_test/blob/master/scripts/aes_gcm_test.py in optee-test also don't have any license, Should we put one here? If you want me to open one issue for OP-TEE test in optee_test repo, please let me know.

@omasse-linaro what license would be applicable?

Let's use copyright and license info as follow:

# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2024, Linaro Limited
#

@jforissier
Copy link
Contributor

Hi @jforissier

This file https://github.com/OP-TEE/optee_test/blob/master/scripts/aes_gcm_test.py in optee-test also don't have any license, Should we put one here? If you want me to open one issue for OP-TEE test in optee_test repo, please let me know.

@omasse-linaro what license would be applicable?

Let's use copyright and license info as follow:

# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2024, Linaro Limited
#

LGTM. Would you mind creating a PR?

@etienne-lms
Copy link
Contributor

There is one more file https://github.com/OP-TEE/optee_os/blob/master/core/include/dt-bindings/mfd/st%2Cstpmic1.h which has only GPL-2.0, but that is pretty old file. Can we take care of this also ?

@etienne-lms this is for you I suppose ;)

Indeed. I'll take care of that.

@sahilnxp
Copy link
Contributor Author

Hi @jforissier @etienne-lms

I see that one patch is merged in optee-test regarding this.
Any update on other parts in OP-TEE ?

@jbech-linaro
Copy link
Contributor

./scripts/gen_compile_commands.py

This is a helper script that can be used to set up a development environment (see commit 8d541ae). It is not embedded in OP-TEE OS and not even used during the build. So I don't think it is an issue that it is GPL-2.0.

Correct, I was even mentioning this in the pull request itself (#6387). So this one is not an issue.

jforissier added a commit to jforissier/optee_os that referenced this issue Jun 3, 2024
The file core/drivers/hisi_trng.c should not have been committed with a
GPL-2.0 license. Relicense it as BSD-2-Clause.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reported-by: Sahil Malhotra <sahil.malhotra@nxp.com>
Closes: OP-TEE#6834
@sahilnxp
Copy link
Contributor Author

Thanks @jforissier for taking care of hisi_trng.c, but there is no reply from the file owner, how we will proceed in this case ?

Thanks @jbech-linaro for PR link, I got your point.

@etienne-lms Can you please help on the ./core/include/dt-bindings/mfd/st,stpmic1.h part ?

@jforissier
Copy link
Contributor

Thanks @jforissier for taking care of hisi_trng.c, but there is no reply from the file owner, how we will proceed in this case ?

In this case we'll just remove the file. In the meantime let me add another name to the re-licensing PR (the D06 maintainer).

@etienne-lms
Copy link
Contributor

@etienne-lms Can you please help on the ./core/include/dt-bindings/mfd/st,stpmic1.h part ?

Hi @sahilnxp. Yes, the change is currently under review in the LKML, patch v2 sent this morning:
https://lore.kernel.org/lkml/20240617092016.2958046-1-etienne.carriere@foss.st.com/
Once it's been acked, I've push updates in both U-Boot and OP-TEE OS.

@sahilnxp
Copy link
Contributor Author

Thanks @jforissier and @etienne-lms for your quick response.

@etienne-lms
Copy link
Contributor

FYI, the stpmic1 DT binding issue is fixed by #6917.

@sahilnxp
Copy link
Contributor Author

@etienne-lms Thanks for taking care of this.

jforissier added a commit to jforissier/optee_os that referenced this issue Jul 2, 2024
The file core/drivers/hisi_trng.c should not have been committed with a
GPL-2.0 license. Relicense it as BSD-2-Clause.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reported-by: Sahil Malhotra <sahil.malhotra@nxp.com>
Closes: OP-TEE#6834
Acked-by: loubaihui <loubaihui1@huawei.com>
Acked-by: leisen <leisen1@huawei.com>
jforissier added a commit that referenced this issue Jul 2, 2024
The file core/drivers/hisi_trng.c should not have been committed with a
GPL-2.0 license. Relicense it as BSD-2-Clause.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reported-by: Sahil Malhotra <sahil.malhotra@nxp.com>
Closes: #6834
Acked-by: loubaihui <loubaihui1@huawei.com>
Acked-by: leisen <leisen1@huawei.com>
@sahilnxp
Copy link
Contributor Author

sahilnxp commented Jul 3, 2024

Thanks @jforissier @etienne-lms @jbech-linaro for taking care of this.

@etienne-lms
Copy link
Contributor

Thanks @sahilnxp for requesting these points to be clarified, they indeed needed to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants