Mercurial > hg > aboriginal
comparison sources/functions.sh @ 898:db0f536aee7c
Fix hw-target builds so prerequisites build if they don't already exist.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 22 Nov 2009 03:56:04 -0600 |
parents | 850da666acc6 |
children | 726cac165450 |
comparison
equal
deleted
inserted
replaced
897:850da666acc6 | 898:db0f536aee7c |
---|---|
586 # Check if this target has a base architecture that's already been built. | 586 # Check if this target has a base architecture that's already been built. |
587 # If so, just tar it up and exit now. | 587 # If so, just tar it up and exit now. |
588 | 588 |
589 function check_for_base_arch() | 589 function check_for_base_arch() |
590 { | 590 { |
591 blank_tempdir "$STAGE_DIR" | |
592 blank_tempdir "$WORK" | |
593 | |
591 # If we're building something with a base architecture, symlink to actual | 594 # If we're building something with a base architecture, symlink to actual |
592 # target. | 595 # target. |
593 | 596 |
594 if [ "$ARCH" != "$ARCH_NAME" ] && [ -e "$BUILD/$STAGE_NAME-$ARCH" ] | 597 if [ "$ARCH" != "$ARCH_NAME" ] |
595 then | 598 then |
596 echo === Using existing $STAGE_NAME-"$ARCH" | |
597 | |
598 link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"} | 599 link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"} |
599 [ -e $STAGE_NAME-"$ARCH".tar.bz2 ] && | 600 [ -e $STAGE_NAME-"$ARCH".tar.bz2 ] && |
600 link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"}.tar.bz2 | 601 link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"}.tar.bz2 |
601 | 602 |
602 return 1 | 603 if [ -e "$BUILD/$STAGE_NAME-$ARCH" ] |
604 then | |
605 echo "=== Using existing ${STAGE_NAME}-$ARCH" | |
606 | |
607 return 1 | |
608 else | |
609 mkdir -p "$BUILD/$STAGE_NAME-$ARCH" || dienow | |
610 fi | |
603 fi | 611 fi |
604 } | 612 } |
605 | 613 |
606 function create_stage_tarball() | 614 function create_stage_tarball() |
607 { | 615 { |