[OpenWrt-Devel] build: "bash: GZ_SUFFIX: command not found" -- Likely From Device/Build/image

Jeff Kletsky lede at allycomm.com
Tue Oct 22 15:12:11 EDT 2019

As discovered by "wulfy23"[1], a verbose build (V=s) off `master` indicates

     GZ_SUFFIX :=
     bash: GZ_SUFFIX: command not found

This appears to be "cosmetic", as the images are created, can be 
flashed, and run as expected.

Observed with:

* ath79, GL-AR300M (NAND) (1x)

* ath79, Archer C7v2 (3x)

* ipq40xx, Linksys EA8300 (1x)

so appears not to be specific to a target or sub-target.

Source of error/warning appears to be `include/image.mk`

define Device/Build/image
   GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring 
   $$(_TARGET): $(BIN_DIR)/$(call IMAGE_NAME,$(1),$(2))$$(GZ_SUFFIX)

My "make" skills are, unfortunately, not sufficient to diagnose further.


[1] https://github.com/openwrt/openwrt/pull/2184#issuecomment-544830445

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list