]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
make-include: Some minor changes.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Aug 2008 18:41:55 +0000 (20:41 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Aug 2008 18:41:55 +0000 (20:41 +0200)
Renamed /installer to /pomona.
Mounting /cdrom, /images, /pomona into chroot.
Don't run stage5 when doing an embedded build.

tools/make-include

index c144d8b021477542503a4b761c7bb6df827d32a7..af5c0ec719a1dd3b1dc02e9a61e9d78bb1985d86 100644 (file)
@@ -140,7 +140,7 @@ mkdir $BASEDIR/log_${MACHINE}/ 2>/dev/null
 TOOLS_DIR=/tools_${MACHINE}
 
 # Set up /installer
-INSTALLER_DIR=/installer
+INSTALLER_DIR=/pomona
 
 # A place to build the iso
 CDROM_DIR=/cdrom
@@ -572,7 +572,7 @@ prepareenv() {
        unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
 
        # Make some extra directories
-       mkdir -p $BASEDIR/build_${MACHINE}/{$TOOLS_DIR,cdrom} 2>/dev/null
+       mkdir -p $BASEDIR/build_${MACHINE}/{$TOOLS_DIR,cdrom,$INSTALLER_DIR,$IMAGES_DIR} 2>/dev/null
        mkdir -p $BASEDIR/{cache,ccache,distcc} 2>/dev/null
        mkdir -p $BASEDIR/cache/{toolchains,patches,tarballs} 2>/dev/null
        mkdir -p $LFS/{$TOOLS_DIR,usr/src} 2>/dev/null
@@ -598,6 +598,8 @@ prepareenv() {
        mount --bind $BASEDIR/src                               $LFS/usr/src/src
        mount --bind $BASEDIR/build_${MACHINE}/$TOOLS_DIR       $LFS/$TOOLS_DIR
        mount --bind $BASEDIR/build_${MACHINE}/$CDROM_DIR       $LFS/$CDROM_DIR
+       mount --bind $BASEDIR/build_${MACHINE}/$INSTALLER_DIR   $LFS/$INSTALLER_DIR
+       mount --bind $BASEDIR/build_${MACHINE}/$IMAGES_DIR      $LFS/$IMAGES_DIR
 
        # Run LFS static binary creation scripts one by one
        export CCACHE_DIR=$BASEDIR/ccache
@@ -660,8 +662,10 @@ build() {
        beautify build_stage "Building miscellaneous"
        misc_build
 
+if [ "${EMB}" -eq "0" ]; then
        beautify build_stage "Building installer"
        installer_build
+fi
 
        beautify build_stage "Building packages"
        packages_build