On Mon, Aug 24, 2026 at 11:48 PM iwanicki92 via lists.openembedded.org
<[email protected]> wrote:

> I'm not sure where the documentation you found suggests this
>
>
> The Yocto Project documentation:
> https://docs.yoctoproject.org/ref-manual/variables.html#term-SPDX_IMAGE_SUPPLIER
> contains almost the same example:
>
> MY_COMPANY_name = "Acme Corp"
> MY_COMPANY_type = "organization"
> SPDX_IMAGE_SUPPLIER = "MY_COMPANY"
> SPDX_SDK_SUPPLIER = "MY_COMPANY"
>

This is incorrect and needs to be removed


>
> the support for this is already implemented by undocumented `_ref` suffix,
> so maybe documentation should be changed instead.
> Though `_ref` suffix if I'm reading code correctly allows for infinite
> chaining e.g:
>
> SPDX_IMAGE_SUPPLIER_ref = "MY_COMPANY1"
> MY_COMPANY1_ref = "MY_COMPANY2"
> MY_COMPANY2_name = "Acme Corp
>


That's not how _ref works. _ref allows you to "reference" another SPDX
"Agent" that was created elsewhere (instead of creating a new one each
time). So you can do:

SPDX_IMAGE_SUPPLIER_name = "AAAA"
SPDX_IMAGE_SUPPLIER_type = "organization"

SPDX_SDK_SUPPLIER_ref = "SPDX_IMAGE_SUPPLIER"

And then the generated SPDX will only contain a single "AAAA" company
object that is referenced in both cases, instead of creating 2 duplicate
objects. However, at least one of the variables must actually create the
organization for that to work (e.g. SPDX_IMAGE_SUPPLIER in this case)


>
>
> but the values for any base variable are suffixes always appended to that
> base variable
>
> SPDX_IMAGE_SUPPLIER = "MY_COMPANY"
> SPDX_IMAGE_SUPPLIER_MY_COMPANY_name = "CCCC"
> SPDX_IMAGE_SUPPLIER_MY_COMPANY_type = "organization"
>
>
> This one I don't think is mentioned anywhere, and also doesn't work. Maybe
> you meant SPDX_AUTHORS which has this syntax:
>

Yes, I did, sorry for being confusing. Some variables allow multiple things
to be assigned (like SPDX_AUTHORS) and some only allow a single one (like
SPDX_IMAGE_SUPPLIER). The ones the support multiple require the suffixes to
be specified in the variable name, e.g.

  SPDX_AUTHORS = "A B C"

And then the code will create authors using SPDX_AUTHORS_A, SPDX_AUTHORS_B,
and SPDX_AUTHORS_C, but these 3 variables are all treated the same as all
other SPDX Agent variables (e.g. the same as SPDX_IMAGE_SUPPLIER)



>
> SPDX_AUTHORS ??= "openembedded"
> SPDX_AUTHORS[doc] = "A space separated list of the document authors. Each
> item \
>     is used to name a base variable like SPDX_AUTHORS_<AUTHOR> that \
>     describes the author."
> SPDX_AUTHORS_openembedded_name = "OpenEmbedded"
> SPDX_AUTHORS_openembedded_type = "organization"
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#244245): 
https://lists.openembedded.org/g/openembedded-core/message/244245
Mute This Topic: https://lists.openembedded.org/mt/120910416/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to