projects
/
openwrt
/
staging
/
stintel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
image: use helper function for size units
[openwrt/staging/stintel.git]
/
target
/
linux
/
ath79
/
image
/
nand.mk
diff --git
a/target/linux/ath79/image/nand.mk
b/target/linux/ath79/image/nand.mk
index 5c9e190e193a63711c3681bcd3f069fa895c0fba..bf2b1a1f8ab15e869a58130583d9d1ff0df0de2c 100644
(file)
--- a/
target/linux/ath79/image/nand.mk
+++ b/
target/linux/ath79/image/nand.mk
@@
-32,7
+32,7
@@
endef
define Build/zyxel-factory
let \
- maxsize="$(
subst k,* 1024
,$(RAS_ROOTFS_SIZE))"; \
+ maxsize="$(
call exp_units
,$(RAS_ROOTFS_SIZE))"; \
let size="$$(stat -c%s $@)"; \
if [ $$size -lt $$maxsize ]; then \
$(STAGING_DIR_HOST)/bin/mkrasimage \