[En-Nut-Discussion] Library NutDev Modifications?
Harald Kipp
harald.kipp at egnite.de
Fri Mar 12 14:34:32 CET 2004
Hi Tobias,
First of all sorry that it took so long for your
message to get approved. If you subscribed to the
list at
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
you must use the same email address in your postings
to avoid them being held for approval. The daily amount
of spams/worms held for approval is extremly large and time
consuming.
>I deleted the lnutdev entry in the makefile and startet writing all
>modules into the MODS line. So I thought the netpuffers and so will work.
>But libnutos requires the IR Interface so I can t use this solution.
>
>
>
>Is there a way to get my routines running without rewriting the complete
>nutos or most parts of it?
Do not delete the nutdev entry in the Makefile. As with
all other libraries, only those modules are linked,
which are missing when the specific library is linked
in. That means, if mod/whatever.o comes first and if this
contains all routines your app is refering to, then
the module dev/vs1001k.c isn't linked in.
To link mods first, add
MODS = $(MODDIR)/dev/whatever.o
to the makefile.
Of course, the .o has to be created first. See
mod\os\Makefile
for an example.
Even easier, simply add your mod to the app/nutpiper and
to the
SRCS =
entry in the app/nutpiper/Makefile. This is OK, if only
a single app will make use of the mod. If more apps are
going to use the modified routines, using the MODDIR
is for sure a better way.
You can always check the nutpiper.map to verify, which
routines are linked from which library.
Regards,
Harald
More information about the En-Nut-Discussion
mailing list