VirtualBox

Changeset 90118 in vbox for trunk/configure


Ignore:
Timestamp:
Jul 9, 2021 11:59:01 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145619
Message:

/configure, debian/rules, rpm/rules: More accurately control where the out directory lives.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r88425 r90118  
    7171ODIR="`pwd`/"
    7272ODIR_OVERRIDE=0
    73 OUT_PATH=""
    74 OUT_PATH_OVERRIDE=0
     73OUT_BASE_PATH=""
     74OUT_BASE_PATH_OVERRIDE=0
    7575SETUP_WINE=
    7676ONLY_ADDITIONS=0
     
    24162416  --with-openssl-dir=DIR   directory for OpenSSL headers/libraries
    24172417  --with-ow-dir=DIR        directory where Open Watcom can be found [$WATCOM]
    2418   --out-path=PATH          the folder to which configuration and build output
    2419                            should go
     2418  --out-base-dir=DIR       directory where configuration and build output
     2419                           should go, in subdirectory out
    24202420
    24212421Build type:
     
    26632663      ODIR_OVERRIDE=1
    26642664      ;;
    2665     --out-path=*)
    2666       out_path="`echo $option | cut -d'=' -f2`/"
    2667       if [ -d $out_path ]; then
    2668         saved_path="`pwd`"
    2669         cd $out_path
    2670         OUT_PATH="`pwd`"
    2671         cd $saved_path
    2672         OUT_PATH_OVERRIDE=1
     2665    --out-base-dir=*)
     2666      out_base_dir="`echo $option | cut -d'=' -f2`/"
     2667      if [ -d $out_base_dir ]; then
     2668        saved_pwd="$PWD"
     2669        cd $out_base_dir
     2670        OUT_BASE_PATH="`pwd`"
     2671        cd $saved_pwd
     2672        OUT_BASE_PATH_OVERRIDE=1
    26732673        if [ $ODIR_OVERRIDE -eq 0 ]; then
    26742674          # This variable has not *yet* been overridden.  That can still happen.
    2675           ODIR=$OUT_PATH/
     2675          ODIR=$OUT_BASE_PATH/
    26762676        fi
    26772677      else
    2678         echo "Error: invalid folder \"$out_path\" in option \"$option\""
     2678        echo "Error: invalid folder \"$out_base_dir\" in option \"$option\""
    26792679        exit 1
    26802680      fi
     
    27552755
    27562756# if we will be writing to a different out directory then set this up now
    2757 if [ $OUT_PATH_OVERRIDE -eq 1 ]; then
    2758   echo "AUTOCFG=$OUT_PATH/AutoConfig.kmk" >> $ENV
     2757if [ $ODIR_OVERRIDE -eq 1 ]; then
     2758  echo "AUTOCFG=$CFG" >> $ENV
    27592759  echo "export AUTOCFG" >> $ENV
    2760   echo "LOCALCFG=$OUT_PATH/LocalConfig.kmk" >> $ENV
    2761   echo "export LOCALCFG" >> $ENV
    2762   echo "PATH_OUT_BASE=$OUT_PATH" >> $ENV
     2760fi
     2761if [ $OUT_BASE_PATH_OVERRIDE -eq 1 ]; then
     2762  echo "PATH_OUT_BASE=$OUT_BASE_PATH" >> $ENV
    27632763  echo "export PATH_OUT_BASE" >> $ENV
    27642764fi
     
    29572957echo ""
    29582958if [ "$OS" = "linux" ]; then
    2959     if [ $OUT_PATH_OVERRIDE -eq 1 ]; then
    2960       vbox_out_path=$OUT_PATH
     2959    if [ $OUT_BASE_PATH_OVERRIDE -eq 1 ]; then
     2960      out_base_dir=$OUT_BASE_PATH
    29612961    else
    2962       vbox_out_path=./out
     2962      out_base_dir=.
    29632963    fi
    29642964    echo "To compile the kernel modules, do:"
    29652965    echo ""
    2966     echo "  cd $vbox_out_path/$OS.$TARGET_MACHINE/$BUILD_TYPE/bin/src"
     2966    echo "  cd $out_base_dir/out/$OS.$TARGET_MACHINE/$BUILD_TYPE/bin/src"
    29672967    echo "  make"
    29682968    echo ""
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette