mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-04-19 15:34:58 +02:00
Fix: del riscv32
This commit is contained in:
parent
ed52296c71
commit
3278ec1f9c
@ -21,10 +21,11 @@ function Init() {
|
|||||||
function Help() {
|
function Help() {
|
||||||
echo "-h: help"
|
echo "-h: help"
|
||||||
echo "-t: test build only"
|
echo "-t: test build only"
|
||||||
|
echo "-T: targets file path or targets string"
|
||||||
}
|
}
|
||||||
|
|
||||||
function ParseArgs() {
|
function ParseArgs() {
|
||||||
while getopts "ht" arg; do
|
while getopts "htT:" arg; do
|
||||||
case $arg in
|
case $arg in
|
||||||
h)
|
h)
|
||||||
Help
|
Help
|
||||||
@ -33,6 +34,9 @@ function ParseArgs() {
|
|||||||
t)
|
t)
|
||||||
TEST_BUILD_ONLY="1"
|
TEST_BUILD_ONLY="1"
|
||||||
;;
|
;;
|
||||||
|
T)
|
||||||
|
TARGETS_FILE="$OPTARG"
|
||||||
|
;;
|
||||||
?)
|
?)
|
||||||
echo "unkonw argument"
|
echo "unkonw argument"
|
||||||
exit 1
|
exit 1
|
||||||
@ -43,7 +47,8 @@ function ParseArgs() {
|
|||||||
|
|
||||||
function Build() {
|
function Build() {
|
||||||
TARGET="$1"
|
TARGET="$1"
|
||||||
make TARGET=${TARGET} GCC_VER="11.4.0" \
|
make TARGET=${TARGET} \
|
||||||
|
GCC_VER="11.4.0" \
|
||||||
MUSL_VER="1.2.4" \
|
MUSL_VER="1.2.4" \
|
||||||
BINUTILS_VER="2.41" \
|
BINUTILS_VER="2.41" \
|
||||||
GMP_VER="6.3.0" \
|
GMP_VER="6.3.0" \
|
||||||
@ -99,25 +104,35 @@ powerpc64-linux-musl
|
|||||||
powerpc64le-linux-musl
|
powerpc64le-linux-musl
|
||||||
powerpcle-linux-musl
|
powerpcle-linux-musl
|
||||||
powerpcle-linux-muslsf
|
powerpcle-linux-muslsf
|
||||||
riscv32-linux-musl
|
|
||||||
riscv64-linux-musl
|
riscv64-linux-musl
|
||||||
s390x-linux-musl
|
s390x-linux-musl
|
||||||
x86_64-linux-musl
|
x86_64-linux-musl
|
||||||
x86_64-linux-muslx32'
|
x86_64-linux-muslx32'
|
||||||
|
|
||||||
function BuildAll() {
|
function BuildAll() {
|
||||||
# while read line; do
|
if [ "$TARGETS_FILE" ]; then
|
||||||
# if [ -z "$line" ] || [ "${line:0:1}" == "#" ]; then
|
if [ -f "$TARGETS_FILE" ]; then
|
||||||
# continue
|
while read line; do
|
||||||
# fi
|
|
||||||
# Build "$line"
|
|
||||||
# done <scripts/triples.txt
|
|
||||||
|
|
||||||
for line in $ALL_TARGETS; do
|
|
||||||
if [ -z "$line" ] || [ "${line:0:1}" == "#" ]; then
|
if [ -z "$line" ] || [ "${line:0:1}" == "#" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
Build "$line"
|
Build "$line"
|
||||||
|
done <"$TARGETS_FILE"
|
||||||
|
return
|
||||||
|
else
|
||||||
|
TARGETS="$TARGETS_FILE"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
TARGETS="$ALL_TARGETS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for line in $TARGETS; do
|
||||||
|
if [ -z "$line" ] || [ "${line:0:1}" == "#" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
for target in ${line//,/ }; do
|
||||||
|
Build "$target"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ powerpc64-linux-musl
|
|||||||
powerpc64le-linux-musl
|
powerpc64le-linux-musl
|
||||||
powerpcle-linux-musl
|
powerpcle-linux-musl
|
||||||
powerpcle-linux-muslsf
|
powerpcle-linux-muslsf
|
||||||
riscv32-linux-musl
|
|
||||||
riscv64-linux-musl
|
riscv64-linux-musl
|
||||||
s390x-linux-musl
|
s390x-linux-musl
|
||||||
sh2-linux-musl
|
sh2-linux-musl
|
||||||
|
Loading…
Reference in New Issue
Block a user