Thanks for the suggestions, however it won’t work.
It targets the native x86_64-linux platform.
How do I get it to cross compile?
This is the log from what I did -
sattmate@fuji-i3:~> alr init --bin my_microbit_app
Enter a short description of the crate: (default: '')
>
Using default: ''
Select a software license for the crate?
1. MIT OR Apache-2.0 WITH LLVM-exception
2. MIT
3. Apache-2.0 WITH LLVM-exception
4. Apache-2.0
5. BSD-3-Clause
6. LGPL-3.0-or-later
7. GPL-3.0-or-later WITH GCC-exception-3.1
8. GPL-3.0-or-later
9. Other...
Enter your choice index (first is default):
>
Enter a comma (',') separated list of tags to help people find your crate: (default: '')
>
Using default: ''
Enter an optional Website URL for the crate: (default: '')
>
Using default: ''
✓ my_microbit_app initialized successfully.
sattmate@fuji-i3:~> cd my_microbit_app/
sattmate@fuji-i3:~/my_microbit_app> alr with microbit_bsp
The index can be periodically refreshed to make available recently published crates.
Do you want Alire to go online without asking in the future?
(You can update manually with `alr index --update-all` at any time.)
[Y] Yes [N] No (default is Yes)
Using default: Yes
◴ Updating index... remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 4 (from 1)
Unpacking objects: 100% (6/6), 9.55 KiB | 9.55 MiB/s, done.
From https://github.com/alire-project/alire-index
d3366dd..9ee60e0 stable-1.4.0 -> origin/stable-1.4.0
Updating d3366dd..9ee60e0
Fast-forward
index/li/lithophane/lithophane-0.1.0.toml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 index/li/lithophane/lithophane-0.1.0.toml
Requested changes:
✓ microbit_bsp ~0.2.1 (add)
Changes to dependency solution:
+ adl_middleware 0.1.1 (new,indirect)
+ cortex_m 0.2.0 (new,indirect)
+ embedded_components 0.1.0 (new,indirect)
+📦 gnat_arm_elf 11.2.4 (new,indirect,binary)
+ hal 0.1.0 (new,indirect)
+ microbit_bsp 0.2.1 (new)
+ nrf5x_hal 0.1.0 (new,indirect)
Do you want to proceed?
[Y] Yes [N] No (default is Yes)
Using default: Yes
ⓘ Deploying microbit_bsp=0.2.1...
Cloning into '/home/sattmate/.local/share/alire/releases/alr-1965-csmf.tmp'...
remote: Enumerating objects: 56, done.
remote: Counting objects: 100% (56/56), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 56 (delta 33), reused 45 (delta 26), pack-reused 0 (from 0)
Receiving objects: 100% (56/56), 30.09 KiB | 505.00 KiB/s, done.
Resolving deltas: 100% (33/33), done.
◴ Exploring /home/sattmate/.local/share/alire/releases/microbit_bsp_0.2.1_6e957a◷ Exploring .../src...
sattmate@fuji-i3:~/my_microbit_app> cd src/
sattmate@fuji-i3:~/my_microbit_app/src> ls
my_microbit_app.adb
sattmate@fuji-i3:~/my_microbit_app/src> cd ..
sattmate@fuji-i3:~/my_microbit_app> alr build
◵ Syncing build dir... embedded_components=0.1.0... Syncing embedded_components= ⓘ Building my_microbit_app=0.1.0-dev/my_microbit_app.gpr...
kb: info: can't find a toolchain for the following configuration: language 'Ada', target 'x86_64-linux', default runtime
kb: info: can't find a toolchain for the following configuration: language 'Ada', target 'x86_64-linux', default runtime
Setup
[mkdir] object directory for project HAL
[mkdir] library directory for project HAL
[mkdir] object directory for project Cortex_M0
[mkdir] library directory for project Cortex_M0
[mkdir] object directory for project NRF51
[mkdir] library directory for project NRF51
[mkdir] object directory for project Adl_Middleware
[mkdir] library directory for project Adl_Middleware
[mkdir] object directory for project Embedded_Components
[mkdir] library directory for project Embedded_Components
[mkdir] object directory for project Microbit_Bsp
[mkdir] library directory for project Microbit_Bsp
[mkdir] object directory for project My_Microbit_App
[mkdir] exec directory for project My_Microbit_App
adl_middleware.gpr:3:09: no compiler for language "Ada", cannot compile "logging_with_priority.ads"
gprbuild: *** compilation phase failed
error: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/sattmate/my_microbit_app/my_microbit_app.gpr"] exited with code 7
error: Compilation failed.
sattmate@fuji-i3:~/my_microbit_app>