ar71xx: fix mtdpartsize macro in image Makefile (#14961)
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 13 Feb 2014 21:19:00 +0000 (21:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 13 Feb 2014 21:19:00 +0000 (21:19 +0000)
commitd53363d917db3cfeac537032694df99cc5f64e4a
treec1ec7bfba60af681ffe461650c37d43293251bf4
parent3ab56c22aea4c2d853aa12c8ae04f219d6e8def4
ar71xx: fix mtdpartsize macro in image Makefile (#14961)

The mtdpartsize macro triggers shell errors on various Linux distributions
when the partname argument $(1) does not appear within the partmap $(2).

Change the sed pattern to only emit anything if a successful substitution
occured and only evaluate the arithmetic expression if something was printed
by the sed program.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 39583
target/linux/ar71xx/image/Makefile