clue/bitbake-react

Programmatically control your bitbake build shell

dev-master 2015-03-09 09:45 UTC

This package is auto-updated.

Last update: 2024-05-06 07:21:42 UTC


README

Programmatically control your bitbake build shell, built on top of React PHP.

Note: This project is in early alpha stage! Feel free to report any issues you encounter.

Quickstart example

Once installed, you can use the following code to tell bitbake to build the linux kernel:

$loop = React\EventLoop\Factory::create();
$launcher = new Launcher($loop);
$launcher->setBinSsh('my-build-hostname.local', '~/path/to/bitbake');
$shell = $launcher->launchInteractiveShell();

$shell->build('linux')->then(function ($output) {
     echo 'Successfully compiled: ' . $output . PHP_EOL;
});

$shell->end();
$loop->run();

See also the examples.

Install

The recommended way to install this library is through composer. New to composer?

{
    "require": {
        "clue/bitbake-react": "dev-master"
    }
}

License

MIT