mbox series

[meta-rockchip,0/3] rkbin: convert LICENSE to SPDX expressions

Message ID 20260805121327.3946788-1-sputnik@on-the-web.ch
Headers show
Series rkbin: convert LICENSE to SPDX expressions | expand

Message

Martin Herren Aug. 5, 2026, 12:13 p.m. UTC
From: Martin Herren <sputnik@on-the-web.ch>

This series fixes the legacy/CLOSED LICENSE warnings coming from the
rkbin recipes by OE-Core commit e9d424738d6f ("classes/conf/lib: Parse
LICENSE as SPDX Expression"):

  https://git.openembedded.org/openembedded-core/commit/?id=e9d424738d6f8411d4e745b7d872a00e10bb14ac

Patches 1 and 2 switch the rkbin family (rockchip-rkbin.inc, used by
-ddr, -optee-os and -tf-a) and its native variant from "Proprietary" to
a recipe-specific LicenseRef-Rockchip-rkbin backed by NO_GENERIC_LICENSE,
so the SPDX manifest references the real Rockchip LICENSE rather than
the generic one-line stub.

Patch 3 switches rk3308-rkbin from "CLOSED" to
"LicenseRef-rk3308-rkbin-CLOSED" + NO_GENERIC_LICENSE[...]=README.

rk3308-rkbin pins an older rkbin revision whose tree ships no LICENSE
file, which is why it used CLOSED and only pointed to the README.

A potential cleaner fix could be to reuse the current repo's LICENSE.
The rk3308-rkbin SRCREV da
tes back to 2019-10-15 while the initial
LICENSE was only added 2023-07-26, which beside a typo and a
trailing newline is identical to the one used for the other rkbins
(updated 2024-10-17).
So that's an almost 4 year gap between the used SRCREV and where the
LICENSE was introduced.
So this would probably require legal validation from Rochchip's side
whether it applies retroactively as well.
This option would require adding a static LICENSE file to the recipe.

Martin Herren (3):
  bsp: rkbin: use SPDX LicenseRef for Rockchip proprietary firmware
  bsp: rkbin-native: use SPDX LicenseRef for Rockchip proprietary
    firmware
  bsp: rkbin: rk3308-rkbin: replace deprecated CLOSED license with a
    LicenseRef

 recipes-bsp/rkbin/rk3308-rkbin_git.bb          | 3 ++-
 recipes-bsp/rkbin/rockchip-rkbin-native_git.bb | 3 ++-
 recipes-bsp/rkbin/rockchip-rkbin.inc           | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)