Bug 2785

Summary: mtd-utils build fails due to missing libmtd
Product: buildroot Reporter: Patrick Ziegler <patrick.ziegler>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: 2010.11   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Fix Build of ubi tools if no other mtd tool was built

Description Patrick Ziegler 2010-11-08 15:54:15 UTC
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"
Comment 1 Patrick Ziegler 2010-11-11 15:11:01 UTC
Created attachment 2659 [details]
Fix Build of ubi tools if no other mtd tool was built
Comment 2 Patrick Ziegler 2010-11-11 15:19:07 UTC
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.
Comment 3 Peter Korsgaard 2010-11-18 20:58:07 UTC
Thanks, committed a simplified (always just build libmtd.a) version to git.