'sdk_repo.yml: EULA cannot be empty!! Provide a valid license'

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

'sdk_repo.yml: EULA cannot be empty!! Provide a valid license'

728 次查看
changyiguo
NXP Employee
NXP Employee

When I build CMSIS pack using ruby generator v1, the following errors blocked:

Failed_reason: 'sdk_repo.yml: EULA cannot be empty!! Provide a valid license'

 

Look into the code, it fetch 'LA_OPT_Base_License.htm' in hard code. However the latest EULA has change to LA_OPT_NXP_Software_License.htm

 

   # Known limitation: There is currently no way to decide what license should be included or not. So right now,

    # only LA_OPT_Base_License.htm is accepted and processed as valid license. But the whole algorithm is ready

    # for multiple licenses

    eulas.select! { |eula_path| eula_path.casecmp('LA_OPT_Base_License.htm').zero? }

 

I noticed theres EULA statement in sdk_repo.yml, not sure if they are pointing to the same thing.

8 回复数

687 次查看
marek-trmac
NXP Employee
NXP Employee

I found we also have list of EULAs in release_config.yml, see

release_configuration:
  boards: [FRDM-K64F]
  devices: [MK64FN1M0xxx12]
  eula:
  - {path: LA_OPT_Base_License.htm}

Not sure why we need EULAs in both places?

Regards,
Marek
0 项奖励

687 次查看
tklohna
NXP Employee
NXP Employee

Looking into code, it seems useless. I'm not aware of anybody using it.
pastedImage_1.png

0 项奖励

687 次查看
nxa13122
NXP Employee
NXP Employee

We don't use the release_configuration['eula']. 

You decide your attribute name, I am all ok with it.

Do you have any JIRA to track it?

0 项奖励

687 次查看
nxa13122
NXP Employee
NXP Employee

The corresponding JIRA is https://jira.sw.nxp.com/browse/SDKGEN-583 .

0 项奖励

687 次查看
nxa13122
NXP Employee
NXP Employee

In sdk_repo.yml, there is a component EULA to store the license file. The generators can get the license there.

NPI team may change the license file name. It is not good way to hardcode it.

0 项奖励

687 次查看
tklohna
NXP Employee
NXP Employee

It is obviously not great to hardcore this, but we currently have no way of knowing which license is the "main" one.
For instance, here is an example sdk_repo.yml:
pastedImage_1.png

For creation of Licenses.txt, we use SW-Content-Register.txt (created from SCRs) and main license converted to text (until now that was Base_License).
But if you look at the EULA section, there is no clear indication what license should we use and we don't want to process all licenses in there, just the one. So because the name hasn't changed since the old generator, we decided to use and accept only LA_OPT_Base_License.htm.

0 项奖励

687 次查看
nxa13122
NXP Employee
NXP Employee

In current yml data record, we have "attribute" attribute to point some source into different functionality, for example, 

pastedImage_1.png

the  attribute: linker-file means this file is linker file and the link file process module will process it. 

Can we implement the same in license process? like 

pastedImage_2.png

so that you can know which one is your need.

687 次查看
marek-trmac
NXP Employee
NXP Employee

This looks good! The attribute should be something like:

attribute: base_license

Marek

Regards,
Marek
0 项奖励