build.sh: remove known-broken images after the build
(cherry picked from commit 50b79c0dc4
)
This commit is contained in:
parent
bf1e565548
commit
e963dd306e
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
||||||
GLUON_RELEASE="v2018.2.2.0"
|
GLUON_RELEASE="v2018.2.2.0"
|
||||||
GLUON_BRANCH="stable"
|
GLUON_BRANCH="stable"
|
||||||
targets="ar71xx-generic ar71xx-nand ar71xx-tiny brcm2708-bcm2708 brcm2708-bcm2709 mpc85xx-generic ramips-mt7620 ramips-mt7621 ramips-mt76x8 ramips-rt305x sunxi-cortexa7 x86-64 x86-generic x86-geode"
|
targets="ar71xx-generic ar71xx-nand ar71xx-tiny brcm2708-bcm2708 brcm2708-bcm2709 mpc85xx-generic ramips-mt7620 ramips-mt7621 ramips-mt76x8 ramips-rt305x sunxi-cortexa7 x86-64 x86-generic x86-geode"
|
||||||
|
broken_images=(
|
||||||
|
'*dir*615*d*'
|
||||||
|
)
|
||||||
|
|
6
build.sh
6
build.sh
|
@ -107,6 +107,12 @@ for t in $targets; do
|
||||||
announce "Starting build for $t..." >&2
|
announce "Starting build for $t..." >&2
|
||||||
make "-j$(nproc)" "GLUON_TARGET=$t" "$verbose"
|
make "-j$(nproc)" "GLUON_TARGET=$t" "$verbose"
|
||||||
done
|
done
|
||||||
|
# Remove known-broken images
|
||||||
|
# shellcheck disable=SC2154
|
||||||
|
for broken_image in "${broken_images[@]}"; do
|
||||||
|
announce "Removing broken image ${broken_image}..."
|
||||||
|
find "${GLUON_OUTPUTDIR}/${GLUON_BRANCH}/images" -iname "${broken_image}" \( -type f -o -type l \) -ls -exec rm -f {} \;
|
||||||
|
done
|
||||||
# Generate the images.list
|
# Generate the images.list
|
||||||
( cd "${GLUON_OUTPUTDIR}/images" && ( find -type f ! -iname '*.manifest' ! -iname images.list; find -type l ! -iname '*.manifest' ) | sed -e 's!^\./\(.*\)$!\1!' -e 's!/! !g' | sort > images.list )
|
( cd "${GLUON_OUTPUTDIR}/images" && ( find -type f ! -iname '*.manifest' ! -iname images.list; find -type l ! -iname '*.manifest' ) | sed -e 's!^\./\(.*\)$!\1!' -e 's!/! !g' | sort > images.list )
|
||||||
announce Building manifest...
|
announce Building manifest...
|
||||||
|
|
Loading…
Reference in a new issue