1
0
Fork 0
forked from mirror/openwrt

ramips: fix zytrx build with long version strings

zytrx accepts version strings up to 32 characters.

Signed-off-by: Arne Zachlod <arne@nerdkeller.org>
This commit is contained in:
Arne Zachlod 2024-03-13 15:40:40 +01:00
parent 339e8fa25b
commit 4bdbb413cc

View file

@ -223,6 +223,7 @@ endef
define Build/zytrx-header
$(eval board=$(word 1,$(1)))
$(eval version=$(word 2,$(1)))
$(eval version=$(shell echo $(version) | cut -c 1-31))
$(STAGING_DIR_HOST)/bin/zytrx -B '$(board)' -v '$(version)' -i $@ -o $@.new
mv $@.new $@
endef