
Dear Jean-Christophe PLAGNIOL-VILLARD,
In message 20090801161409.GD19785@game.jcrosoft.org you wrote:
I enabled CONFIG_YAFFS2 for ARM, and got the following message: /home/user/u-boot/fs/yaffs2/yaffscfg.c:185: undefined reference to `__udivdi3'
just use lldiv
The big question here is if such a change makes sense; please keep in mind that the yaffs2 code is just borrowed from Linux, so changes should be kept to a minimum.
yaffs2 is not linux mainline and will never been as it's author do not care about it
Maybe. But that doesn't change the situation: the part of code you suggest to change gives no reasons for changes other that U-Boot's libgcc support is incomplete. So rather than fixing the symptoms, I prefer fixing the cause.
I've already seen such problem wiht out of tree code
Me too. But that doesn't mean we should add new problems, for example when we want to update the yaffs2 code in the future.
Best regards,
Wolfgang Denk