mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-16 17:59:45 +00:00
14 lines
384 B
Bash
14 lines
384 B
Bash
|
#!/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 '"')
|
||
|
cp --dereference tmp/deploy/images/$qemu/core-image-minimal-$qemu.tar.bz2 $DEST_DIR/rootfs.tar.bz2
|