Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# flutter engine binaries for armv7, aarch64, x64

This repo contains flutter engine binaries (in the https://github.com/ardera/flutter-engine-binaries-for-arm filesystem layout) for armv7 and aarch64.
The binaries come in 2 variants: generic, and tuned for the Pi 4 CPU.
The binaries come in variants: generic, and tuned for the Pi 3, Pi 4, and Pi 5 CPUs.

# 📦 Downloads

Expand Down Expand Up @@ -46,6 +46,12 @@ arm_cpu = "cortex-a72+nocrypto"
arm_tune = "cortex-a72"
```

When tuning for pi 5:
```
arm_cpu = "cortex-a76"
arm_tune = "cortex-a76"
```

For both armv7 and aarch64, the engine is built against the sysroot provided by the engine build scripts, which is some debian sid sysroot from 2020.
(See https://github.com/flutter/buildroot/blob/master/build/linux/sysroot_scripts/install-sysroot.py)

Expand All @@ -59,6 +65,7 @@ This will result in the clang compiler being invoked with the following args:
| pi3 | `--target=armv7-linux-gnueabihf -mcpu=cortex-a53+nocrypto -mtune=cortex-a53`[^3] |
| aarch64-generic | `--target=aarch64-linux-gnu -mcpu=generic -mtune=generic` |
| pi4-64 | `--target=aarch64-linux-gnu -mcpu=cortex-a72+nocrypto -mtune=cortex-a72`[^1] |
| pi5-64 | `--target=aarch64-linux-gnu -mcpu=cortex-a76 -mtune=cortex-a76` |
| pi3-64 | `--target=aarch64-linux-gnu -mcpu=cortex-a53+nocrypto -mtune=cortex-a53`[^3] |
| x64-generic | `--target=x86_64-unknown-linux-gnu -mcpu=generic -mtune=generic` |

Expand Down
9 changes: 8 additions & 1 deletion workflow_tool/lib/workflow_tool.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ enum Arch {
enum CPU {
generic('generic', 'generic'),
pi3('cortex-a53+nocrypto', 'cortex-a53'),
pi4('cortex-a72+nocrypto', 'cortex-a72');
pi4('cortex-a72+nocrypto', 'cortex-a72'),
pi5('cortex-a76', 'cortex-a76');

const CPU(this.compilerCpu, this.cmopilerTune);

Expand Down Expand Up @@ -136,6 +137,12 @@ enum Target {
name: 'pi4-64',
triple: 'aarch64-linux-gnu',
),
pi5_64(
arch: Arch.arm64,
cpu: CPU.pi5,
name: 'pi5-64',
triple: 'aarch64-linux-gnu',
),
riscv64(
arch: Arch.riscv64,
name: 'riscv64-generic',
Expand Down
Loading