diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-29 10:53:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-04 11:58:46 +0200 |
commit | f66990af3cf2e1bfda60938beeadcb98557d9487 (patch) | |
tree | 1396f22e661ba9d8fe12ba89922b73f6ec372484 /include/boot.h | |
parent | a9b18674c0ffefd08064dff898b1f621f8c258d5 (diff) | |
download | barebox-f66990af3cf2e1bfda60938beeadcb98557d9487.tar.gz barebox-f66990af3cf2e1bfda60938beeadcb98557d9487.tar.xz |
bootm: Optionally add a root= option to Kernel command line
It becomes a common case that the Kernel is loaded from the filesystem
which later becomes the rootfs. This adds a possibility to let bootm
automatically append the root= option to the kernel command line. This
is done when global.bootm.appendroot is true.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/boot.h')
-rw-r--r-- | include/boot.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/boot.h b/include/boot.h index 0198cc8826..8fcbb7f012 100644 --- a/include/boot.h +++ b/include/boot.h @@ -21,6 +21,11 @@ struct bootm_data { enum bootm_verify verify; bool force; bool dryrun; + /* + * appendroot - if true, try to add a suitable root= Kernel option to + * mount the rootfs from the same device as the Kernel comes from. + */ + bool appendroot; unsigned long initrd_address; unsigned long os_address; unsigned long os_entry; |