new bsp and No rule to make target
Joel Sherrill
joel.sherrill at OARcorp.com
Tue Jul 22 15:56:21 UTC 2008
xu ray wrote:
>
> 2008/7/22 Bassem Fahmy <t_fahmy_bassem at hotmail.com
> <mailto:t_fahmy_bassem at hotmail.com>>:
>
>
> Hi All,
> i'm trying to build a new BSP for atmel SAM7 controllers (Olimex
> boards). in my first step i used the edb7312 bsp as a starting
> point. i make another copy of it renamed it to sam7 and make a
> copy of edb7312.cfg to sam7.cfg and issued bootstrap command both
> from the libbsp/arm and from main root folder yet i always get an
> error in building. however if i build for the edb7312 itself i
> don't get the error.
> any body know what is going on?can any body help me regarding this?
>
> arm-rtems-gcc --pipe -B../../../../../.././lib/
> -B../../../../../.././sam7/lib/ -specs bsp_specs -qrtems
> -DHAVE_CONFIG_H -isystem ../../../../../.././sam7/lib/include
> -Wall -ansi -fasm -mcpu=arm7tdmi -msoft-float
> -mstructure-size-boundary=8 -O2 -g -MT console_rel-uart.o -MD -MP
> -MF .deps/console_rel-uart.Tpo -c -o console_rel-uart.o `test -f
> 'console/uart.c' || echo
> '../../../../../../../../rtems-4.8.0/c/src/lib/libbsp/arm/sam7/'`console/uart.c
> mv -f .deps/console_rel-uart.Tpo .deps/console_rel-uart.Po
> gmake[6]: *** No rule to make target
> `../../../../../../../../rtems-4.8.0/c/src/lib/libbsp/arm/sam7/console/console.c',
> needed by `console_rel-console.o'. Stop.
>
>
> console would depend on :
> console_rel_SOURCES = console/uart.c ../../shared/console.c
> console.c is a common file, but you are looking for
> ../../../../../../../../rtems-4.8.0/c/src/lib/libbsp/arm/sam7/console/console.c.
>
> Seems sth is wrong here
Can you post the entire Makefile? It is really easy to make a mistake
in these files and
not be able to see it yourself.
I suspect that console.c is referenced twice in the file.
>
> BTW, You can also refer to csb337 which is also a BSP for atmel's CPU,
> maybe there is something to share like the register defination or
> USART driver. Besides, SAM is a big family of MCU. If you want to
> submit this BSP, I would suggest you put the common file in some where
> like libcpu/arm/sam. This will make the code easy to share among
> different SAM.
>
>
>
> gmake[6]: Leaving directory
> `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib/libbsp/arm/sam7'
> gmake[5]: *** [all-recursive] Error 1
> gmake[5]: Leaving directory
> `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib/libbsp/arm'
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory
> `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib/libbsp'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory
> `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c'
> make: *** [all-recursive] Error 1
>
> Thanks,
> Bassem
> _________________________________________________________________
> Stay in touch when you're away with Windows Live Messenger.
> http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com <mailto:rtems-users at rtems.com>
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
>
>
>
> --
> Thanks & Best Regards!
>
> Ray, Xu
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill 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