Magellan Linux

Diff of /trunk/mage-buildserver/buildserver-functions.sh

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

revision 2777 by niro, Thu Aug 28 09:12:09 2014 UTC revision 2779 by niro, Thu Aug 28 09:18:44 2014 UTC
# Line 26  runarch-script() Line 26  runarch-script()
26    
27   # only allow the right arches   # only allow the right arches
28   case ${arch} in   case ${arch} in
29   i*86|x86_64) buildroot="${BUILDROOT}/${arch}"; os_arch="${arch}" ;;   i*86|x86_64|src|playground*) buildroot="${BUILDROOT}/${arch}"; os_arch="$(os-arch ${arch})" ;;
  src) os_arch="$(source ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/src/mage.rc; echo ${ARCH})"; buildroot="${BUILDROOT}/src" ;;  
30   *) die "unknown architecture '${arch}'" ;;   *) die "unknown architecture '${arch}'" ;;
31   esac   esac
32    
# Line 35  runarch-script() Line 34  runarch-script()
34    
35   setarch "${os_arch}" systemd-nspawn \   setarch "${os_arch}" systemd-nspawn \
36   --directory="${buildroot}" \   --directory="${buildroot}" \
37   --bind=${BUILDROOT}/tmp/mage-tree:/usr/mage \   --bind=${BUILDROOT}/mage-tree/${arch}:/usr/mage \
38   --bind=${BUILDROOT}/svn/mage/include:/usr/mage/include \   --bind=${BUILDROOT}/svn/mage/include:/usr/mage/include \
39   --bind=${BUILDROOT}/svn/mage/profiles:/usr/mage/profiles \   --bind=${BUILDROOT}/svn/mage/profiles:/usr/mage/profiles \
40   --bind=${BUILDROOT}/svn/smage:/var/cache/mage/smage \   --bind=${BUILDROOT}/svn/smage:/var/cache/mage/smage \
# Line 62  runarch() Line 61  runarch()
61    
62   # only allow the right arches   # only allow the right arches
63   case ${arch} in   case ${arch} in
64   i*86|x86_64|src) buildroot="${BUILDROOT}/${arch}"; runrc="${buildroot}/.runrc" ;;   i*86|x86_64|src|playground*) buildroot="${BUILDROOT}/${arch}"; runrc="${buildroot}/.runrc" ;;
65   *) die "unknown architecture '${arch}'" ;;   *) die "unknown architecture '${arch}'" ;;
66   esac   esac
67    

Legend:
Removed from v.2777  
changed lines
  Added in v.2779