mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 21:33:08 +00:00
6f7e6b9969
Currently, only libelf has a for-target step - but it generalizes the step to hook other libraries into this step. Signed-off-by: Alexey Neyman <stilor@att.net>
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
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
|
|
}
|
|
|
|
# Build the companion libs facilities for target
|
|
do_companion_libs_for_target() {
|
|
for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
|
|
do_${f}_for_target
|
|
done
|
|
}
|
|
|