Add new configuration option --no-downloads.

* If --no-downloads has been given, Haiku will be built without
  trying to download anything, all required packages need to be put
  into the download folder manually (the build will stop on missing
  packages).
* As the required HaikuPorts repository can't be downloaded in this
  mode, a local repository is created during the build, which only
  contains the packages available in the downloads folder.

This is useful for building Haiku completely from source.
This commit is contained in:
Oliver Tappe
2014-05-01 13:03:43 +02:00
parent 3d9c3125ac
commit aa2e5eca78
4 changed files with 73 additions and 15 deletions
+4
View File
@@ -468,6 +468,10 @@ rule DownloadLocatedFile target : url : source
actions DownloadLocatedFile1
{
source="$(2)"
if [ "$(HAIKU_NO_DOWNLOADS)" = 1 ]; then
echo "ERROR: Would need to download $(URL), but HAIKU_NO_DOWNLOADS is set!" ;
exit 1
fi
wget -O "$(1)" $(URL) || exit 1
touch "$(1)"
}