NayuOS

This is a SlapOS recipe to build NayuOS. It needs to be put in the /srv/slapgrid/<part>/srv/runner/project/slapos/software/ directory. The created directory is called <nayuos_build_dirname> in this documentation.

License

GPL v2 or later

Requirements

  • sudo and git on the host (for now)
  • slapuser with sudo rights to execute the cros_sdk scripts (needed to access the chroot environment provided by Chromium OS) in /etc/sudoers:

\       ALL= NOPASSWD: /srv/slapgrid/\/srv/runner/instance/\/parts/clone-depot-tools/cros_sdk, /srv/slapgrid/\/srv/runner/instance/\/parts/chromiumos/\/chromite/bin/cros_sdk, /srv/slapgrid/\/srv/runner/instance/\/parts/chromiumos/\/chromite/bootstrap/cros_sdk, /srv/slapgrid/\/srv/runner/instance/\/parts/chromiumos/\/chromite/scripts/cros_sdk.py, /srv/slapgrid/\/srv/runner/instance/\/parts/chromiumos/\/chromite/scripts/cros_sdk.pyc, /srv/slapgrid/\/srv/runner/instance/\/parts/chromiumos/\/chromium/tools/depot_tools/cros_sdk
  • the custom ebuilds (such as net-libs/miniupnpc, net-misc/babeld-re6stnet, net-misc/re6stnet) in the nayuos-ebuilds directory. There is a repo for this purpose. It should be located into: /srv/slapgrid/<part>/ srv/runner/project/slapos/software/<nayuos_build_dirname>/.

Input

In the vifib parameters (softinst<nb>.host.vifib.net > Services > Parameters):

  • board / ex: peppy, swanky, ... (choosing daisy will accept all licenses for the daisy board build only, in order to use Mali drivers, see chromium mailing list)
  • branch / ex: release-R46-7390.B
  • keep_cache / yes|no (choosing "no" saves about 15Go of disk space per board, choosing "yes" will makes next build faster and less expensive in term of needed ressources because of not rebuilding everything)

Output

The image will be produced in: /srv/slapgrid/<part>/srv/runner/instance/<inst_part>/parts/chromiumos/images/ and the logs are in: /srv/slapgrid/<part>/srv/runner/instance/<inst_part>/var/log/cros_sources_dl.log and /srv/slapgrid/<part>/srv/runner/instance/<inst_part>/var/log/cros_build.log

The script that download the sources and build is located in /srv/slapgrid/<part>/srv/runner/instance/<inst_part>/etc/run

External documents

Notes for possible improvements