When I try to compile ubiattach, ubidetach, ubiformat, ubimkvol, ubinize from mtd utils (1.4.1), the link process fails with the following error: [...]"arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lmtd collect2: ld returned 1 exit status"
Created attachment 2659 [details] Fix Build of ubi tools if no other mtd tool was built
Buildroot version: 2010.11-rc1 If only ubi tools shall be build from mtd-utils, the libmtd.a will not be build but is in fact a dependency of some ubi tools (e.g. ubiattach). The previous attached patch fixes this problem for me by building libmtd.a explicit as soon as an ubi tool shall be build.
Thanks, committed a simplified (always just build libmtd.a) version to git.