mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
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')
|
||||
def cmd_build():
|
||||
@click.argument('profile_name', required=False)
|
||||
def cmd_build(profile_name: str = None):
|
||||
enforce_wrap()
|
||||
profile = config.get_profile()
|
||||
device, flavour = get_device_and_flavour()
|
||||
profile = config.get_profile(profile_name)
|
||||
device, flavour = get_device_and_flavour(profile_name)
|
||||
post_cmds = FLAVOURS[flavour].get('post_cmds', [])
|
||||
|
||||
# TODO: PARSE DEVICE ARCH AND SECTOR SIZE
|
||||
|
|
Loading…
Add table
Reference in a new issue