aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-15 14:55:14 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-25 14:31:05 +0200
commita6cd311b0bd6009ba85c86d1f27b66859c427aa3 (patch)
treeba5964526aea913b2a385d74632d2a4f0ef26fbf /target/linux/ramips
parent7392af752042337c99fd07dd7a7d75db5c6cd59b (diff)
downloadupstream-a6cd311b0bd6009ba85c86d1f27b66859c427aa3.tar.gz
upstream-a6cd311b0bd6009ba85c86d1f27b66859c427aa3.tar.bz2
upstream-a6cd311b0bd6009ba85c86d1f27b66859c427aa3.zip
ramips: support IMAGE_SIZE in kiB for Build/trx
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/image/Makefile2
1 files changed, 1 insertions, 1 deletions
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