diff options
| author | Leonardo Costa <leonardo.costa@toradex.com> | 2026-08-24 09:56:37 -0300 |
|---|---|---|
| committer | Leonardo Costa <leonardo.costa@toradex.com> | 2026-08-26 15:09:49 -0300 |
| commit | 77baaf2cc7bfd8ae704b8d9e06915e6a9d205279 (patch) | |
| tree | 62bee8f29ff1a4fb12ffb693bb608fa0d6a75d8d | |
| parent | 622cbbead9f4687ddad9502bf808df3e539d3dd7 (diff) | |
Change the old "GPL-2.0-or-later" license string for the new
"GPL-2.0-only" variant. Only check if new overlays comply with the
updated string and ignore old ones.
Signed-off-by: Leonardo Costa <leonardo.costa@toradex.com>
(cherry picked from commit c0e1800945f9ec212f078cb7f63beb7bf53029a7)
| -rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7bb4c4..5f86c3a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,11 +10,10 @@ stages: check-license_job: stage: check-license variables: - EXPECTED_LIC_STR: "SPDX-License-Identifier: GPL-2.0-or-later OR MIT" + EXPECTED_LIC_STR: "SPDX-License-Identifier: GPL-2.0-only OR MIT" script: - - cd $CI_PROJECT_DIR/overlays - | - for DTO in $(ls *dts) + for DTO in $(git diff --name-only --diff-filter=A ${CI_MERGE_REQUEST_DIFF_BASE_SHA}...HEAD -- overlays/*.dts) do head -n 1 $DTO | \ grep -q "${EXPECTED_LIC_STR}" || \ |
