Skip to content
Snippets Groups Projects
Commit 8a459ff8 authored by Tim Niemeyer's avatar Tim Niemeyer
Browse files

buildscript: copy the (optional) -eu/-us factory images


Signed-off-by: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarJan Kraus <mayosemmel@gmail.com>
Reviewed-by: default avatarTobias Klaus <tk+ff@meskal.net>
parent aa970cd5
No related branches found
No related tags found
No related merge requests found
......@@ -278,14 +278,16 @@ cp_firmware() {
filename_build=${filename_build//generic/g}
cp "$target/bin/${chipset}/$image" "./bin/$filename_build"
image_factory=${image/sysupgrade/factory}
if [[ -f "$target/bin/${chipset}/$image_factory" ]]; then
filename_build_factory=${filename_build/sysupgrade/factory}
if [ ${#image_factory} -lt ${#filename_build_factory} ]; then
echo "Warning: The factory image file name (${filename_build_factory}) is longer than the OpenWrt one, which might be incompatibility with the stock firmware."
fi
cp "$target/bin/${chipset}/$image_factory" "./bin/$filename_build_factory"
fi
for region in "" "-eu" "-us"; do
image_factory=${image/sysupgrade/factory$region}
if [[ -f "$target/bin/${chipset}/$image_factory" ]]; then
filename_build_factory=${filename_build/sysupgrade/factory$region}
if [ ${#image_factory} -lt ${#filename_build_factory} ]; then
echo "Warning: The factory image file name (${filename_build_factory}) is longer than the OpenWrt one, which might be incompatibility with the stock firmware."
fi
cp "$target/bin/${chipset}/$image_factory" "./bin/$filename_build_factory"
fi
done
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment