def _set_up_bitbake_ssh(workdir): """ Configure BitBake to allow use of ssh-agent. Args: * workdir (Path): top level of work area. """ localconf_path = (workdir / "poky" / "meta-pelion-edge" / "conf" / "local.conf.sample") # Add some BitBake config to allow BitBake tasks to read the SSH_AUTH_SOCK with file_util.replace_section_in_file(path=localconf_path, section_name="SSH support", comment_leader="#") as localconf: localconf.write("export SSH_AUTH_SOCK\n") localconf.write('BB_HASHBASE_WHITELIST_append = " SSH_AUTH_SOCK"\n') localconf.write('BB_HASHCONFIG_WHITELIST_append = " SSH_AUTH_SOCK"\n')
def _set_up_bitbake_machine(workdir, machine): """ Configure BitBake to build the selected machine. Args: * workdir (Path): top level of work area. """ localconf_path = (workdir / "layers" / "poky" / "meta-poky" / "conf" / "local.conf.sample") # Add some BitBake config to allow BitBake tasks build the right thing with file_util.replace_section_in_file(path=localconf_path, section_name="MACHINE ??", comment_leader="#") as localconf: localconf.write('MACHINE ?= "{}"\n'.format(machine)) localconf.write('ACCEPT_FSL_EULA = "1"\n') localconf.write('CORE_IMAGE_EXTRA_INSTALL += "mbed-crypto-test"\n') localconf.write('CORE_IMAGE_EXTRA_INSTALL += "psa-arch-tests"\n')