Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ofs umd: add ofs umd framework (#1909)
* ofs umd: add ofs umd framework ofs umd (user mode driver) is a framework to take driver specs in yml format and turn it into C data structure, and function prototypes/implementations. This commit adds: * ofs_parse.py script that parses an ofs umd spec in .yml format and generates a header file for the given driver. * ofs_add_driver CMake macro that, given the .yml, driver name, and list of sources it will: * call ofs_parse.py to generate the .h * create a cmake library named after the driver name and use given source to compile. * sample unit tests in tests/ofs_driver that exercise: * The cmake macro * The functions generated by ofs_parse.py TODO: ofs_parse.py is mostly prototype-leve code and will need to be refactored and cleaned up.
- Loading branch information