De-couple weston from postmarketos-base (#233)

Thanks, craftyguy!

- UI is selectable with `pmbootstrap init`. Currently only 'weston' and 'none' are options. It'll automatically pick up any new `postmarketos-ui-*` packages added at later dates.
- splits off weston packages install from postmarketos-base and puts
them into postmarketos-ui-weston. Also note that NO weston packages are
installed by "pmbootstrap install" by default unless the user selects a ui in the `init`
- configuration of weston is now in postmarketos-ui-weston.
- the demos have been spun off to `postmarketos-demos`, and `postmarketos-ui-weston` lists this package as a dependency.
This commit is contained in:
clayton craft 2017-07-24 13:55:55 -07:00 committed by Oliver Smith
parent fcf593531c
commit 924546135c
10 changed files with 110 additions and 54 deletions

View file

@ -23,6 +23,7 @@ import multiprocessing
import pmb.config
import pmb.helpers.cli
import pmb.helpers.devices
import pmb.helpers.ui
def init(args):
@ -37,6 +38,12 @@ def init(args):
cfg["pmbootstrap"]["device"] = pmb.helpers.cli.ask(args, "Device",
None, args.device)
# UI selection
ui_list = pmb.helpers.ui.list(args)
logging.info("Available user interfaces (" + str(len(ui_list) - 1) + "): " + ", ".join(ui_list))
cfg["pmbootstrap"]["ui"] = pmb.helpers.cli.ask(args, "User Interface:",
None, args.ui, True)
# Work folder
logging.info("Location of the 'work' path. Multiple chroots (native,"
" device arch, device rootfs) will be created in there.")