blob: b0cb37d1e39d7e1052db2324adb37e3a9db031f2 [file] [log] [blame]
Cindy Linc06b4ea2022-01-27 18:13:04 +00001# Copyright 2022 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""build_packages updates the set of binary packages needed by Chrome OS.
6
7The build_packages process cross compiles all packages that have been
8updated into the given sysroot and builds binary packages as a side-effect.
9The output packages will be used by the build_image script to create a
10bootable Chrome OS image.
11"""
12
13import os
14
15from chromite.lib import constants
16from chromite.lib import cros_build_lib
17
18
19def main(argv):
20 cmd = [
21 'bash',
22 os.path.join(constants.CROSUTILS_DIR, 'build_packages.sh'),
23 '--script-is-run-only-by-chromite-and-not-users'
24 ]
25 cmd.extend(argv)
26 try:
27 cros_build_lib.run(cmd)
28 except cros_build_lib.RunCommandError as e:
29 cros_build_lib.Die(e)