Skip to content
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

CI: fix zephyr build for v3.7 and later #306

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

wmamills
Copy link
Contributor

@wmamills wmamills commented Aug 17, 2024

The current CI uses the latest from main for zephyr build tests. This has been broken sometime after v3.6 and before v3.7 In Zephyr v3.7 and later, use of GNU style constructors requires a kconfig value to be defined. This same kconfig value will cause an error in v3.6 or earlier.

The test framework intentionally uses GNU constructors for the base level of its framework and version.c uses this to register its test.

The test/system/zephyr/ level overrides the default META_ADD_TEST() macro and creates unique functions that main.c then calls explicitly in function metal_test_add_functions().

Thus, right now the only constructor used is for version.c but it still intentionally used.

Since we use the latest for CI, define the value so CI will complete.

Fixes: #304

@wmamills wmamills requested a review from arnopo August 17, 2024 19:25
@wmamills wmamills force-pushed the wam-fix-zephyr-ci branch 2 times, most recently from 8886ec7 to b5f4767 Compare August 17, 2024 19:46
The current CI uses the latest from main for zephyr build tests.
This has been broken sometime after v3.6 and before v3.7. Since that
time, use of GNU style constructors requires a kconfig value to be
defined.  This same kconfig value will cause an error in v3.6 or earlier.

The test framework intentionally uses GNU constructors for the base level
of its framework and version.c uses this to register its test.

The test/system/zephyr/ level overrides the default META_ADD_TEST() macro
and creates unique functions that main.c then calls explicitly in function
metal_test_add_functions().

Thus, right now the only constructor used if for version.c but it still
intentionally used.

Since we use the latest for CI, define the value so CI will complete.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
@arnopo arnopo merged commit 64c1a16 into OpenAMP:main Aug 26, 2024
4 checks passed
@arnopo arnopo added this to the Release v2024.10 milestone Aug 26, 2024
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.

libmetal fails to build with Zephyr v3.7.0 or later
2 participants