Prepare for building a module. This is a simplified version of PrepareBuilding for module compilation. Args: env: SCons Environment root_directory: RT-Thread root directory bsp_directory: BSP directory
(env, root_directory, bsp_directory)
| 195 | |
| 196 | |
| 197 | def PrepareModuleBuilding(env, root_directory, bsp_directory) -> None: |
| 198 | """ |
| 199 | Prepare for building a module. |
| 200 | |
| 201 | This is a simplified version of PrepareBuilding for module compilation. |
| 202 | |
| 203 | Args: |
| 204 | env: SCons Environment |
| 205 | root_directory: RT-Thread root directory |
| 206 | bsp_directory: BSP directory |
| 207 | """ |
| 208 | # Initialize context |
| 209 | context = init_build_context(root_directory) |
| 210 | context.bsp_directory = bsp_directory |
| 211 | |
| 212 | # Inject methods |
| 213 | inject_environment_methods(env) |
| 214 | |
| 215 | # Load configuration |
| 216 | config_path = os.path.join(bsp_directory, 'rtconfig.h') |
| 217 | if os.path.exists(config_path): |
| 218 | load_rtconfig(config_path) |
nothing calls this directly
no test coverage detected