After updating from a Decmeber git snapshot to 2010, mtd-utils stopped building. Compiles were failing because the compiler couldn't find include files such as stdint.h. Examination of the build log revealed that buildroot's mtd util's make file was passing proper target LDFLAGS but wasn't passing target CFLAGS. Thus there was no --sysroot option being passed to gcc, and it couldn't find its include files. The attached patch fixes the problem by passing the appropriate CFLAGS values to make.
Created attachment 1303 [details] Patch to correctly set CFLAGS when building mtd utils for use on target
It looks like my patch was a week late. This commit should fix the problem: http://git.buildroot.net/buildroot/commit/?id=d5bf5f967009733da99c55febacb3fb0be686cad I'll pull the new mtd.mk file and try it.
The current mtd.mk I grabbed from git works. The commit I mentioned does fix this bug.