diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index b1f0612941b..b58d4a9ec26 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -56,7 +56,7 @@ endef define Build/trx $(STAGING_DIR_HOST)/bin/trx $(1) \ -o $@ \ - -m $(IMAGE_SIZE) \ + -m $$(($(subst k, * 1024,$(IMAGE_SIZE)))) \ -f $(IMAGE_KERNEL) \ -a 4 -f $(IMAGE_ROOTFS) endef