The attached patch to the ebuild makes sure that the build will happen with the correct compiler for the architecture we're building for (in case of crosscompile); it also quotes all the variables that needs to be quoted and add an || die at einstall to be on the safe side. Note that it still has something wrong, as it rebuilds some of the targets during install phase (that's why I'm not rewriting CC on make line). HTH, Diego
Created attachment 103772 [details, diff] Ebuild patch
robbat2 took over the mtd related packages.
please migrate to using mtd-utils (it should be cross-safe already). I hope to drop the old mtd by the end of January, as upstream has moved development to mtd-utils instead.