Magellan Linux

Diff of /trunk/include/multilib.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 21293 by niro, Wed Jun 11 11:10:25 2014 UTC revision 29792 by niro, Thu Oct 12 11:37:16 2017 UTC
# Line 7  export MULTILIB_BUILD="true" Line 7  export MULTILIB_BUILD="true"
7  # be verbose or nor (true|false}  # be verbose or nor (true|false}
8  : ${MULTILIB_VERBOSE="true"}  : ${MULTILIB_VERBOSE="true"}
9    
10    # enter SRCDIR of each abi an abi runs
11    : ${ABI_DO_NOT_ENTER_SRCDIR="true"}
12    
13  # multilib should call all dependant includes, which gets overridden  # multilib should call all dependant includes, which gets overridden
14  sminclude mtools  sminclude mtools
15    
# Line 42  then Line 45  then
45   # the var ist decided with our common eval+echo magic   # the var ist decided with our common eval+echo magic
46   if [[ -z ${SDEPEND} ]]   if [[ -z ${SDEPEND} ]]
47   then   then
48   SDEPEND="\$(eval echo \\\$EMUL_LINUX_32_SDEPEND_\${ARCH/i*86/x86} | tr ';' '\n')"   SDEPEND="$(marchsdepend EMUL_LINUX_32_SDEPEND)"
49   else   else
50   SDEPEND="${SDEPEND}   SDEPEND="${SDEPEND}
51   \$(eval echo \\\$EMUL_LINUX_32_SDEPEND_\${ARCH/i*86/x86} | tr ';' '\n')"   $(marchsdepend EMUL_LINUX_32_SDEPEND)"
52   fi   fi
53  fi  fi
54    
# Line 182  only-m32() Line 185  only-m32()
185   # export this for mpatch etc (to repect only-${abi})   # export this for mpatch etc (to repect only-${abi})
186   export MULTILIB_ONLY_ABI=${abi}   export MULTILIB_ONLY_ABI=${abi}
187    
188   cd ${SRCDIR}-${abi}/${SRCSUBDIR}   if [[ ${ABI_DO_NOT_ENTER_SRCDIR} != true ]]
189     then
190     cd ${SRCDIR}-${abi}/${SRCSUBDIR}
191     fi
192   abi-${abi} $@ || die   abi-${abi} $@ || die
193    
194   # unset this is very important   # unset this is very important
# Line 203  only-m64() Line 209  only-m64()
209   # export this for mpatch etc (to repect only-${abi})   # export this for mpatch etc (to repect only-${abi})
210   export MULTILIB_ONLY_ABI=${abi}   export MULTILIB_ONLY_ABI=${abi}
211    
212   cd ${SRCDIR}-${abi}/${SRCSUBDIR}   if [[ ${ABI_DO_NOT_ENTER_SRCDIR} != true ]]
213     then
214     cd ${SRCDIR}-${abi}/${SRCSUBDIR}
215     fi
216   abi-${abi} $@ || die   abi-${abi} $@ || die
217    
218   # unset this is very important   # unset this is very important
# Line 217  all-abis() Line 226  all-abis()
226   local abi   local abi
227   for abi in ${MULTILIB_ABIS}   for abi in ${MULTILIB_ABIS}
228   do   do
229   cd ${SRCDIR}-${abi}/${SRCSUBDIR}   if [[ ${ABI_DO_NOT_ENTER_SRCDIR} != true ]]
230     then
231     cd ${SRCDIR}-${abi}/${SRCSUBDIR}
232     fi
233   abi-${abi} $@ || die   abi-${abi} $@ || die
234   done   done
235  }  }
# Line 360  cmake_src_check() Line 372  cmake_src_check()
372    
373   for abi in ${abis_to_run}   for abi in ${abis_to_run}
374   do   do
375   cd ${BUILDDIR}/build-${abi}   # honor inside and outside build-dir builds
376     if [ -d ${BUILDDIR}/build-${abi} ]
377     then
378     cd ${BUILDDIR}/build-${abi}
379     else
380     cd ${SRCDIR}-${abi}
381     fi
382   mmake -j1 -k check || die   mmake -j1 -k check || die
383   done   done
384  }  }
# Line 382  cmake_src_install() Line 400  cmake_src_install()
400    
401   for abi in ${abis_to_run}   for abi in ${abis_to_run}
402   do   do
403   # install build outside of the source dir   # honor inside and outside build-dir builds
404   cd ${BUILDDIR}/build-${abi}   if [ -d ${BUILDDIR}/build-${abi} ]
405     then
406     cd ${BUILDDIR}/build-${abi}
407     else
408     cd ${SRCDIR}-${abi}
409     fi
410   abi-${abi} oldmmake DESTDIR=${BINDIR} $@ install || die   abi-${abi} oldmmake DESTDIR=${BINDIR} $@ install || die
411   done   done
412  }  }

Legend:
Removed from v.21293  
changed lines
  Added in v.29792