diff options
author | Chris Johns <chrisj@rtems.org> | 2014-09-07 14:31:18 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-09-07 14:31:18 +1000 |
commit | 4c9a892d009c5b8f1952cf3450dda32148af887e (patch) | |
tree | dd7acfa431c5bf000d1770f2c43e7cb54db5fff1 /rld-rtems.h | |
parent | 5c75d3435ae8e049a3049a6eec1295f1de2694cf (diff) |
Refactor the rld-rtems support to remove the globals.
Diffstat (limited to 'rld-rtems.h')
-rw-r--r-- | rld-rtems.h | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/rld-rtems.h b/rld-rtems.h index 97dc67e..04305ce 100644 --- a/rld-rtems.h +++ b/rld-rtems.h @@ -32,50 +32,54 @@ namespace rld namespace rtems { /** - * The RTEMS default version. + * Set the RTEMS version. */ - extern std::string version; + void set_version (const std::string& version); /** - * The path to RTEMS. + * Set the arch/bsp string. */ - extern std::string path; + void set_arch_bsp (const std::string& arch_bsp); /** - * Is the RTEMS installed. + * Set the path to RTEMS. */ - extern bool installed; + void set_path (const std::string& path); /** - * The BSP name. + * Get the RTEMS version. */ - extern std::string arch_bsp; + const std::string version (); + + /** + * Return the arch/bsp string. + */ + const std::string arch_bsp (); /** * Return the architecture given an arch/bsp string. */ - const std::string arch (const std::string& ab); + const std::string arch (); /** * Return the bsp given an arch/bsp string. */ - const std::string bsp (const std::string& ab); + const std::string bsp (); /** - * Return the RTEMS bsp string given an arch/bsp string. + * Get the RTEMS path. */ - const std::string rtems_bsp (const std::string& ab); + const std::string path (); /** - * Load the configuration. Set the various values via the command or a - * configuration file then check the configuration. + * Return the RTEMS BSP prefix. */ - void load_cc (); + const std::string rtems_arch_prefix (); /** - * Process the BSP name updating the various CC flags. + * Return the arch/bsp as an RTEMS prefix and BSP string. */ - void set_cc (void); + const std::string rtems_arch_bsp (); } } |