-
Notifications
You must be signed in to change notification settings - Fork 319
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
configure: fix flags for unit tests #110
Conversation
Requires volume tests fix: #112 |
Signed-off-by: Janusz Jankowski <[email protected]>
230a24c
to
8235d3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, just to clarify the cmocka test is built $with_arch == xtensa ? The reason I'm asking is because the condition logic should exclude the -nostdlib CFLAG if target is not xtensa.
Target is the same, you have the same config like for building firmware library, you just run |
You can read more about tests here: |
And it looks like cmocka will not work with our gcc toolchains because they need -nostdlib no matter what, only xcc supports stdlib (and gcc host builds ofc, but they have way less unit tests, because most of them require platforms code). I can find a way around this issue, but I guess xcc tests are enough atm. |
Ok, we now have a need for a C library. Crosstool can build one as part of our GCC build. |
Looks like we are also missing cmocka header path in CFLAGS too. |
@lgirdwood |
Maybe we should host these prebuilt cmocka packages for each platform in sof-tools or something like that |
-nostdlib breaks UT because cmoka need stdlib
At all "-nostdlib" was only flag that was required to not break gcc builds, because for some reason gcc needs it, however I'm not gonna mess with it more atm.
I also removed flags that was already forced.
Requires volume tests fix: #112
Signed-off-by: Janusz Jankowski [email protected]