diff options
author | Daniel Walter <dwalter@sigma-star.at> | 2016-08-31 10:05:36 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2016-11-17 11:36:56 +0100 |
commit | e7974ec2eae0f0142112028d8b7bd0af0c0c5ebb (patch) | |
tree | be7dbf58e3ca03c68de2570695114a93e2c080b2 /ubi-utils/libubi_int.h | |
parent | 4adc61baeba93bc08749c7586d0a36bee01ece8d (diff) |
Add support for sysfs mocking
In order to use test files, allow sysfs root
to be set during compile time
Signed-off-by: Daniel Walter <dwalter@sigma-star.at>
Diffstat (limited to 'ubi-utils/libubi_int.h')
-rw-r--r-- | ubi-utils/libubi_int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ubi-utils/libubi_int.h b/ubi-utils/libubi_int.h index c3aa37a..86ce18a 100644 --- a/ubi-utils/libubi_int.h +++ b/ubi-utils/libubi_int.h @@ -36,6 +36,9 @@ extern "C" { * directories to '/sys/class/ubi/'. For now libubi assumes old layout. */ +#ifndef SYSFS_ROOT +#define SYSFS_ROOT "/sys" +#endif #define SYSFS_UBI "class/ubi" #define SYSFS_CTRL "class/misc/ubi_ctrl/" |