Inject RT-Thread methods into SCons Environment. This should be called in PrepareBuilding after environment setup. Args: env: SCons Environment object
(env)
| 41 | |
| 42 | |
| 43 | def inject_environment_methods(env) -> None: |
| 44 | """ |
| 45 | Inject RT-Thread methods into SCons Environment. |
| 46 | |
| 47 | This should be called in PrepareBuilding after environment setup. |
| 48 | |
| 49 | Args: |
| 50 | env: SCons Environment object |
| 51 | """ |
| 52 | RTEnv.inject_methods(env) |
| 53 | |
| 54 | # Also set the environment in context |
| 55 | if _context: |
| 56 | _context.prepare_environment(env) |
| 57 | |
| 58 | |
| 59 | def load_rtconfig(config_file: str = 'rtconfig.h') -> Dict[str, Any]: |
no test coverage detected