diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2019-09-30 09:26:08 +0200 |
---|---|---|
committer | Roland Hieber <rhi@pengutronix.de> | 2019-10-11 16:49:39 +0200 |
commit | 2dbca4c3284b283b9d191a423a127b0d9402a55d (patch) | |
tree | 0d42c8ba38ce5aae69454cb28516ee940d5e7954 /src/barebox-state.c | |
parent | baee943b2c98155349e5f0fef5c23c76b695e90f (diff) | |
download | dt-utils-2dbca4c3284b283b9d191a423a127b0d9402a55d.tar.gz dt-utils-2dbca4c3284b283b9d191a423a127b0d9402a55d.tar.xz |
state: keep backward compatibility
Introduce the new build time option '--enable-state-backward-compatibility' to
port the following barebox commit.
NOTE: This changes barebox-state's default behaviour.
| commit 480cde1b22831febacc2a8ab91dfe99d2e5be8e9
| Author: Juergen Borleis <jbe@pengutronix.de>
| Date: Tue Aug 15 15:46:31 2017 +0200
|
| state: keep backward compatibility
|
| Previous 'state' variable set variants do not know and use metadata. The
| 'direct' storage backend's read function honors this, but not its
| counterpart the write function. This makes an update of the 'state'
| variable set impossible.
| This change makes backward compatibility explicit, else it complains in
| the read function as well. With some more debug output it helps the
| developer to do things right.
|
| Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Diffstat (limited to 'src/barebox-state.c')
-rw-r--r-- | src/barebox-state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/barebox-state.c b/src/barebox-state.c index 946a8db..6b166bf 100644 --- a/src/barebox-state.c +++ b/src/barebox-state.c @@ -439,6 +439,8 @@ int main(int argc, char *argv[]) exit(0); case OPT_VERSION: printf(PACKAGE_STRING "\n"); + printf("Configured with build-time option '--%s-state-backward-compatibility'.\n", + (CONFIG_STATE_BACKWARD_COMPATIBLE) ? "enable" : "disable"); exit(0); case 'g': sg = xzalloc(sizeof(*sg)); |