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

Fix LPM: Return and use array instead of just 1st string #65

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

jsuhaas22
Copy link
Collaborator

A config in toml can have multiple values, separated by space. The read_config function reads all of these space-separated values as individual strings in a value array. But then it returns only the first string by doing echo ${value}. Thus even if a config had multiple values, only the 1st gets returned.

This is usually not a problem since almost all of the configs so far have single-values. But in case of optee's make arguments, which are multiple, it returns only the 1st, and not the 2nd. Due to this, LPM doesn't work on am62pxx-evm, since the 2nd make argument is also necessary for making it work.

So return the entire array from read_config. And pass the entire array to optee's make command. This commit fixes LPM.

A config in toml can have multiple values, separated by space. The
`read_config` function reads all of these space-separated values as
individual strings in a `value` array. But then it returns only the
first string by doing `echo ${value}`. Thus even if a config had
multiple values, only the 1st gets returned.

This is usually not a problem since almost all of the configs so far
have single-values. But in case of optee's make arguments, which are
multiple, it returns only the 1st, and not the 2nd. Due to this, LPM
doesn't work on am62pxx-evm, since the 2nd make argument is also
necessary for making it work.

So return the entire array from `read_config`. And pass the entire array
to optee's `make` command. Also fix the value of the `platform` config
for am62pxx-evm.

This commit fixes LPM.

Signed-off-by: Suhaas Joshi <s-joshi@ti.com>
Copy link
Member

@cshilwant cshilwant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this issue.

@jsuhaas22 jsuhaas22 merged commit 8841c89 into master Nov 25, 2024
21 checks passed
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 this pull request may close these issues.

2 participants