From: Adrian Schmutzler Date: Mon, 15 Jul 2019 12:55:14 +0000 (+0200) Subject: ramips: support IMAGE_SIZE in kiB for Build/trx X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a6cd311b0bd6009ba85c86d1f27b66859c427aa3;p=openwrt%2Fstaging%2Fwigyori.git ramips: support IMAGE_SIZE in kiB for Build/trx Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index b1f0612941..b58d4a9ec2 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