This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> > Thanks Andrew, > > I'll look at mtd distribution, see if it includes ?yvind's patch, and figure > > out what to do next based on what I find there. In the mean time, > > experimental evidence suggests that the 'defined(__ARM_ARCH_4__)' should be > > 'defined(__ARM_ARCH_4T_)' in fs-ecos.c. At least on my system, which > > compiles fs-ecos.c with the following command: > > > > arm-elf-gcc -c -I/home/wpd/ess/redboot/dbw-redboot-ram/install/include > > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current > > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/src > > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/tests -I. > > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/src/ > > -finline-limit=7000 -mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes > > -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections > > -fno-exceptions -D__ECOS -nostdinc -iwithprefix include > > -Wp,-MD,src/fs-ecos.tmp -o src/fs_jffs2_fs-ecos.o > > /home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/src/fs-ecos.c > > Strange, it works for me. I wounder if its becasue you are using arm9? > > Please could you give the output when you call gcc with -v. I think > that will show all the defines which are passed to CPP. Bin googling abit. It seems that different arm architectures define different __ARM_ARCH_XXX__ macros. That explains why your arm9 compile does not give a CPP error. I think the generic solution is to change to __arm__ which should be defined for all architectures. Please could you test this patch. Thanks Andrew
Attachment:
jffs2.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |