- Timestamp:
-
10/29/18 13:32:49 (6 years ago)
- Author:
-
Vijay Kumar Banerjee
- Comment:
-
update libbsp reference to bsps/
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v9
|
v10
|
|
13 | 13 | **Pre-Requisite**: You '''must''' have completed "Getting Started: Hello World" or the equivalent of [wiki:GSoC/GettingStarted Getting Started for GSoC Students] before attempting this task. |
14 | 14 | |
15 | | This task consists of turning on this capability for a specific BSP family. A BSP family is the collection of BSPs under a single directory such as c/src/lib/libbsp/CPU/BSP_FAMILY. The make/custom directory has a BSP.cfg file for each BSP which may be built. If the BSP Family supports multiple BSP variants, the BSP.cfg files may include either a shared ".inc" file or a base ".cfg" file with common settings. |
| 15 | This task consists of turning on this capability for a specific BSP family. A BSP family is the collection of BSPs under a single directory such as bsps/CPU/BSP_FAMILY. The make/custom directory has a BSP.cfg file for each BSP which may be built. If the BSP Family supports multiple BSP variants, the BSP.cfg files may include either a shared ".inc" file or a base ".cfg" file with common settings. |
16 | 16 | |
17 | | All BSPS for the SPARC architecture support this advanced capability. For an example, see the file c/src/lib/libbsp/sparc/erc32/make/custom/erc32.cfg. Note the following lines at the bottom of the file which turn on the advanced capabilities. |
| 17 | All BSPS for the SPARC architecture support this advanced capability. For an example, see the file bsps/sparc/erc32/make/custom/erc32.cfg. Note the following lines at the bottom of the file which turn on the advanced capabilities. |
18 | 18 | |
19 | 19 | {{{ |
… |
… |
|
29 | 29 | KEEP |
30 | 30 | }}} |
31 | | macro to such sections. See for example c/src/lib/libbsp/sparc/shared/startup/linkcmds.base which has already been tailored. Each BSP will have a linkcmds file which may or may not include a shared base file. |
| 31 | macro to such sections. See for example bsps/sparc/shared/startup/linkcmds.base which has already been tailored. Each BSP will have a linkcmds file which may or may not include a shared base file. |
32 | 32 | |
33 | 33 | === Task Requirements === |
… |
… |
|
80 | 80 | * Edit one or more .cfg and .inc files to add the appropriate options to CFLAGS_OPTIMIZE_V and LDFLAGS as shown in the previous section. |
81 | 81 | |
82 | | * Edit one or more linkcmds files located within either c/src/lib/libbsp/CPU/BSP/startup/ or c/src/lib/libbsp/CPU/shared/startup to add the KEEP directives. |
| 82 | * Edit one or more linkcmds files located within either bsps/CPU/BSP/startup/ or bsps/CPU/shared/startup to add the KEEP directives. |
83 | 83 | |
84 | 84 | Using the "build_bsp" script, rebuild each the BSP variants in the BSP Family and again keep a running record of the sizes. The before and after size information is a critical part of the commit information. |