Generic environment: Fix assembling of the 'mtdparts' variable
The semicolon is a delimiter, not an end marker. With a trailing semicolon the kernel give the confusing message: mtd: no mtd-id With this patch, a semicolon gets added on demand only. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
51cbd46d9d
commit
1194e279d6
|
@ -46,11 +46,14 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n $nor_parts ]; then
|
if [ -n $nor_parts ]; then
|
||||||
mtdparts="${mtdparts}physmap-flash.0:${nor_parts};"
|
mtdparts="${mtdparts}physmap-flash.0:${nor_parts}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n $nand_parts ]; then
|
if [ -n $nand_parts ]; then
|
||||||
mtdparts="${mtdparts}${nand_device}:${nand_parts};"
|
if [ -n ${mtdparts} ]; then
|
||||||
|
mtdparts="${mtdparts};"
|
||||||
|
fi
|
||||||
|
mtdparts="${mtdparts}${nand_device}:${nand_parts}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n $mtdparts ]; then
|
if [ -n $mtdparts ]; then
|
||||||
|
|
Loading…
Reference in New Issue