mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Kernel: T7539: add option to only install build dependencies for development
This commit is contained in:
parent
8fcd1e5a8e
commit
f92db23cdb
@ -268,6 +268,7 @@ if __name__ == '__main__':
|
||||
arg_parser = ArgumentParser()
|
||||
arg_parser.add_argument('--config', default='package.toml', help='Path to the package configuration file')
|
||||
arg_parser.add_argument('--packages', nargs='+', help='Names of packages to build (default: all)', default=[])
|
||||
arg_parser.add_argument('--install-dependencies', '-i', help='Only install build dependencies', action='store_true')
|
||||
args = arg_parser.parse_args()
|
||||
|
||||
# Load package configuration
|
||||
@ -282,6 +283,8 @@ if __name__ == '__main__':
|
||||
global_dependencies = config.get('dependencies', {}).get('packages', [])
|
||||
if global_dependencies:
|
||||
ensure_dependencies(global_dependencies)
|
||||
if args.install_dependencies:
|
||||
exit(0)
|
||||
|
||||
packages = config['packages']
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user