diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2014-07-31 12:39:01 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-08-01 08:24:00 +0200 |
commit | c4c7b16588d22d99b7b9047fa0d0e1d8cb530774 (patch) | |
tree | e3bae7e92912bbe825bbda687a0e4aa7c6f90197 /include/envfs.h | |
parent | 1b937547b9b1cbc20cfa87f762bf22bc08d4610e (diff) | |
download | barebox-c4c7b16588d22d99b7b9047fa0d0e1d8cb530774.tar.gz barebox-c4c7b16588d22d99b7b9047fa0d0e1d8cb530774.tar.xz |
envfs: provide an intentional way to ignore an existing external environment
Add a simple flag to envfs to be able to mark an external environment as
"not to be used".
This change should not affect existing systems, because the current envfs
implementation ensures the 'flags' member in the envfs master block is always
zeroed.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/envfs.h')
-rw-r--r-- | include/envfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/envfs.h b/include/envfs.h index 9b86398984..beae38acf5 100644 --- a/include/envfs.h +++ b/include/envfs.h @@ -43,6 +43,7 @@ struct envfs_super { uint8_t minor; /* minor */ uint16_t future; /* reserved for future use */ uint32_t flags; /* feature flags */ +#define ENVFS_FLAGS_FORCE_BUILT_IN (1 << 0) uint32_t sb_crc; /* crc for the superblock */ }; |