On Wed, Aug 13, 2014 at 7:02 PM, Ciprian Barbu <[email protected]> wrote:
> On Wed, Aug 13, 2014 at 6:41 PM, Tushar Jagad <[email protected]> wrote:
>> Hi Ciprian,
>>
>>
>> On 08/13/2014 08:40 PM, Ciprian Barbu wrote:
>>>
>>> ODP will NOT compile netmap for you. That's too much of a custom job
>>> to be done by ODP and it doesn't fit with the overall autoconf way of
>>> doing things. You need to compile netmap before attempting to compile
>>> ODP. Check that thread to see the way I did it (by copying the
>>> ethernet driver sources to the linux-headers). After you've compiled
>>> netmap, you need to copy the netmap include files from sys/dev/net to
>>> some standard include path (/usr/include/net for example).
>>
>>
>> Well the idea of adding something like --enable-netmap=<path-to-netmap-srcs>
>> was to add necessary directory to the include path so that odp_pktio or any
>> other odp examples could find the necessary netmap related header files.
>> This would eliminate the need to copy netmap files to the standard
>> directory.
>
> I'm not really sure what would be the best way to handle this. Netmap
> has a custom make system, because it is supposed to be integrated with
> the linux kernel make system, which is not for the moment. Anyway, the
> option for configuring ODP with netmap has been added recently so we
> can still tweak it. I would involve Anders into the discussion of
> adding --enable-netmap=<path_to_src>. Meanwhile you can hack the
> Makefile whatever way you see fit, just to make it work for now.
>
>>
>>
>>> Also, the way you obtained the odp_pktio_netmap executable is hacky,
>>> the reason it "worked" was that you compiled odp without netmap the
>>> first time, and after you reconfigured with --enable-netmap, the odp
>>> library didn't need to be built anymore. But that still had no netmap
>>> support. So in the future, if you are going to reconfigure, start
>>> fresh by removing everything.
>>
>>
>> We tried the build from the dirty state cause we thought odp_pktio_netmap
>> was the binary in question and it built without making noise and we could
>> try using it. But it seems the netmap files are required as it failed to run
>> on the target.
>
> Yeah, that was a trap :-)
>
>>
>> Thanks.
>> --
>> Regards,
>> Tushar

_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to