make patches optional
This commit is contained in:
parent
3d631420b1
commit
51a134f00f
|
@ -24,12 +24,14 @@ mkdir -p "$build_dir"
|
||||||
|| git clone "$buildroot_repo" "$buildroot_dir"
|
|| git clone "$buildroot_repo" "$buildroot_dir"
|
||||||
(
|
(
|
||||||
cd $buildroot_dir;
|
cd $buildroot_dir;
|
||||||
git checkout "$buildroot_ref"
|
git checkout "$buildroot_ref";
|
||||||
git reset --hard
|
git reset --hard;
|
||||||
for patch in "${buildroot_external}"/patches/*; do
|
if [ "$(ls -A "${buildroot_external}/patches")" ]; then
|
||||||
echo "Applying patch: ${patch}";
|
for patch in "${buildroot_external}"/patches/*; do
|
||||||
patch -p1 --no-backup-if-mismatch < "${patch}";
|
echo "Applying patch: ${patch}";
|
||||||
done;
|
patch -p1 --no-backup-if-mismatch < "${patch}";
|
||||||
|
done;
|
||||||
|
fi
|
||||||
make "airgap_${target}_defconfig";
|
make "airgap_${target}_defconfig";
|
||||||
make source;
|
make source;
|
||||||
)
|
)
|
||||||
|
@ -38,12 +40,14 @@ mkdir -p "$build_dir"
|
||||||
|| git clone "$heads_repo" "$heads_dir"
|
|| git clone "$heads_repo" "$heads_dir"
|
||||||
(
|
(
|
||||||
cd "$heads_dir";
|
cd "$heads_dir";
|
||||||
git checkout "$heads_ref"
|
git checkout "$heads_ref";
|
||||||
git reset --hard
|
git reset --hard;
|
||||||
for patch in "${heads_external}"/patches/*; do
|
if [ "$(ls -A "${heads_external}/patches")" ]; then
|
||||||
echo "Applying patch: ${patch}"
|
for patch in "${heads_external}"/patches/*; do
|
||||||
patch -p1 --no-backup-if-mismatch < "${patch}"
|
echo "Applying patch: ${patch}";
|
||||||
done
|
patch -p1 --no-backup-if-mismatch < "${patch}";
|
||||||
|
done;
|
||||||
|
fi
|
||||||
rsync -Pav "${heads_external}/boards/" "${heads_dir}/boards/"
|
rsync -Pav "${heads_external}/boards/" "${heads_dir}/boards/"
|
||||||
[[ "$devices" =~ "librem" ]] \
|
[[ "$devices" =~ "librem" ]] \
|
||||||
&& (cd "$heads_dir/blobs/librem_kbl" && ./get_blobs.sh)
|
&& (cd "$heads_dir/blobs/librem_kbl" && ./get_blobs.sh)
|
||||||
|
|
Loading…
Reference in New Issue