7 |
# be verbose or nor (true|false} |
# be verbose or nor (true|false} |
8 |
: ${MULTILIB_VERBOSE="true"} |
: ${MULTILIB_VERBOSE="true"} |
9 |
|
|
|
# enter SRCDIR of each abi an abi runs |
|
|
: ${ABI_DO_NOT_ENTER_SRCDIR="true"} |
|
|
|
|
10 |
# multilib should call all dependant includes, which gets overridden |
# multilib should call all dependant includes, which gets overridden |
11 |
sminclude mtools |
sminclude mtools |
12 |
|
|
113 |
fi |
fi |
114 |
|
|
115 |
# run any given command |
# run any given command |
116 |
|
if [[ ${MULTILIB_VERBOSE} = true ]] |
117 |
|
then |
118 |
|
echo -e "${COLGREEN}Executing:${COLDEFAULT} '$@'" |
119 |
|
fi |
120 |
eval $@ || die |
eval $@ || die |
121 |
|
|
122 |
unset ABI CC CXX ABI_LIBDIR |
unset ABI CC CXX ABI_LIBDIR |
166 |
fi |
fi |
167 |
|
|
168 |
# run any given command |
# run any given command |
169 |
|
if [[ ${MULTILIB_VERBOSE} = true ]] |
170 |
|
then |
171 |
|
echo -e "${COLGREEN}Executing:${COLDEFAULT} '$@'" |
172 |
|
fi |
173 |
eval $@ || die |
eval $@ || die |
174 |
|
|
175 |
unset ABI CC CXX ABI_LIBDIR |
unset ABI CC CXX ABI_LIBDIR |
190 |
# export this for mpatch etc (to repect only-${abi}) |
# export this for mpatch etc (to repect only-${abi}) |
191 |
export MULTILIB_ONLY_ABI=${abi} |
export MULTILIB_ONLY_ABI=${abi} |
192 |
|
|
193 |
if [[ ${ABI_DO_NOT_ENTER_SRCDIR} != true ]] |
cd ${SRCDIR}-${abi}/${SRCSUBDIR} |
|
then |
|
|
cd ${SRCDIR}-${abi}/${SRCSUBDIR} |
|
|
fi |
|
194 |
abi-${abi} $@ || die |
abi-${abi} $@ || die |
195 |
|
|
196 |
# unset this is very important |
# unset this is very important |
211 |
# export this for mpatch etc (to repect only-${abi}) |
# export this for mpatch etc (to repect only-${abi}) |
212 |
export MULTILIB_ONLY_ABI=${abi} |
export MULTILIB_ONLY_ABI=${abi} |
213 |
|
|
214 |
if [[ ${ABI_DO_NOT_ENTER_SRCDIR} != true ]] |
cd ${SRCDIR}-${abi}/${SRCSUBDIR} |
|
then |
|
|
cd ${SRCDIR}-${abi}/${SRCSUBDIR} |
|
|
fi |
|
215 |
abi-${abi} $@ || die |
abi-${abi} $@ || die |
216 |
|
|
217 |
# unset this is very important |
# unset this is very important |
225 |
local abi |
local abi |
226 |
for abi in ${MULTILIB_ABIS} |
for abi in ${MULTILIB_ABIS} |
227 |
do |
do |
228 |
if [[ ${ABI_DO_NOT_ENTER_SRCDIR} != true ]] |
cd ${SRCDIR}-${abi}/${SRCSUBDIR} |
|
then |
|
|
cd ${SRCDIR}-${abi}/${SRCSUBDIR} |
|
|
fi |
|
229 |
abi-${abi} $@ || die |
abi-${abi} $@ || die |
230 |
done |
done |
231 |
} |
} |