Howto port autoconf based application to RTEMS.

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Thu Jan 13 22:47:42 UTC 2005


Karel Gardas wrote:
> On Thu, 13 Jan 2005, Joel Sherrill <joel at OARcorp.com> wrote:
> 
> 
>>>>>Please file a PR on "rtems_bsdnet" to RTEMS GNATS.
>>>>
>>>>filed as: `networking/741' -- I have not been able to find rtems_bsdnet in
>>>>GNATS web form...
>>>
>>>Sorry, a confusing typo.  I meant you to file a PR on
>>>"rtems_bsdnet_config".
>>
>>When you configure an autoconf package and it probes the installed
>>RTEMS, there are two files used which should never be used in a
>>"real application" -- the default crt0.o and the dummy configuration.
>>
>>The file cpukit/libmisc/dummy.c is where this should go.  I think
>>cutting and pasting the network configuration from samples/loopback
>>should be WAY more than it takes.
>>
>>I think adding something like this will work if
>>RTEMS_HAS_NETWORKING is the right constant:
> 
> 
> Thanks for the idea, but unfortunatelly RTEMS_HAS_NETWORKING seems to not
> be defined while building libdummy.a even if networking is enabled. In
> addition libdummy.a is considered as a "not-install" library so it is not
> installed by default.
> I'm talking here about latest CVS trunk +
> gcc3.4.3/binutils2.15/newlib1.13_Ralf_patch combination.

I wondered about whether it is defined.  I guess it won't be defined
unless the Makefile.am/configure stuff for libmisc is setup to do that.

The sparc/erc32 Makefile.am has an example of changing the cpp flags
based on the autoconf value HAS_NETWORKING.

Ralf.. any better advice? :)

> Thanks,
> Karel
> --
> Karel Gardas                  kgardas at objectsecurity.com
> ObjectSecurity Ltd.           http://www.objectsecurity.com
> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list