Open
Description
currently the paths to qkernel binary, log files and config files are hardcoded, among others:
pub const LOG_FILE_DEFAULT: &str = "/var/log/quark/quark.log";
pub const RAWLOG_FILE_DEFAULT: &str = "/var/log/quark/raw.log";
pub const LOG_FILE_FORMAT: &str = "/var/log/quark/{}.log";
pub const KERNEL_IMAGE: &'static str = "/usr/local/bin/qkernel_d.bin";
pub const KERNEL_IMAGE: &'static str = "/usr/local/bin/qkernel.bin";
pub const VDSO_PATH: &'static str = "/usr/local/bin/vdso.so";
to do this, we can pass install/log/config path as env variables and build the above path strings during compile time using rust's env!
macro.