Skip to content

Commit dbcdfba

Browse files
committed
some improvements
1 parent 62f811d commit dbcdfba

File tree

3 files changed

+13
-64
lines changed

3 files changed

+13
-64
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif
3131

3232
arm-linux-musleabihf:
3333
docker build --tag 'rust-musl-cross' musl
34-
docker run --rm -v $(CURDIR):/mnt/workspace -w /mnt/workspace rust-musl-cross musl/build.sh
34+
docker run --rm -v $(CURDIR):/mnt/workspace -w /mnt/workspace rust-musl-cross musl/build.sh arm-linux-musleabihf
3535

3636
base: check-base
3737
$(CURDIR)/base.bash $(NO_TTY_ARG)

config.mak

Lines changed: 0 additions & 60 deletions
This file was deleted.

musl/build.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
#!/usr/bin/env bash
22

3+
set -ex
4+
5+
if [ $# -ne 1 ]; then
6+
echo "usage: $0 target" 2>&1
7+
exit 1
8+
fi
9+
10+
target=$1
11+
312
git clone --depth 1 https://github.com/richfelker/musl-cross-make.git /tmp/musl
4-
cp config.mak /tmp/musl
13+
cp musl/config.mak /tmp/musl
514
export CFLAGS="-fPIC -g1 $CFLAGS"
6-
export TARGET=arm-linux-musleabihf
15+
export TARGET=$target
716
make -C /tmp/musl -j4
817
make -C /tmp/musl install
9-
tar -C "/tmp/musl" -czf arm-linux-musleabihf.tar.gz output/
18+
tar -C /tmp/musl -czf ${target}.tar.gz output/

0 commit comments

Comments
 (0)