Created
February 17, 2025 10:09
-
-
Save a3f/46a09e6a500e0c0c9199d1661c3320f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
RUSTFLAGS='-C link-arg=-s -Clinker=arm-linux-gnueabihf-ld' cargo build --profile=minimal --target armv7-unknown-linux-musleabihf | |
outdir=$PWD | |
tmpdir=$(mktemp -d) | |
cp target/armv7-unknown-linux-musleabihf/minimal/init $tmpdir/ | |
cd $tmpdir | |
find . | cpio -o -H newc | gzip > $outdir/rsinit.cpio.gz | |
cd $outdir | |
rm -rf $tmpdir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment