[U-Boot] Does ubifs in u-boot is only for ppc

Hi,
I'm trying to build a u-boot image for our arm board with ubifs support.
I have defined
#define CONFIG_CMD_UBI #define CONFIG_CMD_UBIFS #define CONFIG_RBTREE #define CONFIG_LZO
When building fs/ubifs/lpt.c, I encountered "undefined reference" errors.
/home/r65388/uboot-v2009.08/uboot-imx/fs/ubifs/lpt.c:81: undefined reference to `fls' /home/r65388/uboot-v2009.08/uboot-imx/fs/ubifs/lpt.c:82: undefined reference to `fls' /home/r65388/uboot-v2009.08/uboot-imx/fs/ubifs/lpt.c:83: undefined reference to `fls' /home/r65388/uboot-v2009.08/uboot-imx/fs/ubifs/lpt.c:84: undefined reference to `fls'
fs/ubifs/libubifs.a(lpt.o):/home/r65388/uboot-v2009.08/uboot-imx/fs/ubif s/lpt.c:87: more undefined references to `fls' follow
The function fls is defined in include/asm-ppc and there's no such functions in include/asm-arm.
Is ubifs a common code or specified for ppc?
Thanks~~
Yours Terry
General Business Information Freescale Internal Use Only Freescale Confidential Proprietary

On Wed, 11 Nov 2009 18:21:25 +0800 "Lv Terry-R65388" r65388@freescale.com wrote:
I'm trying to build a u-boot image for our arm board with ubifs
support. [...] fs/ubifs/libubifs.a(lpt.o):/home/r65388/uboot-v2009.08/uboot-imx/fs/ubif s/lpt.c:87: more undefined references to `fls' follow
The function fls is defined in include/asm-ppc and there's no such
functions in include/asm-arm.
Is ubifs a common code or specified for ppc?
No, I submitted a few patches a few months ago to fix this for other architectures (ARM in particular). If you update to current U-boot git it should work.
// Simon
participants (2)
-
Lv Terry-R65388
-
Simon Kagstrom