Move makerd to TOML-based manifest

Added the cpptoml library (and license), and moved to using that for
the initrd manifest. It's now possible to specify the `executable`
flag for files, and the kernel correctly only launches new processes
for the initrd files marked `executable`.
This commit is contained in:
Justin C. Miller
2018-09-08 12:54:35 -07:00
parent 3a39d9440a
commit e7a509176d
9 changed files with 3780 additions and 64 deletions

View File

@@ -5,12 +5,13 @@
class entry
{
public:
entry(const std::string &in, const std::string &out);
entry(const std::string &in, const std::string &out, bool executable = false);
inline const std::string & in() const { return m_in; }
inline const std::string & out() const { return m_out; }
inline const std::ifstream & file() const { return m_file; }
inline bool executable() const { return m_exec; }
inline size_t size() const { return m_size; }
inline bool good() const { return m_file.good(); }
@@ -19,5 +20,6 @@ private:
std::string m_out;
std::ifstream m_file;
size_t m_size;
bool m_exec;
};