TurnKey buildroot template
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf.d
overlay
plan
.gitignore
Makefile
README

README

build
-----

export FAB_POOL=y
export RELEASE=debian/::CODENAME::
make clean
make

if this is a transition, the build will break
'''''''''''''''''''''''''''''''''''''''''''''

- update conf.d/patch-dpkg-gencontrol
    - diff -urN dpkg-gencontrol.orig dpkg-gencontrol

- cleanup and make again

install custom build deps
-------------------------

if already available in pool
''''''''''''''''''''''''''''

PACKAGES="turnkey-pylib pyproject-common autoversion"
POOLPATH=$FAB_PATH/pools/$(basename $RELEASE)
fab-install --pool=$POOLPATH --no-deps build/root.patched $PACKAGES

if this is a transition
'''''''''''''''''''''''

mkdir build/root.patched/root/builddeps
cp -a /turnkey/public/turnkey-pylib build/root.patched/root/builddeps
cp -a /turnkey/public/pyproject build/root.patched/root/builddeps
cp -a /turnkey/public/autoversion build/root.patched/root/builddeps

fab-chroot build/root.patched
for p in turnkey-pylib pyproject autoversion; do
    cd /root/builddeps/$p
    build-deb
    dpkg -i ../${p}*.deb || apt --fix-broken install
done

rm -rf /root/builddeps
exit

copy generated buildroot to buildroots folder
---------------------------------------------

rsync --delete -Hac -v build/root.patched/ $FAB_PATH/buildroots/$(basename $RELEASE)/