GithubHelp home page GithubHelp logo

buildroot's Introduction

build

A buildroot is a root filesystem designed to be used as a chrrot to build packages within.

It assumes that you have already configured a bootstrap. This should already exist on TKLDev by default. Otherwise please see the bootstrap repo.

Build buildroot for current release

This requires that the TurnKey dependencies ahve been built and uploaded to the TurnKey repos.:

make clean
make

Build buildroot for transition (new release)

This assumes that the TurnKey dependencies are not yet available via the TurnKey apt repo. If the source code isn't already available locally (in '/turnkey/public/${pkg}') it will be cloned from GitHub.:

export RELEASE=debian/::CODENAME::
make clean
make transition

Then install the required packages:

PACKAGES="turnkey-gitwrapper verseek autoversion"
mkdir -p build/root.patched/root/builddeps
for pkg in ${PACKAGES}; do
    LOCAL="/turnkey/public/${pkg}"
    mkdir -p $(dirname ${LOCAL})
    if [[ ! -d "${LOCAL}" ]]; then
        GH_URL=https://github.com/turnkeylinux/${pkg}.git
        git clone ${GH_URL} ${LOCAL}
    fi
    cp -a ${LOCAL} build/root.patched/root/builddeps
done

mkdir build/root.patched/root/builddeps
fab-chroot build/root.patched
for pkg in $PACKAGES; do
    cd /root/builddeps/${pkg}
    build-deb
    dpkg -i ../${pkg}*.deb || apt --fix-broken install
done

rm -rf /root/builddeps
exit

Copy generated buildroot to buildroots folder

Once the buildroot is complete, then it needs to be copied to the desired localation (default: ${FAB_PATH}/buildroots/::CODENAME::).:

RELEASE=${RELEASE:-debian/$(lsb_release -sc)}
mkdir -p ${FAB_PATH}/buildroots/$(basename $RELEASE)
rsync --delete -Hac -v build/root.patched/ $FAB_PATH/buildroots/$(basename $RELEASE)/

buildroot's People

Contributors

alonswartz avatar jedmeister avatar

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.