in tools/build-image.py [0:0]
def build_image(base_dir, image, arch, version):
cmd = get_cmd("make")
my_env = os.environ.copy()
my_env["QUIET"] = "--quiet" # stop image build from being chatty
my_env["VERSION"] = version # force version, just be safe
my_env["HOST_ARCH"] = arch # the architecture override
my_env["REGISTRY"] = repository # repository override (test only)
command = [cmd, image]
# build the image using make
retcode = subprocess.call(command, cwd=base_dir, env=my_env, stdout=subprocess.DEVNULL)
if retcode:
fail("make image failed")