[U-Boot] help on a compiler error in include/asm/system.h

Hi u-boot experts,
Now our arm board is based on u-boot v2009.08 and I need to use ubifs.
So I replace some files from u-boot's latest version.
They are:
fs/ubifs/ubifs.c fs/ubifs/ubifs.h include/asm-arm/bitops.h include/linux/bitops.h
and define the following configs in config file:
#define CONFIG_CMD_UBI #define CONFIG_CMD_UBIFS #define CONFIG_RBTREE #define CONFIG_LZO
When compiling, I encountered an error:
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnuea bi/bin/arm-none-linux-gnueabi-gcc -g -O0 -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x97800000 -I/home/r65388/uboot-v2009.08/uboot-imx/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnuea bi/lib/gcc/arm-none-linux-gnueabi/4.1.2/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -o cpu.o cpu.c -c In file included from cpu.c:36: /home/r65388/uboot-v2009.08/uboot-imx/include/asm/system.h:71: error: expected identifier or '(' before 'asm' make[1]: *** [cpu.o] Error 1 make[1]: Leaving directory `/home/r65388/uboot-v2009.08/uboot-imx/cpu/arm_cortexa8' make: *** [cpu/arm_cortexa8/libarm_cortexa8.a] Error 2
Is there any other files I need to merge to resolve this error?
Thanks~~
Yours Terry
General Business Information Freescale Internal Use Only Freescale Confidential Proprietary
participants (1)
-
Lv Terry-R65388