kanidm/platform/crossbuild
Firstyear d09c2448ff
1481 2024 access control rework (#2366)
Rework default access controls to better separate roles and access profiles.
2023-12-17 23:10:13 +00:00
..
ubuntu-20.04 Unix crossbuild scripts and docs (#2326) 2023-11-27 06:30:21 +00:00
ubuntu-22.04 Unix crossbuild scripts and docs (#2326) 2023-11-27 06:30:21 +00:00
build.sh Unixd build/debugging updates (#2350) 2023-12-03 06:34:02 +00:00
README.md 1481 2024 access control rework (#2366) 2023-12-17 23:10:13 +00:00

Cross-building things using cargo cross

Here be dragons.

  1. Get a drink. You'l need it.
  2. Install cargo-cross
  3. Drink the drink.

Building Ubuntu 20.04 things

Make sure you're including --release because reasons.

CROSS_CONFIG=platform/crossbuild/ubuntu-20.04/Cross.toml \
    cross build --target aarch64-unknown-linux-gnu \
        --bin kanidm_unixd \
        --bin kanidm_unixd_tasks \
        --bin kanidm_ssh_authorizedkeys \
        --bin kanidm-unix \
        --release

Things will end up in ./target/aarch64-unknown-linux-gnu/release/

Building Ubuntu 22.04 things

Make sure you're including --release because reasons.

CROSS_CONFIG=platform/crossbuild/ubuntu-22.04/Cross.toml \
    cross build --target aarch64-unknown-linux-gnu \
        --bin kanidm_unixd \
        --bin kanidm_unixd_tasks \
        --bin kanidm_ssh_authorizedkeys \
        --bin kanidm-unix \
        --release

Things will end up in ./target/aarch64-unknown-linux-gnu/release/