7 |
|
|
8 |
source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh |
source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh |
9 |
|
|
|
# override |
|
|
#BUILDROOT="/mnt/test-buildroot" |
|
|
#BUILD_ARCH=( x86_64 i686 ) |
|
|
#BUILDROOT_PROFILE="R11" |
|
|
#SMAGE_SVN_REPO="svn://cvs.magellan-linux.de/smage/trunk" |
|
|
#MAGE_SVN_REPO="svn://cvs.magellan-linux.de/mage/trunk" |
|
|
|
|
10 |
if [ ! -f ${BUILDROOT}/.stamps/mage_svn-checkout-ok ] |
if [ ! -f ${BUILDROOT}/.stamps/mage_svn-checkout-ok ] |
11 |
then |
then |
12 |
die "svn checkout of mage required. run buildserver-svn first." |
die "svn checkout of mage required. run buildserver-svn first." |
14 |
|
|
15 |
# create buildroot layout |
# create buildroot layout |
16 |
install -d ${BUILDROOT}/.stamps |
install -d ${BUILDROOT}/.stamps |
|
install -d ${BUILDROOT}/tmp/mage-tree |
|
17 |
install -d ${BUILDROOT}/ssh |
install -d ${BUILDROOT}/ssh |
18 |
for arch in ${BUILD_ARCH[*]} src |
for arch in ${BUILD_ARCH[*]} src |
19 |
do |
do |
20 |
install -d ${BUILDROOT}/${arch} |
install -d ${BUILDROOT}/${arch} |
21 |
|
install -d ${BUILDROOT}/mage-tree/${arch} |
22 |
install -d ${BUILDROOT}/packages/${arch} |
install -d ${BUILDROOT}/packages/${arch} |
23 |
install -d ${BUILDROOT}/meta/${arch} |
install -d ${BUILDROOT}/meta/${arch} |
24 |
install -d ${BUILDROOT}/build-info/${arch} |
install -d ${BUILDROOT}/build-info/${arch} |
34 |
mage-bootstrap \ |
mage-bootstrap \ |
35 |
--root ${BUILDROOT}/${arch} \ |
--root ${BUILDROOT}/${arch} \ |
36 |
--magerc ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/${arch}/mage.rc \ |
--magerc ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/${arch}/mage.rc \ |
37 |
--profile "${BUILDROOT_PROFILE}" \ |
--profile "${MAGE_PROFILE}" \ |
38 |
--basesystem "${BOOTSTRAP_BASESYSTEM}" \ |
--basesystem "${BOOTSTRAP_BASESYSTEM}" \ |
39 |
|| die "'${arch}' bootstrap" |
|| die "'${arch}' bootstrap" |
40 |
touch ${BUILDROOT}/.stamps/${arch}_bootstrap-ok |
touch ${BUILDROOT}/.stamps/${arch}_bootstrap-ok |