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

gprinstall installs the schema. #104

Closed
wants to merge 3 commits into from

Conversation

simonjwright
Copy link
Contributor

For the first commit:

svd2ada requires the schema XSD file in $prefix/schema/, and there's no clear switch or environment variable to affect this.

When installing the project, as for example with "alr install svd2ada", make it so that the schema XSD file is installed too, where svd2ada will find it.

For the second commit:

At present (2024-06-18), macos-latest runs on macos-14 (which is aarch64, but that doesn't affect this issue). The version of Xcode installed by default on the Github runner is 15.0.1, which has the linking bug (assertion failure in ld).

We could fix this by selecting a later version of Xcode (e.g.15.3), but at some point this issue will be fixed and we can revert to macos-latest. macos-13 has been updated to the same problematic Xcode. macos-12 uses Xcode 14, which doesn't have the problem, so running on macos-12 seems the simplest solution.

svd2ada requires the schema XSD file in schema/, and there's no clear
switch or environment variable to affect this.

When installing the project, as for example with "alr install
svd2ada", make it so that the schema XSD file is installed too, where
svd2ada will find it.

  * svd2ada.gpr (Install): new package. Specify that
      schema/CMSIS-SVD_Schema_1_3_1.xsd is to be installed in
      $prefix/schema.
At present, macos-latest runs on macos-14 (which is aarch64, but that
doesn't affect this issue). The version of Xcode installed by default
on the Github runner is 15.0.1, which has the linking bug (assertion
failure in ld).

We could fix this by selecting a later version of Xcode (e.g.15.3),
but at some point this issue will be fixed and we can revert to
macos-latest. This seems the simplest solution, and will remain valid
until macos-12 is retired.

  * .github/workflows/main.yml (os): use macos-12.
@simonjwright
Copy link
Contributor Author

I might have added for Mode use "usage"; to package Install, but it doesn't seem to make any difference -- shall I leave it? (I see that xmlada gets installed either way).

  * svd2ada.gpr (Install): add mode=usage.
      Install the CMSIS-SVD tree under share/.
@simonjwright
Copy link
Contributor Author

OBE: #107 does this as well as installing the SVDs.

@simonjwright simonjwright mentioned this pull request Sep 3, 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.

1 participant