ramips: support IMAGE_SIZE in kiB for Build/trx
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 15 Jul 2019 12:55:14 +0000 (14:55 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 25 Jul 2019 12:31:05 +0000 (14:31 +0200)
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/image/Makefile

index b1f0612941b4b027d7388ef2f73906085825907c..b58d4a9ec26cc21889db014448c003d380f5638c 100644 (file)
@@ -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