File tree Expand file tree Collapse file tree 3 files changed +13
-64
lines changed Expand file tree Collapse file tree 3 files changed +13
-64
lines changed Original file line number Diff line number Diff line change 3131
3232arm-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
3636base : check-base
3737 $(CURDIR ) /base.bash $(NO_TTY_ARG )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+
312git 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
514export CFLAGS=" -fPIC -g1 $CFLAGS "
6- export TARGET=arm-linux-musleabihf
15+ export TARGET=$target
716make -C /tmp/musl -j4
817make -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/
You can’t perform that action at this time.
0 commit comments