kitchenos/ci/build.sh

21 lines
476 B
Bash

#!/bin/sh
BUILDROOT_REPO=https://gitlab.com/buildroot.org/buildroot.git
BUILDROOT_BRANCH=2025.05.x
DEFCONFIG=kitchenos_defconfig
if [ ! -d buildroot ]; then
git clone "${BUILDROOT_REPO}" --depth=1 -b "${BUILDROOT_BRANCH}"
else
git -C buildroot fetch --depth=1 origin "${BUILDROOT_BRANCH}"
git checkout -f "${BUILDROOT_BRANCH}"
fi
if [ ! -f _build/.config ]; then
make -C buildroot O="${PWD}"/_build BR2_EXTERNAL="${PWD}" "${DEFCONFIG}"
fi
make -C _build