start: allow for platforms that have one possible boot device
authorAlan Cox <alan@linux.intel.com>
Tue, 31 Mar 2015 21:50:35 +0000 (22:50 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 31 Mar 2015 21:50:35 +0000 (22:50 +0100)
If so dump all the bootdevice requesting stuff and just go

Kernel/start.c

index 1fdacc7..2d6e25e 100644 (file)
@@ -83,6 +83,8 @@ void create_init(void)
        udata.u_argn2 = (arg_t)(PROGLOAD + 0xb); /* Environment (none) */
 }
 
+#ifndef BOOTDEVICE
+
 /* Parse boot device name, based on platform defined BOOTDEVICENAMES string.
  *
  * This string is a list of device driver names delimited by commas. Device
@@ -218,6 +220,13 @@ uint16_t get_root_dev(void)
 
        return rd;
 }
+#else
+
+inline uint16_t get_root_dev(void)
+{
+       return BOOTDEVICE;
+}
+#endif
 
 void fuzix_main(void)
 {