<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hello Gedare,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>Modified the script to look for bsp specific files in the case of tm27.h, coverhd.h & </span><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 10pt;">bsppredriverhook.c. Currently the script looks for both the shared arch & local files in the case of </span><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;">bspstart.c, bspclean.c, bspgetworkarea.c.</span></div><div style="color: rgb(0, 0, 0); font-size:
16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;">As you suggested, I'd really like to enhance the script to look for </span>specified files under the BSP in all its subdirectories and report that information in case the file is not found where it is expected. But as you see, checking for a unified pattern across BSPs requires that the rules can only be laid down for those components that are used in every BSP. I'm not sure what these common components are apart from startup files. Maybe clock & console files. Need guidance on
that.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">One method might be that we compile a list all types of support components that a BSP can offer (like network, console, wifi) & standardize the list of file names that must be created in that specific folder in a BSP. Then the BSP developer defines these macros in bsp.h or in some other file specifying which kind of standard component has he/she incorporated in his BSP(For example defining BSP_FEATURE_IRQ_EXTENSION macro for generic interrupt support ). Based on these defined macros, I can grep with my script & check whether the unified rules are followed or not.</div><div style="color: rgb(0, 0, 0); font-size:
16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Will need guidance in compiling that list. What do you suggest ?</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;">Regards</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;"><span style="background-color:transparent;line-height:1.22;">Vipul Nayyar </span></div><div style="color: rgb(0, 0, 0);
font-size: 12.727272033691406px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;"><br></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Gedare Bloom <gedare@rtems.org><br> <b><span style="font-weight: bold;">To:</span></b> Vipul Nayyar <nayyar_vipul@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Joel Sherrill <joel.sherrill@oarcorp.com>; Cynthia Rempel <cynt6007@vandals.uidaho.edu>; "rtems-devel@rtems.org" <rtems-devel@rtems.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, 31 August 2013 8:46 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Bash Script to find
discrepancies in BSP file organization<br> </font> </div> <div class="y_msg_container"><br>On Sat, Aug 31, 2013 at 11:11 AM, Gedare Bloom <<a ymailto="mailto:gedare@rtems.org" href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br>> Also, tm27.h can be (usually is) overwritten by the BSP and located in<br>> ./include/tm27.h.<br>><br>The same goes for coverhd.h<br><br>> On Sat, Aug 31, 2013 at 11:08 AM, Gedare Bloom <<a ymailto="mailto:gedare@rtems.org" href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br>>> Vipul, would it make sense to also look for the specified files under<br>>> the BSP in all its subdirectories and report that information in case<br>>> the file is not found where it is expected?<br>>><br>>> double check all of the BSP hook files. I noticed bsppredriverhook.c<br>>> has the wrong location for ../shared/startup/bsppredriverhook.c (it<br>>> omits
"startup")<br>The same goes for bspstart.c, bspclean.c, bspgetworkarea.c, and<br>probably bsppost.c but I don't think any BSPs in the tree override<br>bsppost.<br><br>>><br>>> -Gedare<br>>><br>>> On Fri, Aug 30, 2013 at 6:49 PM, Vipul Nayyar <<a ymailto="mailto:nayyar_vipul@yahoo.com" href="mailto:nayyar_vipul@yahoo.com">nayyar_vipul@yahoo.com</a>> wrote:<br>>>> Hello DrJoel,<br>>>><br>>>> Haven't heard from you for a long time. I hope you're well. I also sincerely<br>>>> hope that you're following the discussion about the project. I've attached a<br>>>> bash script, somewhat similar to what we both wrote during the start. Please<br>>>> have a look & verify whether it's output is upto your satisfaction. It<br>>>> checks more rules for a BSP that I observed & wrote by looking at lpc24xx.<br>>>><br>>>> Just drop the script in libbsp, or
some where down in an architecture or a<br>>>> bsp folder. Or else you can give it the path of a bsp from the terminal.<br>>>> I've tested it & I think it's giving the required results.<br>>>><br>>>> Please observe it & I'm all ears for any improvements that you suggest.<br>>>> Hoping to hear from you soon.<br>>>><br>>>> Regards<br>>>> Vipul Nayyar<br>>>><br><br><br></div> </div> </div> </div></body></html>