#!/bin/bash
[ -f /.dockerenv ] || { echo "please run in supplied container"; exit 1; }
set -e; source environment

target=${TARGET?}

cd /home/build/build/buildroot
make "airgap_${TARGET}_defconfig"
make menuconfig
cp /home/build/build/buildroot/.config \
	"/home/build/config/buildroot/configs/airgap_${TARGET}_defconfig"