From 07075f5abffd2018027f444a4d21d7d6840468dc Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Tue, 16 Jun 2020 20:29:26 -0700 Subject: [PATCH] download all sources up-front to enable offline builds --- scripts/fetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/fetch b/scripts/fetch index 3f6ff08..e8c48a9 100755 --- a/scripts/fetch +++ b/scripts/fetch @@ -12,7 +12,11 @@ buildroot_ref=${BUILDROOT_REF?} > ~/.gitconfig mkdir -p "$build_dir" + +[ "$(ls -A $build_dir)" ] && exit 0 + git clone "$buildroot_repo" "$buildroot_dir" git -C "$buildroot_dir" checkout "$buildroot_ref" cd "$buildroot_dir" +make "airgap_${TARGET}_defconfig" make source