crosstool-ng/scripts/build/companion_libs.sh
Yann Diorcet (diorcet yann 0be070e5b7 complibs: introduce generic multi-complibs infrastructure
Use the same method as companion tools for providing generic and
extendable companion libs.

Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com>
Message-Id: <515c5c4635d99ebe4877.1353074410@macbook-smorlat.local>
Patchwork-Id: 199613
2012-11-16 14:59:27 +01:00

40 lines
980 B
Bash

# Wrapper to build the companion libs facilities
# List all companion tools facilities, and parse their scripts
CT_COMP_LIBS_FACILITY_LIST=
for f in "${CT_LIB_DIR}/scripts/build/companion_libs/"*.sh; do
_f="$(basename "${f}" .sh)"
_f="${_f#???-}"
. "${f}"
CT_COMP_LIBS_FACILITY_LIST="${CT_COMP_LIBS_FACILITY_LIST} ${_f}"
done
# Download the companion libs facilities
do_companion_libs_get() {
for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
do_${f}_get
done
}
# Extract and patch the companion libs facilities
do_companion_libs_extract() {
for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
do_${f}_extract
done
}
# Build the companion libs facilities for build
do_companion_libs_for_build() {
for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
do_${f}_for_build
done
}
# Build the companion libs facilities for host
do_companion_libs_for_host() {
for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
do_${f}_for_host
done
}