STM32F4 discovery makefile

sarraciro sarraciro at yahoo.it
Sun Nov 3 02:03:52 UTC 2013


Hi guys,
I have ported the template that I wanted ! :) !
I had included also a (very) rudimental driver for flash the LEDs of
STM32F4-Discovery..
There are some warning (one I presume.. but it appear several time ..
casting warning..) .. I'll try to fix it tomorrow...
Thank again for support ... night!

--
RC
Il giorno ven, 01/11/2013 alle 17.42 +0100, sarraciro ha scritto:
> Sorry in last message I've made an error in the structure
> The example is:
>  hello_c
>   |--lib
>   |     |--say.c
>   |     |--say.h
>   |     |--Makefile
>   |--src
>   |     |--init
>   |     |--Makefile
>   | --Makefile
> 
> Thanks again
> 
> --
> RC
> Il giorno ven, 01/11/2013 alle 17.27 +0100, sarraciro ha scritto:
> > I had a troubles with porting the cxx example in C (instead C++).
> > Probably the problem is in/src/Makefile.
> > The example is:
> > hello_c
> > |--lib
> > |     |--say.c
> > |     |--say.h
> > |--src
> > |     |--init
> > 
> > The project build the library (I had simply change the names of files
> > included)
> > but have a problem to find (link) the builded library.
> > I tried to define 
> > LIBS= -lstm32f4say.a
> > and also
> > LD_PATH= ../lib/o-optimize/
> > LD_LIBS= stm32f4say.a
> > 
> > I think that I have to change the build rules from:
> > $(PGM): $(OBJS)
> > 	$(make-exe) 
> > 
> > to something like:
> > $(filter %.obj,$(PGM)): ${OBJS}
> > 	$(make-obj)
> > 
> > $(filter %.exe,$(PGM)): ${LINK_FILES}
> > 	$(make-exe)
> > 
> > With non-rtems platform I can build the same sample with autotools (like
> > in amhello1_template)  ...  but what about classic makefile approach...
> > Any suggest??
> > 
> > Thanks
> > 
> > --
> > SC
> > Il giorno ven, 01/11/2013 alle 01.44 +0100, sarraciro ha scritto:
> > > I'll check it ...
> > > thanks for clarification &  suggest.
> > > 
> > > --
> > > RC
> > > Il giorno ven, 01/11/2013 alle 09.51 +1100, Chris Johns ha scritto:
> > > > On 1/11/2013 5:11 am, sarraciro wrote:
> > > > > In effect...
> > > > > I've tried to build the example-v2... with success.
> > > > > I think that, studying them with care, I may to be able to extract the
> > > > > needed information to centre the target.
> > > > 
> > > > Just a little warning about using Makefile.inc to build applications. 
> > > > Support will be removed from RTEMS in a future release. There maybe 
> > > > tools provided to generate equivalent files but that is still a maybe.
> > > > 
> > > > Personally I am using waf ...
> > > > 
> > > >   http://www.rtems.org/ftp/pub/rtems/people/chrisj/rtems-waf/
> > > > 
> > > > I will be supporting this way of building application across future 
> > > > RTEMS releases.
> > > > 
> > > > Chris
> > > 
> > > 
> > > _______________________________________________
> > > rtems-users mailing list
> > > rtems-users at rtems.org
> > > http://www.rtems.org/mailman/listinfo/rtems-users
> > 
> > _______________________________________________
> > rtems-users mailing list
> > rtems-users at rtems.org
> > http://www.rtems.org/mailman/listinfo/rtems-users
> 
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20131103-blinker.tar.gz
Type: application/x-compressed-tar
Size: 3663 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20131103/fbdcb815/attachment-0001.bin>


More information about the users mailing list