Jump to content

[Armbian build PR] - pipeline: add userspace inventory capabilities


Recommended Posts

Posted

pipeline: add userspace inventory capabilities

  • config_post_main: sanity checks for RELEASE (vs ARCH) and RELEASE+DESKTOP_ENVIRONMENT (vs ARCH)
    • the interactive menus didn't allow interactive users to select invalid combinations...
    • ... but if specified directly on cmdline, no checks were done at all.
    • introduce exit_with_target_not_supported_error(), which is just exit_with_error (code 43) but with code 44
      • this way the targets pipeline can just warn instead of break;
      • sometimes it's easier multiplying matrixes and skipping the few that can't be built
  • rpi4b: use exit_with_target_not_supported_error() instead of exit_with_error() if RELEASE is not supported
  • pipeline: add userspace inventory capabilities
    • digs into config/distributions and config/desktops for info
    • this produces output/info/all_userspace_inventory.json
      • this is now passed down to the targets-compositor in cli-jsoninfo
    • targets-compositor now accepts userspace: as items-from-inventory
    • extra: add targets-composed CLI command, to stop after targets-compositor
  • pipeline: handle exit_with_target_not_supported_error() (retcode 44) as warning and not error
    • split errors and warnings into multiple lines, so a bit easier to see in the logs what the real error was
    • also turn down a few spurious warnings to debugs
  • pipeline: use ncores * 4 for info gathering

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines