From 4bdbb413cc666d4eb89318ca644c469e0a7da757 Mon Sep 17 00:00:00 2001 From: Arne Zachlod Date: Wed, 13 Mar 2024 15:40:40 +0100 Subject: [PATCH] ramips: fix zytrx build with long version strings zytrx accepts version strings up to 32 characters. Signed-off-by: Arne Zachlod --- target/linux/ramips/image/mt7621.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 50c53a6d8e..a5db519995 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -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