25 | | * Since the above rules are very difficult to check manually for each bsp, so a [http://git.rtems.org/rtems-testing/tree/merge-helpers/check_submission bash script] was written merging the functionality of check_submission from rtems-testing. This script is supposed to be a final test for any bsp developer before his code is accepted into RTEMS, so as to check whether that the bsp code submitted follows this unified pattern of file organization & formatting or not. |
| 25 | * Since the above rules are very difficult to check manually for each bsp, so a bash script was written merging the functionality of check_submission from rtems-testing. This script is supposed to be a final test for any bsp developer before his code is accepted into RTEMS, so as to check whether that the bsp code submitted follows this unified pattern of file organization & formatting or not. |
| 26 | = Automated Rule Checking with check_submission = |
| 27 | |
| 28 | The main objective of the Unified API project is to determine a unified pattern of file usage, directory structure & the methods that each file uses.The checking of above rules is automated with the check_submission script. |
| 29 | |
| 30 | Based on the observations from lpc24xx, a list of critical files & methods that every BSP must include and use was compiled. These files & methods belonging to a component for a BSP can be deemed as critical or non-critical. The rule-checking is accomplished by the following way : |