[1/2] buildscript: Remove warning due to long factory file names

Submitted by Adrian Schmutzler on Feb. 5, 2019, 1:56 p.m.

Details

Message ID 20190205135603.2020-1-freifunk@adrianschmutzler.de
State Accepted
Headers show

Commit Message

Adrian Schmutzler Feb. 5, 2019, 1:56 p.m.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>

---

I personally never considered this warning helpful, as building
and flashing are typically separated processes.
---
 buildscript | 3 ---
 1 file changed, 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/buildscript b/buildscript
index 1d527c6e..9cf45cd2 100755
--- a/buildscript
+++ b/buildscript
@@ -293,9 +293,6 @@  cp_firmware() {
             image_factory=${image/sysupgrade/factory$region}
             if [[ -f "$target/bin/targets/${chipset}/${subtarget}/$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 lead to incompatibility with the stock firmware."
-              fi
               cp "$target/bin/targets/${chipset}/${subtarget}/$image_factory" "./bin/$filename_build_factory"
             fi
         done

Comments

Fabian Blaese May 31, 2019, 5:04 p.m.
Tatsächlich sind bei den betroffenen Geräten häufig auch die OpenWRT Namen zu lang.

Reviewed-by: Fabian Bläse <fabian@blaese.de>

Gruß
Fabian

On 05.02.19 14:56, Adrian Schmutzler wrote:
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> 
> ---
> 
> I personally never considered this warning helpful, as building
> and flashing are typically separated processes.
> ---
>  buildscript | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/buildscript b/buildscript
> index 1d527c6e..9cf45cd2 100755
> --- a/buildscript
> +++ b/buildscript
> @@ -293,9 +293,6 @@ cp_firmware() {
>              image_factory=${image/sysupgrade/factory$region}
>              if [[ -f "$target/bin/targets/${chipset}/${subtarget}/$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 lead to incompatibility with the stock firmware."
> -              fi
>                cp "$target/bin/targets/${chipset}/${subtarget}/$image_factory" "./bin/$filename_build_factory"
>              fi
>          done
>
Fabian Blaese June 16, 2019, 8:26 a.m.
Applied.