#!/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 -C buildroot checkout -f "${BUILDROOT_BRANCH}" git -C buildroot merge --ff-only fi if [ ! -f _build/.config ]; then make -C buildroot O="${PWD}"/_build BR2_EXTERNAL="${PWD}" "${DEFCONFIG}" fi make -C _build