<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
Thanks for your answer. but i still don't understand what can cuase the difference between the sam7 and edb7312 bsp if it is an exact copy of it?<BR><BR><BR>

<HR>
<BR>
Date: Tue, 22 Jul 2008 12:24:29 +0800<BR>From: rayx.cn@gmail.com<BR>To: t_fahmy_bassem@hotmail.com<BR>Subject: Re: new bsp and No rule to make target<BR>CC: rtems-users@rtems.com<BR><BR><BR>
<DIV dir=ltr><BR>
<DIV class=EC_gmail_quote>2008/7/22 Bassem Fahmy <<A href="mailto:t_fahmy_bassem@hotmail.com">t_fahmy_bassem@hotmail.com</A>>:<BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex"><BR>Hi All,<BR>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.<BR>any body know what is going on?can any body help me regarding this?<BR><BR>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<BR>mv -f .deps/console_rel-uart.Tpo .deps/console_rel-uart.Po<BR>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.<BR></BLOCKQUOTE>
<DIV><BR>console would depend on :<BR>console_rel_SOURCES = console/uart.c ../../shared/console.c <BR>console.c is a common file, but you are looking for ../../../../../../../../rtems-4.8.0/c/src/lib/libbsp/arm/sam7/console/console.c. <BR>Seems sth is wrong here<BR><BR>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.<BR><BR> </DIV>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex">gmake[6]: Leaving directory `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib/libbsp/arm/sam7'<BR>gmake[5]: *** [all-recursive] Error 1<BR>gmake[5]: Leaving directory `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib/libbsp/arm'<BR>gmake[4]: *** [all-recursive] Error 1<BR>gmake[4]: Leaving directory `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib/libbsp'<BR>gmake[3]: *** [all-recursive] Error 1<BR>gmake[3]: Leaving directory `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7/lib'<BR>gmake[2]: *** [all-recursive] Error 1<BR>gmake[2]: Leaving directory `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c/sam7'<BR>gmake[1]: *** [all-recursive] Error 1<BR>gmake[1]: Leaving directory `/home/npminc/bassem/rtems/build-rtems/arm-rtems/c'<BR>make: *** [all-recursive] Error 1<BR><BR>Thanks,<BR>Bassem<BR>_________________________________________________________________<BR>Stay in touch when you're away with Windows Live Messenger.<BR><A href="http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008" target=_blank>http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008</A><BR>_______________________________________________<BR>rtems-users mailing list<BR><A href="mailto:rtems-users@rtems.com">rtems-users@rtems.com</A><BR><A href="http://rtems.rtems.org/mailman/listinfo/rtems-users" target=_blank>http://rtems.rtems.org/mailman/listinfo/rtems-users</A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Thanks & Best Regards!<BR><BR>Ray, Xu </DIV><br /><hr />Stay in touch when you're away with Windows Live Messenger. <a href='http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008' target='_new'>IM anytime you're online.</a></body>
</html>