From 472bf5092ac9f8778defb802ba318ff3e7f02f54 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 14 Jul 2015 12:07:15 +0200 Subject: [PATCH] xbps-src: print supported cross targets by inspecting the cross-profiles dir. --- xbps-src | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/xbps-src b/xbps-src index 21791d9ff86..85e95f95b05 100755 --- a/xbps-src +++ b/xbps-src @@ -1,6 +1,13 @@ #!/bin/bash # vim: set ts=4 sw=4 et: +print_cross_targets() { + local f + for f in common/cross-profiles/*.sh; do + f=${f%.sh}; f=${f##*/}; printf "\t$f\n" + done +} + usage() { cat << _EOF $(basename $0): [options] [arguments] @@ -114,19 +121,9 @@ zap Options: -a - Cross compile packages for this profile. Supported values: + Cross compile packages for this profile. Supported targets: - aarch64-musl - for ARM64 (LE Hard Float) Musl/Linux - aarch64 - for ARM64 (LE Hard Float) GNU/Linux - armv5te - for ARMv5 (LE Soft Float) GNU/Linux - armv6hf-musl - for ARMv6 EABI (LE Hard Float) Musl/Linux - armv6hf - for ARMv6 EABI (LE Hard Float) GNU/Linux - armv7hf-musl - for ARMv7 EABI (LE Hard Float) Musl/Linux - armv7hf - for ARMv7 EABI (LE Hard Float) GNU/Linux - i686-musl - for i686 Musl/Linux - i686 - for i686 GNU/Linux - mips-musl - for MIPS32 r2 (BE Soft Float) Musl/Linux - x86_64-musl - for x86_64 Musl/Linux +$(print_cross_targets) -C Do not remove build directory, automatic dependencies and package destdir after successful install.