X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fmain;h=280123057631fac354730e45fb6c421b312c1287;hb=3a7d016a0246156de63a6f98bbf5be2e95230060;hp=dea3d93e5db66e8f75f4d85ee14759d12adbed15;hpb=247bd6736180cd47e5a7e6745236305783bc3e1b;p=hvlinux.git diff --git a/functions/main b/functions/main index dea3d93..2801230 100644 --- a/functions/main +++ b/functions/main @@ -870,6 +870,7 @@ indicate_pkg_build_complete() # Options: # -c Do not decompress package # -d DIR Change to directory DIR before configuring and building. +# -i DIR Installation directory (for cross-compilation, stage1) # -j Disable parallel make for this package # -l Unique identification label in 'install.log' # (default is package name and version) @@ -892,11 +893,12 @@ ipkg() export SRC_DIR="" # Global variable, source directory export BUILD_DIR="" # Global variable, build directory export SRC_SUBDIR="" # Global variable + export INSTALL_DIR="" # Global variable, installation directory export ENABLE_DEPENDENCY_TRACKING="0" local HVMAKE_ORIG=${HVMAKE} - while getopts "cd:jl:m:s:t" flag ;do + while getopts "cd:i:jl:m:s:t" flag ;do case ${flag} in c) # Do not decompress package @@ -905,6 +907,9 @@ ipkg() d) SRC_SUBDIR=${OPTARG} ;; + i) + INSTALL_DIR=${OPTARG} + ;; j) # Disable parallel make only for this package HVMAKE="make"