-
Notifications
You must be signed in to change notification settings - Fork 311
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
zephyr: Support cmake args. Add -Werror in CI #4733
Conversation
main() was growing too big. Zero functional change. Also rename the too generic "build()" to build_all() Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Like this: xtensa-build-zephyr.sh -a -- -DEXTRA_CFLAGS='-Werror -Wextra' Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Allows passing compilation flags and any other argument. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Because we can. This would have caught this regression from commit 287a5f9 ("ssp: mclk/bclk turned off unexpectedly") -DEXTRA_CFLAGS is not very well documented but it is what Zephyr uses, try `git -C zephyr grep -C 5 EXTRA_CFLAGS and see. ``` sof/src/drivers/intel/ssp/ssp.c: In function 'ssp_set_config_tplg': sof/zephyr/include/sof/trace/trace.h:44:11: warning: too many arguments for format [-Wformat-extra-args] 44 | printk("%llu: " format "\n", platform_timer_get(NULL), \ | ^~~~~~~~ ... sof/src/drivers/intel/ssp/ssp.c:763:4: note: in expansion of macro 'dai_info' 763 | dai_info(dai, "ssp_set_config(): hw_free stage: ignore since there is still user", dai->index); ``` Using -Werror only in CI avoids slowing down developers with temporary warnings they intend on fixing later (but before submission) Signed-off-by: Marc Herbert <marc.herbert@intel.com>
https://github.com/thesofproject/sof/pull/4733/checks?check_run_id=3548978888 with both |
4f1b5b1
to
d1e612b
Compare
No CML_SKU0955_HDA device was available in https://sof-ci.01.org/sofpr/PR4733/build10246/devicetest/. Everything else is green on that page and everywhere else (it's almost suspicious) Zephyr builds were all successful (there's no Zephyr testing in PR at the moment, only in daily tests) |
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.
I don't know about In general -Werror by default in the build can be UNproductive because it slows down iterative development, see one of my commit messages here. In upstream Zephyr Anyway this PR adds flexibility to add any flag anywhere later (and I have another, unrelated PR textually depending on it) |
4 commits. Main ones: