Skip to content

rimage: Add function to read section content with allocation#2649

Closed
ktrzcinx wants to merge 3 commits intothesofproject:masterfrom
ktrzcinx:rimage-refactor
Closed

rimage: Add function to read section content with allocation#2649
ktrzcinx wants to merge 3 commits intothesofproject:masterfrom
ktrzcinx:rimage-refactor

Conversation

@ktrzcinx
Copy link
Member

In many functions there is need to read user section content
and check firmware version or write section content to some
manifest or dictionary. Previously to do it, in each function
was loop to search for proper section in proper module,
then allocate buffer, read content and check for possible error
between each step what is quite overwhelming. After change there
will be one function responsible for this task.

Signed-off-by: Karol Trzcinski karolx.trzcinski@linux.intel.com

Code formatting should be consistent and function arguments
should be aligned to opening parenthesis.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
@ktrzcinx ktrzcinx requested a review from xiulipan as a code owner March 27, 2020 14:03
Unused arguments shouldn't be passed to function because it
makes code messy.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
In many functions there is need to read user section content
and check firmware version or write section content to some
manifest or dictionary. Previously to do it, in each function
was loop to search for proper section in proper module,
then allocate buffer, read content and check for possible error
between each step what is quite overwhelming. After change there
will be one function responsible for this task.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
@mmaka1
Copy link

mmaka1 commented Apr 6, 2020

@lgirdwood @dcpleung Should this one wait for #2086 and target the new source tree?

@lgirdwood
Copy link
Member

@mmaka1 yes, #2086 just pending a CI confirmation check from @zrombel .

@ktrzcinx
Copy link
Member Author

Done in #2649 and thesofproject/rimage#11

@ktrzcinx ktrzcinx closed this Apr 21, 2020
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.

4 participants