summaryrefslogtreecommitdiffstats
path: root/include/boot.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-29 10:53:51 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-04 11:58:46 +0200
commitf66990af3cf2e1bfda60938beeadcb98557d9487 (patch)
tree1396f22e661ba9d8fe12ba89922b73f6ec372484 /include/boot.h
parenta9b18674c0ffefd08064dff898b1f621f8c258d5 (diff)
downloadbarebox-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.h5
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;