aboutsummaryrefslogtreecommitdiff
path: root/include/linux/initramfs.h
diff options
context:
space:
mode:
authorRom Lemarchand <romlem@android.com>2015-07-06 16:50:33 -0700
committerMoyster <oysterized@gmail.com>2017-12-05 17:51:12 +0100
commitac19aa617991eecc45db9734991af33315f0bf16 (patch)
tree76e21804afbe87859d657488adc8f46952ea7791 /include/linux/initramfs.h
parent701497f022711f9c63fd8568362774554b34e4ed (diff)
initramfs: Add skip_initramfs command line option
Add a skip_initramfs option to allow choosing whether to boot using the initramfs or not at runtime. Change-Id: If30428fa748c1d4d3d7b9d97c1f781de5e4558c3 Signed-off-by: Rom Lemarchand <romlem@google.com>
Diffstat (limited to 'include/linux/initramfs.h')
-rw-r--r--include/linux/initramfs.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/initramfs.h b/include/linux/initramfs.h
new file mode 100644
index 000000000..fc7da63b1
--- /dev/null
+++ b/include/linux/initramfs.h
@@ -0,0 +1,32 @@
+/*
+ * include/linux/initramfs.h
+ *
+ * Copyright (C) 2015, Google
+ * Rom Lemarchand <romlem@android.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _LINUX_INITRAMFS_H
+#define _LINUX_INITRAMFS_H
+
+#include <linux/kconfig.h>
+
+#if IS_BUILTIN(CONFIG_BLK_DEV_INITRD)
+
+int __init default_rootfs(void);
+
+#endif
+
+#endif /* _LINUX_INITRAMFS_H */