Update Building Custom Models authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
...@@ -89,4 +89,28 @@ CDS_IFO_SRC=/home/controls/advligorts/src/include/ ...@@ -89,4 +89,28 @@ CDS_IFO_SRC=/home/controls/advligorts/src/include/
``` ```
While `rtcds` has appended some additional paths to the `RCG_LIB_PATH` variable, the path we added (`/home/controls/models/`) is present in the list. Now when we run `rtcds build <model_name>`, `rtcds` will look in `/home/controls/models/` for a file named `<model_name>.mdl` While `rtcds` has appended some additional paths to the `RCG_LIB_PATH` variable, the path we added (`/home/controls/models/`) is present in the list. Now when we run `rtcds build <model_name>`, `rtcds` will look in `/home/controls/models/` for a file named `<model_name>.mdl`
## Building Custom Models (CyMAC Usecase) ## Building Custom Models (CyMAC Usecase)
\ No newline at end of file Now that the environment has been set up, all we need to do is run the `rtcds build <model_name> ` command. Example output for building a model with the mdl filename of `x1unittest.mdl`:
```shell
controls@x1cymac:~/models$ rtcds build x1unittest
WARNING: RTS_VERSION=cymac-build does not match version found in source: local)
### building x1unittest
Cleaning x1unittest...
Done
Parsing the model x1unittest...
Done
Building EPICS sequencers...
Done
Building front-end Linux kernel module x1unittest...
Done
RCG source code directory:
/home/controls/git/advligorts
The following files were used for this build:
/home/controls/models//x1unittest.mdl
Successfully compiled x1unittest
***********************************************
Compile Warnings, found in /var/cache/advligorts/rcg-cymac-build//models/x1unittest/logs/x1unittest_warnings.log:
***********************************************
***********************************************
```
\ No newline at end of file