scripts/cmake: Set SOF_MICRO to 99 on main branch
Set SOF_MICRO to 99 on the main branch
This change ensures that SOF_MICRO is set to 99 when on the main branch, similar to Zephyr’s approach for never-released branches. For other branches, it remains 0 to maintain consistency with xtensa-build-zephyr.py.
Fixes the TODO:
"default this to .99 on the main, never released branch like zephyr does"
Changes:
Detect the current Git branch using git rev-parse --abbrev-ref HEAD
Set SOF_MICRO to 99 if on main, otherwise 0
Testing:
Verified SOF_MICRO = 99 on main, 0 on other branches by running:
cmake -DSOF_ROOT_SOURCE_DIRECTORY=$(pwd) -P scripts/cmake/version.cmake
I would appreciate your review and any suggestions for improvement. Thank you!
Can one of the admins verify this patch?
reply test this please to run this test once
test this please
Two checks previously failed due to:
- WARNING: Missing commit description - Add an appropriate one
- ERROR: Missing Signed-off-by: line(s)
I have amended the commit to include the commit description and Signed-off-by line to resolve these issues.
No objections from me, aligning with Zephyr makes sense.
Thank you for your review!