This is not a very useful place to be.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Clear the previous environment
"--ignore-environment"
- # Change the working directory
- --chdir="${environ[LFS_BASEDIR]}/lfs"
+ # Change to the home directory
+ --chdir="${environ[HOME]}"
)
# Export the environment
local args=()
local pkg
+ local basedir="${BASEDIR}"
+
while [ $# -gt 0 ]; do
local arg="${1}"
shift
case "${arg}" in
--*)
+ case "${arg}" in
+ --chroot)
+ basedir="/usr/src"
+ ;;
+ esac
+
args+=( "${arg}" )
;;
done
# Execute the make command in the environment
- execute "${args[@]}" make --file="${pkg}" "$@"
+ execute "${args[@]}" make --directory="${basedir}/lfs" --file="${pkg}" "$@"
}
lfsmake1() {