mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-05 14:09:53 +03:00
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
# Its role is to ensure atomicity when saving downloaded files
|
||||
# back to BR2_DL_DIR, and not clutter BR2_DL_DIR with partial,
|
||||
# failed downloads.
|
||||
#
|
||||
# Call it with -h to see some help.
|
||||
|
||||
# To avoid cluttering BR2_DL_DIR, we download to a trashable
|
||||
# location, namely in $(BUILD_DIR).
|
||||
@@ -27,9 +25,8 @@ main() {
|
||||
local -a uris
|
||||
|
||||
# Parse our options; anything after '--' is for the backend
|
||||
while getopts ":hc:d:D:o:n:N:H:rf:u:q" OPT; do
|
||||
while getopts ":c:d:D:o:n:N:H:rf:u:q" OPT; do
|
||||
case "${OPT}" in
|
||||
h) help; exit 0;;
|
||||
c) cset="${OPTARG}";;
|
||||
d) dl_dir="${OPTARG}";;
|
||||
D) old_dl_dir="${OPTARG}";;
|
||||
@@ -213,48 +210,6 @@ main() {
|
||||
return ${rc}
|
||||
}
|
||||
|
||||
help() {
|
||||
cat <<_EOF_
|
||||
NAME
|
||||
${my_name} - download wrapper for Buildroot
|
||||
|
||||
SYNOPSIS
|
||||
${my_name} [OPTION]... -- [BACKEND OPTION]...
|
||||
|
||||
DESCRIPTION
|
||||
Wrapper script around different download mechanisms. Ensures that
|
||||
concurrent downloads do not conflict, that partial downloads are
|
||||
properly evicted without leaving temporary files, and that access
|
||||
rights are maintained.
|
||||
|
||||
-h This help text.
|
||||
|
||||
-u URIs
|
||||
The URI to get the file from, the URI must respect the format given in
|
||||
the example.
|
||||
You may give as many '-u URI' as you want, the script will stop at the
|
||||
frist successful download.
|
||||
|
||||
Example: backend+URI; git+http://example.com or http+http://example.com
|
||||
|
||||
-o FILE
|
||||
Store the downloaded archive in FILE.
|
||||
|
||||
-H FILE
|
||||
Use FILE to read hashes from, and check them against the downloaded
|
||||
archive.
|
||||
|
||||
Exit status:
|
||||
0 if OK
|
||||
!0 in case of error
|
||||
|
||||
ENVIRONMENT
|
||||
|
||||
BUILD_DIR
|
||||
The path to Buildroot's build dir
|
||||
_EOF_
|
||||
}
|
||||
|
||||
trace() { local msg="${1}"; shift; printf "%s: ${msg}" "${my_name}" "${@}"; }
|
||||
warn() { trace "${@}" >&2; }
|
||||
errorN() { local ret="${1}"; shift; warn "${@}"; exit ${ret}; }
|
||||
|
||||
2
support/misc/Vagrantfile
vendored
2
support/misc/Vagrantfile
vendored
@@ -12,7 +12,7 @@ VM_MEMORY=2048
|
||||
VM_CORES=1
|
||||
|
||||
Vagrant.configure('2') do |config|
|
||||
config.vm.box = 'bento/ubuntu-16.04'
|
||||
config.vm.box = 'ubuntu/bionic64'
|
||||
|
||||
config.vm.provider :vmware_fusion do |v, override|
|
||||
v.vmx['memsize'] = VM_MEMORY
|
||||
|
||||
@@ -35,6 +35,11 @@ class Builder(object):
|
||||
|
||||
def build(self):
|
||||
env = {"PATH": os.environ["PATH"]}
|
||||
if "http_proxy" in os.environ:
|
||||
self.logfile.write("Using system proxy: " +
|
||||
os.environ["http_proxy"] + "\n")
|
||||
env['http_proxy'] = os.environ["http_proxy"]
|
||||
env['https_proxy'] = os.environ["http_proxy"]
|
||||
cmd = ["make", "-C", self.builddir]
|
||||
ret = subprocess.call(cmd, stdout=self.logfile, stderr=self.logfile,
|
||||
env=env)
|
||||
|
||||
Reference in New Issue
Block a user