/* update the variables "mtdids" and "mtdparts" with boot, tee and user strings  */
static void board_set_mtdparts(const char *dev, char *mtdids, char *mtdparts, const char *boot, const char *tee, const char *user)
/* update the variables "mtdids" and "mtdparts" with boot, tee and user strings  */
static void board_set_mtdparts(const char *dev, char *mtdids, char *mtdparts, const char *boot, const char *tee, const char *user)
{
	if (mtdids[0] != '\0')
		strcat(mtdids, ",");
	strcat(mtdids, dev);
	strcat(mtdids, "=");
	strcat(mtdids, dev);
	if (mtdparts[0] != '\0')
		strncat(mtdparts, ";", MTDPARTS_LEN);
	else
		strcat(mtdparts, "mtdparts=");
	strncat(mtdparts, dev, MTDPARTS_LEN);
	strncat(mtdparts, ":", MTDPARTS_LEN);
	if (boot) {
		strncat(mtdparts, boot, MTDPARTS_LEN);
		strncat(mtdparts, ",", MTDPARTS_LEN);
	}
	if (tee) {
		strncat(mtdparts, tee, MTDPARTS_LEN);
		strncat(mtdparts, ",", MTDPARTS_LEN);
	}
	strncat(mtdparts, user, MTDPARTS_LEN);
}