Skip to content
Snippets Groups Projects
Commit b1d7ebae authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

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: default avatarJo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 39583
parent af63cdf8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment