Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

logger: abi verification addition - #138

Closed
bkokoszx wants to merge 2 commits into
thesofproject:masterfrom
bkokoszx:abi-verification
Closed

bkokoszx wants to merge 2 commits into
thesofproject:masterfrom
bkokoszx:abi-verification

Conversation

@bkokoszx

Copy link
Copy Markdown
Contributor

I've added abi_version verification. Be default we verify: abi in *.ldc file with logger abi version.
We additionally can verify abi in "/sys/kernel/debug/sof/fw_version" (with -e flag) or in ver_file (with -v ver_file) with logger abi version.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
@bkokoszx

bkokoszx commented Nov 21, 2018 •

Copy link
Copy Markdown
Contributor Author

@lgirdwood
btw why are in SOF_ABI_VERSION_INCOMPATIBLE macro we only comparing MAJOR version?

@lgirdwood

Copy link
Copy Markdown
Member

@bkokoszx please see Semantic versioning, the MINOR and PATCH updates are not meant to break ABI (so user will still work albeit with out the new feature or fix).

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the easiest change is just to move to sof.git repo, as I guess @cujomalainey has limited free time atm ? so please feel free to create a tools directory in sof.git (with rimage and logger in this subdir). I dont need to keep logger history.

@bkokoszx

Copy link
Copy Markdown
Contributor Author

@lgirdwood
I've a little question.
Should it be one option for making all tools like:
./configure --enable-tools (it will build either logger and rimage)
or should I make a separation between them split into rimage and logger part like:
./configure --enable-rimage
./configure --enable-logger ?
Thanks

@lgirdwood

Copy link
Copy Markdown
Member

@bkokoszx best to make them all go under tools (keeps things simple too)

@bkokoszx

bkokoszx commented Nov 22, 2018 •

Copy link
Copy Markdown
Contributor Author

@lgirdwood
I've made this under following PR:
thesofproject/sof#618

@bkokoszx

bkokoszx commented Nov 23, 2018 •

Copy link
Copy Markdown
Contributor Author

@lgirdwood
Maybe it will be a good idea to merge above PR before @cujomalainey relocation path?

These changes are also incorporated in: thesofproject/sof#618.

@lgirdwood

Copy link
Copy Markdown
Member

@bkokoszx I was thinking that, but since this PR has copies of the ABI headers it will duplicate them in SOF. Probably best to sort this after @cujomalainey PR merge. Them we can include the local ABI headers directly.

@cujomalainey

Copy link
Copy Markdown
Contributor

I'm guessing we solve this by correcting the includes to the literal locations? The only option i can think of would be a symlink and that just seems confusing to developers.

@bkokoszx

bkokoszx commented Nov 26, 2018 •

Copy link
Copy Markdown
Contributor Author

Yes, I think we should solve it by changing to literal locations.
@lgirdwood
I will make this patch (abi verification) again and directly to SOF repo, after merging:
thesofproject/sof#624

@bkokoszx bkokoszx closed this Nov 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants