Skip to content

Commit f92db23

Browse files
committed
Kernel: T7539: add option to only install build dependencies for development
1 parent 8fcd1e5 commit f92db23

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • scripts/package-build/linux-kernel

scripts/package-build/linux-kernel/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ def build_nat_rtsp(commit_id, scm_url):
268268
arg_parser = ArgumentParser()
269269
arg_parser.add_argument('--config', default='package.toml', help='Path to the package configuration file')
270270
arg_parser.add_argument('--packages', nargs='+', help='Names of packages to build (default: all)', default=[])
271+
arg_parser.add_argument('--install-dependencies', '-i', help='Only install build dependencies', action='store_true')
271272
args = arg_parser.parse_args()
272273

273274
# Load package configuration
@@ -282,6 +283,8 @@ def build_nat_rtsp(commit_id, scm_url):
282283
global_dependencies = config.get('dependencies', {}).get('packages', [])
283284
if global_dependencies:
284285
ensure_dependencies(global_dependencies)
286+
if args.install_dependencies:
287+
exit(0)
285288

286289
packages = config['packages']
287290

0 commit comments

Comments
 (0)