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

2_ENVIRONMENT.md may need updating #71

Open
rogermc2 opened this issue Dec 5, 2024 · 2 comments
Open

2_ENVIRONMENT.md may need updating #71

rogermc2 opened this issue Dec 5, 2024 · 2 comments

Comments

@rogermc2
Copy link

rogermc2 commented Dec 5, 2024

2_ENVIRONMENT.md specifies the command :
$ ./build_rts.py --bsps-only --output=build --prefix=arm-eabi/lib/gnat --link stm32f4
However running this command results in:

./build_rts.py --bsps-only --output=build --prefix=arm-eabi/lib/gnat --link stm32f4
usage: build_rts.py [-h] [-v] [-f] [--rts-src-descriptor RTS_SRC_DESCRIPTOR] [--gen-doc] [--compiler COMPILER] [-o OUTPUT] [-l] [-b] [--build-flags BUILD_FLAGS] [--shared]
                    [--profiles PROFILES]
                    target [target ...]
build_rts.py: error: unrecognized arguments: --bsps-only --prefix=arm-eabi/lib/gnat

What should be the correct command?

@jklmnn
Copy link
Member

jklmnn commented Dec 5, 2024

You are right the command is no longer available as the documentation is unfortunately out of date. Unfortunately there is no single command that fixes the problem as some of the assumptions the documentation makes no longer hold. I have written a #68 (comment) on another issue on how to build a custom runtime. Let me know if that works for you as a workaround.

@rogermc2
Copy link
Author

Many thanks.
Following advice from #68 I ran ./build_rts.py --rts-src-descriptor gnat_rts_sources/lib/gnat/rts-sources.json --build stm32f4 successfully:
runtimes successfully installed in /System/Volumes/Data/Ada_Source/bb-runtimes/install.

My only problem was in learning how to "clone" a fork! For which chatGPT provided the necessary instructions.
Now to try to do a runtime extension.

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

No branches or pull requests

2 participants