debian: stx tool: std/rt support

Make sure the stx tool passes std/rt flags to download and build scripts.

TESTS
===========================

stx build download -s -t std
stx build download -s -t rt
stx build download -b -t std
stx build download -b -t rt

stx build world -t std
stx build world -t rt

stx build image -t std
stx build image -t rt

Story: 2009897
Task: 45279

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I7f26239fd6bd3f8fb1233a64679dd7c076e76db8
This commit is contained in:
Davlet Panech 2022-05-04 23:18:00 -04:00
parent 3ecdba599f
commit 65ecdbc0d8
2 changed files with 15 additions and 2 deletions

View File

@ -43,7 +43,14 @@ class HandleBuildTask:
self.logger.error('Please use "stx build -h" to show the help')
sys.exit(1)
cmd = prefixcmd + '"build-image -t ' + args.buildtype + '"\''
if args.buildtype == 'std':
build_type_opt = "--std"
elif args.buildtype == 'rt':
build_type_opt = "--rt"
else:
build_type_opt = ''
cmd = prefixcmd + '"build-image ' + build_type_opt + '"\''
else:
cmd = prefixcmd + '"build-image"\''
@ -101,6 +108,9 @@ class HandleBuildTask:
if args.force:
cmd = cmd + '--clean_mirror '
if args.buildtype:
cmd = cmd + f'-B {args.buildtype} '
cmd = cmd + '"\''
return cmd
@ -120,6 +130,9 @@ class HandleBuildTask:
if args.enable_test:
cmd = cmd + '--test '
if args.buildtype:
cmd = cmd + f'-b {args.buildtype} '
cmd = cmd + '"\''
return cmd

View File

@ -45,7 +45,7 @@ To build all packages:
build-pkgs -a | build-pkgs -p <packageA,packageB...>
To make image:
build-image [ -t std|rt ]
build-image [ --std|--rt ]
EOF
fi