balena-supervisor/base-image/build.sh

14 lines
382 B
Bash
Raw Normal View History

#!/bin/bash
set -o errexit
BUILD_DIR='/home/builder/tmp'
mkdir -p $BUILD_DIR
cp -r $SOURCE_DIR/* $BUILD_DIR/
cd $BUILD_DIR
source oe-core/oe-init-build-env build bitbake
bitbake core-image-minimal
qemu=$(cat conf/local.conf | grep '^MACHINE ??= ' | grep -o '"[^"]\+"' | tr -d '"')
2016-07-02 01:07:27 +00:00
cp --dereference tmp/deploy/images/$qemu/core-image-minimal-$qemu.tar.gz $DEST_DIR/rootfs.tar.gz