[En-Nut-Discussion] Compile CVS version for Ethernut as Unix-Emulation

Thomas Drüke thomas.drueke at versatel-online.de
Tue Apr 13 23:29:24 CEST 2004


On Tue, 2004-04-13 at 10:35, Matthias Ringwald wrote:

> that would be the correct one.
> this means that my first shot was wrong.
> 
> could you try to change:
> 
>      gcc -E include_test.c | grep types | head -1 | \
>           sed 's/#....\(\/.*\/types.h\).*/#include "\1"/' > 
> include/sys/types_orig.h
> 
> to
> 
>      gcc -E include_test.c | grep types | head -1 | \
>           sed 's/#....\(\/.*\/sy/types.h\).*/#include "\1"/' > 
> include/sys/types_orig.h
> 
> in ./configure and try again?
Hm. That did not give a correct result. I'm too lazy to figure out the
correct regex for that purpose :-) (sorry for that). Just adding another
"grep sys" after the "grep types" filter only the lines with
"sys/types.h" and that works at least for me.

The working line in my current configure script looks like this

    gcc -E include_test.c | grep types | grep sys | head -1 | \
         sed 's/#....\(\/.*\/types.h\).*/#include "\1"/' >
include/sys/types_orig.h

Maybe that's another possible solution ?


> 
> a comment: the unix emulation is brand new, not everything is working.
> right out of my head: the os part: threads, memory management, events, 
> msgs (should) work.
> the unix_dev emulation that would map /dev/ttyS0 to uart0 is work in 
> progres. have a look
> into dev/unix_devs.c to see what you can expect to work and what now.
Hm. Yeah, I'll see how far it goes for me. Thanks for the hint.

BR
Thomas
> 
> 
> 
> best regards,
> 
> matthias
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list