image.py: cmd_build(): add profile_name parameter
This commit is contained in:
parent
61476aae62
commit
0cec961288
1 changed files with 4 additions and 3 deletions
7
image.py
7
image.py
|
@ -220,10 +220,11 @@ def cmd_image():
|
||||||
|
|
||||||
|
|
||||||
@cmd_image.command(name='build')
|
@cmd_image.command(name='build')
|
||||||
def cmd_build():
|
@click.argument('profile_name', required=False)
|
||||||
|
def cmd_build(profile_name: str = None):
|
||||||
enforce_wrap()
|
enforce_wrap()
|
||||||
profile = config.get_profile()
|
profile = config.get_profile(profile_name)
|
||||||
device, flavour = get_device_and_flavour()
|
device, flavour = get_device_and_flavour(profile_name)
|
||||||
post_cmds = FLAVOURS[flavour].get('post_cmds', [])
|
post_cmds = FLAVOURS[flavour].get('post_cmds', [])
|
||||||
|
|
||||||
# TODO: PARSE DEVICE ARCH AND SECTOR SIZE
|
# TODO: PARSE DEVICE ARCH AND SECTOR SIZE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue