Git Product home page Git Product logo

aathub-yocto's Introduction

aathub yocto
aathub yocto

A build system without any of the bullshit

Status


Synopsis

Setups a development environment, compiles a yocto-based image, and optionally uploads the results to S3.

Resources

Don't know anything about yocto? Read these:

How to use

Simple

Kick off the build process with the following command:

./bootstrap.sh

Advanced

Sourcing bootstrap.sh is only necessary if passing in the -s param.

. ./bootstrap.sh -v -s -u bender -b /path/to/directory

Here's a breakdown:

  • -v enable verbose output
  • -s upload compiled results to S3
  • -u bender is an arbitrary user, used to execute bitbake. If the user doesn't exist one is created
  • -b /path/to/directory parent directory where compilation occurs (the default is /tmp)

For the most up-to-date instructions run the following command:

./bootstrap.sh -h

Testing

If oe-init-build-env isn't sourced, do so now

runqemu path/to/kernel-image.bin path/to/root-filesystem.ext3

Things to consider

  • The build takes 2 hours to compile on a c4.2xlarge, and requires upwards of 50GB of free space.

  • This has been sucessfully tested on ubuntu/debian and fedora.

  • We base64 a few files used in shippable's secure variables. Use the following command base64 -w 0 /path/to/file

  • The build system depends on meta-aatlive, a closed-source bitbake layer

  • PR builds will fail since secure variables aren't initalized. You have been warned...

aathub-yocto's People

Contributors

binarybeard avatar egladman avatar jalama avatar stephendp avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aathub-yocto's Issues

Include additional files in sha256sums

I believe i need to generate a sha256sums for additional files, before they are uploaded to s3. Currently we're use ls to select the required files, however this is no longer cutting it. Robust regex is now required.

Change the init system to systemd

The default init system is sysvinit. I previously added the following code into bootstrap.sh to enable systemd, however it introduced a fatal bug (the build would compile but the result dir was absent). More testing needs to occur.

#Use systemd instead of SysVinit
#http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#selecting-an-initialization-manager
cat << EOF > "${YOCTO_TEMP_DIR}"/poky/meta-poky/conf/distro/poky.conf
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"

#Prevent the SysVinit distribution feature from being automatically enabled
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

#Remove initscripts
VIRTUAL-RUNTIME_initscripts = ""
EOF

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.